Skip to content

Added corbench code without manifest files #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

TheKongers
Copy link
Contributor

Moved over all corbench code from https://github.com/TheKongers/Corbench without the manifest files.

NOTE: the files under the directories /corbench/infra and /corbench/pkg are directly from prombench, but trimmed down to only keep the EKS functionality to make it more lightweight.

@TheKongers TheKongers force-pushed the add-corbench-code-without-manifests branch 2 times, most recently from 9ccc8e7 to d9df051 Compare August 8, 2025 06:32
@@ -0,0 +1,16 @@
FROM --platform=linux/amd64 golang:1.15-alpine
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use newer version of golang?

name: gp2-csi
provisioner: ebs.csi.aws.com
parameters:
type: gp2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not GP3?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could use gp3, but i wonder if it will break, i will give it a test

@@ -0,0 +1,18 @@
# Build stage
FROM golang:1.15-alpine AS builder
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use go 1.24.x


type Resource = provider.Resource

type eksCluster struct {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need these code? Can we just import prombench as a library

"github.com/cortexproject/test-infra/corbench/pkg/provider"
)

func init() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto. If we cannot reuse prombench CLI, let's try to use its library instead of copy its code directly.

set -e

# Disable AWS CLI pager to prevent interactive prompts
export AWS_PAGER=""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is ok to keep this script for now but we should try to just configure EBS CSI addon in the same eks cluster yaml

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will add a note

@TheKongers TheKongers force-pushed the add-corbench-code-without-manifests branch from 7b7312f to 4b48209 Compare August 8, 2025 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants