Skip to content

Commit

Permalink
fix: use JOB_RESOURCE_VARIANT_OVERRIDE to enable resource mode (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
perangel authored Aug 17, 2024
1 parent 1066b8e commit 4cdeb25
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions internal/cmd/local/local/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,32 @@ func (c *Command) Install(ctx context.Context, opts InstallOpts) error {

if opts.LowResourceMode {
airbyteValues = append(airbyteValues,
"global.jobs.resources.requests.cpu=1m",
"global.jobs.resources.requests.memory=128m",
"server.env_vars.JOB_RESOURCE_VARIANT_OVERRIDE=lowresource",
"server.env_vars.JOB_MAIN_CONTAINER_CPU_LIMIT=0",
"server.env_vars.JOB_MAIN_CONTAINER_CPU_REQUEST=0",
"server.env_vars.JOB_MAIN_CONTAINER_MEMORY_LIMIT=0",
"server.env_vars.JOB_MAIN_CONTAINER_MEMORY_REQUEST=0",

"workload-launcher.env_vars.JOB_MAIN_CONTAINER_CPU_LIMIT=0",
"workload-launcher.env_vars.JOB_MAIN_CONTAINER_CPU_REQUEST=0",
"workload-launcher.env_vars.JOB_MAIN_CONTAINER_MEMORY_LIMIT=0",
"workload-launcher.env_vars.JOB_MAIN_CONTAINER_MEMORY_REQUEST=0",
"workload-launcher.env_vars.CHECK_JOB_MAIN_CONTAINER_CPU_LIMIT=0",
"workload-launcher.env_vars.CHECK_JOB_MAIN_CONTAINER_CPU_REQUEST=0",
"workload-launcher.env_vars.CHECK_JOB_MAIN_CONTAINER_MEMORY_LIMIT=0",
"workload-launcher.env_vars.CHECK_JOB_MAIN_CONTAINER_MEMORY_REQUEST=0",
"workload-launcher.env_vars.DISCOVER_JOB_MAIN_CONTAINER_CPU_LIMIT=0",
"workload-launcher.env_vars.DISCOVER_JOB_MAIN_CONTAINER_CPU_REQUEST=0",
"workload-launcher.env_vars.DISCOVER_JOB_MAIN_CONTAINER_MEMORY_LIMIT=0",
"workload-launcher.env_vars.DISCOVER_JOB_MAIN_CONTAINER_MEMORY_REQUEST=0",
"workload-launcher.env_vars.SPEC_JOB_MAIN_CONTAINER_CPU_LIMIT=0",
"workload-launcher.env_vars.SPEC_JOB_MAIN_CONTAINER_CPU_REQUEST=0",
"workload-launcher.env_vars.SPEC_JOB_MAIN_CONTAINER_MEMORY_LIMIT=0",
"workload-launcher.env_vars.SPEC_JOB_MAIN_CONTAINER_MEMORY_REQUEST=0",
"workload-launcher.env_vars.SIDECAR_MAIN_CONTAINER_CPU_LIMIT=0",
"workload-launcher.env_vars.SIDECAR_MAIN_CONTAINER_CPU_REQUEST=0",
"workload-launcher.env_vars.SIDECAR_MAIN_CONTAINER_MEMORY_LIMIT=0",
"workload-launcher.env_vars.SIDECAR_MAIN_CONTAINER_MEMORY_REQUEST=0",
)
} else {
airbyteValues = append(airbyteValues,
Expand Down

0 comments on commit 4cdeb25

Please sign in to comment.