paypal / dce-go

Docker Compose Executor to launch pod of docker containers in Apache Mesos.
Apache License 2.0
63 stars 48 forks source link

optimize init health check and pod monitor #44

Closed JiaminZhu closed 6 years ago

JiaminZhu commented 6 years ago
  1. optimize init health check Checking if service in the pod is running using cmd docker-compose -f [file] ps -q [service]
  2. optimize pod monitor Pod monitor will send finish to mesos if only infra container is running.
  3. Add plugin tracing Add a folder composetrace to keep all the compose files modified by each plugin. It will be easy for debugging and figure out what does each plugin do.
  4. Add signal driven debug mode. Debug mode will be enable or disable by sending SIGUSR1 to dce process using cmd kill -SIGUSR1 [dce process id]

sandbox: http://10.180.72.46:5050/#/agents/05a9364a-0182-421a-8303-1c7c6858d32d-S64/browse?path=%2Fvar%2Flib%2Fmesos%2Fslaves%2F05a9364a-0182-421a-8303-1c7c6858d32d-S64%2Fframeworks%2Fbe208cac-365d-44da-88fb-9ac025dc96b8-0000%2Fexecutors%2Fcompose-pod-compose-test-0-e7b46f70-4731-4824-9ab2-792cdb175074%2Fruns%2Fac76330a-ba19-4789-8912-83619960af31

kkrishna commented 6 years ago

elaborate on point #4 with an example.

JiaminZhu commented 6 years ago

By running cmd kill -SIGUSR1 [pid] to switch log level. Here is an example to enable debug mode and print logs during pod monitor. http://10.180.72.56:5050/#/agents/05a9364a-0182-421a-8303-1c7c6858d32d-S68/browse?path=%2Fvar%2Flib%2Fmesos%2Fslaves%2F05a9364a-0182-421a-8303-1c7c6858d32d-S68%2Fframeworks%2Fbe208cac-365d-44da-88fb-9ac025dc96b8-0000%2Fexecutors%2Fcompose-paypal-nstestconfig-nodeapp-a-0-ef4ffea3-b493-41c1-82bb-bf599a85dfe4%2Fruns%2F9046857a-6120-435b-8fc4-a86cb2400b77