INNER CODE UNIT · Go

benchCmd

redpanda-data/connect · benchmarking/aws/runner/main.go:119

func benchCmd(args []string) error {
	fs := flag.NewFlagSet("bench", flag.ExitOnError)
	scenario := fs.String("scenario", "", "path to scenario YAML (e.g. scenarios/postgres/orders-cdc.yaml)")
	keep := fs.Bool("keep", false, "don't tear down infra after the run")
	keepOnFail := fs.Bool("keep-on-fail", false, "keep infra if the bench errors")
	region := fs.String("region", "us-east-2", "AWS region")
	repoRoot := fs.String("repo-root", ".", "path to the connect repo root")
	licenseFile := fs.String("license-file", os.Getenv("REDPANDA_LICENSE_FILEPATH"),
		"path to a Redpanda Enterprise license file (defaults to $REDPANDA_LICENSE_FILEPATH). "+
			"Required for enterprise connectors like postgres_cdc, unless --license-secret is set.")
	licenseSecret := fs.String("license-secret", os.Getenv("REDPANDA_LICENSE_SECRET"),
		"name or ARN of an AWS Secrets Manager secret whose SecretString is a Redpanda Enterprise "+
			"license (defaults to $REDPANDA_LICENSE_SECRET). Used when --license-file is unset or "+
			"doesn't open — the case for scheduled runs with no license file on disk.")
	soakArchiveBucket := fs.String("soak-archive-bucket", defaultSoakArchiveBucket,
		"S3 bucket a soak run's result.json + raw artifacts are archived to, since the session results "+
			"bucket is force_destroy'd at teardown. Created by the persistent terraform stack "+
			"(`task aws:persistent`).")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…