Skip to content

Commit

Permalink
Unified the tasks timeout for k8s deployments.
Browse files Browse the repository at this point in the history
  • Loading branch information
ThanKarab committed Sep 29, 2022
1 parent 0bc1862 commit ecc34e2
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 12 deletions.
2 changes: 0 additions & 2 deletions kubernetes/templates/mipengine-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ spec:
value: "86400" # One day in seconds
- name: CELERY_TASKS_TIMEOUT
value: {{ quote .Values.controller.celery_tasks_timeout }}
- name: CELERY_RUN_UDF_TASK_TIMEOUT
value: {{ quote .Values.controller.celery_run_udf_task_timeout }}
- name: LOCALNODES_DNS
value: "mipengine-nodes-service"
- name: LOCALNODES_PORT
Expand Down
2 changes: 0 additions & 2 deletions kubernetes/templates/mipengine-globalnode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ spec:
value: {{ .Values.framework_log_level }}
- name: CELERY_TASKS_TIMEOUT
value: {{ quote .Values.controller.celery_tasks_timeout }}
- name: CELERY_RUN_UDF_TASK_TIMEOUT
value: {{ quote .Values.controller.celery_run_udf_task_timeout }}
- name: RABBITMQ_IP
valueFrom:
fieldRef:
Expand Down
2 changes: 0 additions & 2 deletions kubernetes/templates/mipengine-localnode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ spec:
value: {{ .Values.framework_log_level }}
- name: CELERY_TASKS_TIMEOUT
value: {{ quote .Values.controller.celery_tasks_timeout }}
- name: CELERY_RUN_UDF_TASK_TIMEOUT
value: {{ quote .Values.controller.celery_run_udf_task_timeout }}
- name: RABBITMQ_IP
valueFrom:
fieldRef:
Expand Down
3 changes: 1 addition & 2 deletions kubernetes/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ csvs_datapath: /opt/mipengine/csvs

controller:
node_landscape_aggregator_update_interval: 30
celery_tasks_timeout: 20
celery_run_udf_task_timeout: 120
celery_tasks_timeout: 120
nodes_cleanup_interval: 60
cleanup_file_folder: /opt/cleanup

Expand Down
3 changes: 2 additions & 1 deletion mipengine/controller/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ user = "user"
password = "password"
vhost = "user_vhost"
celery_tasks_timeout="$CELERY_TASKS_TIMEOUT"
celery_run_udf_task_timeout="$CELERY_RUN_UDF_TASK_TIMEOUT"
celery_cleanup_task_timeout="$CELERY_TASKS_TIMEOUT"
celery_run_udf_task_timeout="$CELERY_TASKS_TIMEOUT"
celery_tasks_max_retries=3
celery_tasks_interval_start=0
celery_tasks_interval_step=0.2
Expand Down
2 changes: 1 addition & 1 deletion mipengine/node/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ minimum_row_count = 10
[celery]
worker_concurrency = 16
tasks_timeout="$CELERY_TASKS_TIMEOUT"
run_udf_task_timeout="$CELERY_RUN_UDF_TASK_TIMEOUT"
run_udf_task_timeout="$CELERY_TASKS_TIMEOUT"

[rabbitmq]
ip = "$RABBITMQ_IP"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ csvs_datapath: /opt/mipengine/csvs

controller:
node_landscape_aggregator_update_interval: 20
celery_tasks_timeout: 10
celery_run_udf_task_timeout: 120
celery_tasks_timeout: 120
nodes_cleanup_interval: 60
cleanup_file_folder: /opt/cleanup

Expand Down

0 comments on commit ecc34e2

Please sign in to comment.