Skip to content

Commit

Permalink
fix(userworkers): reconciliate env names
Browse files Browse the repository at this point in the history
  • Loading branch information
TimVosch committed Jan 14, 2025
1 parent 528734d commit 3665a98
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions services/fission-user-workers/service/ctrl_k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,17 +208,17 @@ func (ctrl *KubernetesController) workerToFunction(worker UserWorker) Function {
ResourceVersion: strconv.Itoa(int(worker.Revision)),
},
Spec: fissionV1.FunctionSpec{
Concurrency: env.CouldInt("K8S_FUNC_CONCURRENCY", 10),
RequestsPerPod: env.CouldInt("K8S_FUNC_REQUESTS_PER_POD", 5),
FunctionTimeout: env.CouldInt("K8S_FUNC_TIMEOUT", 120),
IdleTimeout: lo.ToPtr(env.CouldInt("K8S_FUNC_IDLE_TIMEOUT", 900)),
Concurrency: env.CouldInt("CTRL_K8S_FUNC_CONCURRENCY", 10),
RequestsPerPod: env.CouldInt("CTRL_K8S_FUNC_REQUESTS_PER_POD", 5),
FunctionTimeout: env.CouldInt("CTRL_K8S_FUNC_TIMEOUT", 120),
IdleTimeout: lo.ToPtr(env.CouldInt("CTRL_K8S_FUNC_IDLE_TIMEOUT", 900)),
InvokeStrategy: fissionV1.InvokeStrategy{
StrategyType: "execution",
ExecutionStrategy: fissionV1.ExecutionStrategy{
ExecutorType: fissionV1.ExecutorTypePoolmgr,
MinScale: env.CouldInt("K8S_FUNC_MIN_SCALE", 1),
MaxScale: env.CouldInt("K8S_FUNC_MAX_SCALE", 100),
SpecializationTimeout: env.CouldInt("K8S_FUNC_SPEC_TIMEOUT", 120),
MinScale: env.CouldInt("CTRL_K8S_FUNC_MIN_SCALE", 1),
MaxScale: env.CouldInt("CTRL_K8S_FUNC_MAX_SCALE", 100),
SpecializationTimeout: env.CouldInt("CTRL_K8S_FUNC_SPEC_TIMEOUT", 120),
},
},
Environment: fissionV1.EnvironmentReference{
Expand Down Expand Up @@ -290,9 +290,9 @@ func (ctrl *KubernetesController) workerToMessageQueueTrigger(worker UserWorker)
},
MessageQueueType: "rabbitmq",
Topic: worker.ID.String(),
MaxRetries: 3,
MinReplicaCount: lo.ToPtr(int32(0)),
MaxReplicaCount: lo.ToPtr(int32(10)),
MaxRetries: env.CouldInt("CTRL_K8S_MQT_MAX_RETRIES", 3),
MinReplicaCount: lo.ToPtr(int32(env.CouldInt("CTRL_K8S_MQT_MIN_SCALE", 1))),
MaxReplicaCount: lo.ToPtr(int32(env.CouldInt("CTRL_K8S_MQT_MAX_SCALE", 3))),
MqtKind: "keda",
Secret: ctrl.mqtSecret,
Metadata: map[string]string{
Expand Down

0 comments on commit 3665a98

Please sign in to comment.