Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3748047
D2950.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D2950.diff
View Options
diff --git a/pillar/paas/docker/dwellers/airflow.sls b/pillar/paas/docker/dwellers/airflow.sls
--- a/pillar/paas/docker/dwellers/airflow.sls
+++ b/pillar/paas/docker/dwellers/airflow.sls
@@ -24,33 +24,24 @@
command: webserver
command_port: 8080
app_port: 46080
- healthcheck: ["CMD", "curl", "--fail", "http://localhost:8080/health"]
airflow_scheduler:
<<: *airflow
command: scheduler
- healthcheck: ["CMD", "curl", "--fail", "http://localhost:8974/health"]
airflow_worker:
<<: *airflow
command: celery worker
- healthcheck:
- - CMD-SHELL
- - celery --app airflow.executors.celery_executor.app inspect ping -d "celery@$${HOSTNAME}"
airflow_triggerer:
<<: *airflow
command: triggerer
- healthcheck:
- - CMD-SHELL
- - airflow jobs check --job-type TriggererJob --hostname "$${HOSTNAME}"
airflow_flower:
<<: *airflow
command: celery flower
command_port: 5555
app_port: 46555
- healthcheck: ["CMD", "curl", "--fail", "http://localhost:5555/"]
docker_networks:
airflow:
@@ -66,3 +57,15 @@
admin_account: nasqueron/airflow/admin_account
fernet_key: nasqueron/airflow/fernet
postgresql: dbserver/cluster-A/users/airflow
+
+# -------------------------------------------------------------
+# Airflow specific monitorng
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+docker_containers_monitoring:
+ check_by_container_name:
+ airflow:
+ check_http_200:
+ airflow_web: /health
+ airflow_scheduler: /health
+ airflow_flower: /
diff --git a/roles/paas-docker/containers/airflow.sls b/roles/paas-docker/containers/airflow.sls
--- a/roles/paas-docker/containers/airflow.sls
+++ b/roles/paas-docker/containers/airflow.sls
@@ -108,9 +108,6 @@
- port_bindings:
- 127.0.0.1:{{ container['app_port'] }}:{{ container['command_port'] }}
{% endif %}
- - healthcheck:
- Test: {{ container['healthcheck'] }}
- Interval: 30000000000
- networks:
- {{ container['network'] }}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 06:25 (21 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2248809
Default Alt Text
D2950.diff (2 KB)
Attached To
Mode
D2950: Remove in-container healthchecks for Airflow
Attached
Detach File
Event Timeline
Log In to Comment