Commit ef4241c3 authored by Vineeth Guna [Microsoft]'s avatar Vineeth Guna [Microsoft]
Browse files

Disabled autoscaling

parent a116f6f9
...@@ -118,7 +118,7 @@ airflow: ...@@ -118,7 +118,7 @@ airflow:
podLabels: podLabels:
aadpodidbinding: "osdu-identity" aadpodidbinding: "osdu-identity"
autoscaling: autoscaling:
enabled: true enabled: false
## minReplicas is picked from Values.workers.replicas and default value is 1 ## minReplicas is picked from Values.workers.replicas and default value is 1
maxReplicas: 3 maxReplicas: 3
metrics: metrics:
...@@ -128,6 +128,9 @@ airflow: ...@@ -128,6 +128,9 @@ airflow:
target: target:
type: Utilization type: Utilization
averageUtilization: 60 averageUtilization: 60
labels:
# DO NOT DELETE THIS LABEL. SET IT TO FALSE WHEN AUTOSCALING IS DISABLED, SET IT TO TRUE WHEN AUTOSCALING IS ENABLED
autoscalingEnabled: false
resources: resources:
requests: requests:
memory: "512Mi" memory: "512Mi"
......
...@@ -10,7 +10,8 @@ def addNamespace(namespace, manifest): ...@@ -10,7 +10,8 @@ def addNamespace(namespace, manifest):
manifest['subjects'][0]['namespace'] = namespace manifest['subjects'][0]['namespace'] = namespace
def removeReplicasFromWorkerStatefulSet(manifest): def removeReplicasFromWorkerStatefulSet(manifest):
if manifest['kind'] == 'StatefulSet' and manifest['metadata']['name'] == 'airflow-worker': if manifest['kind'] == 'StatefulSet' and manifest['metadata']['name'] == 'airflow-worker':
del manifest['spec']['replicas'] if manifest['metadata']['labels']['autoscalingEnabled']:
del manifest['spec']['replicas']
def addingNamespace(namespace): def addingNamespace(namespace):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment