Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve ungraceful docker-compose stop #5

Open
mdr0id opened this issue May 23, 2022 · 0 comments
Open

Resolve ungraceful docker-compose stop #5

mdr0id opened this issue May 23, 2022 · 0 comments

Comments

@mdr0id
Copy link
Contributor

mdr0id commented May 23, 2022

During stopping procedures to update/restart nodes, it was noticed that the mutli exporter does not gracefully shutdown:

$ docker-compose stop
Stopping ecc_zcashd_exporter_zcashd_1              ... 
Stopping ecc_zcashd_exporter_ecc_zcashd_exporter_1 ... 
Stopping ecc_zcashd_exporter_grafana_1             ... done
Stopping ecc_zcashd_exporter_prometheus_1          ... done
Stopping ecc_zcashd_exporter_loki_1                ... 
Stopping monitoring_node_exporter                  ... done

ERROR: for ecc_zcashd_exporter_loki_1  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=70)

ERROR: for ecc_zcashd_exporter_zcashd_1  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=70)

ERROR: for ecc_zcashd_exporter_ecc_zcashd_exporter_1  UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=70)
ERROR: An HTTP request took too long to complete. Retry with --verbose to obtain debug information.
If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60).

To resolve, set your local session var accordly, or update vi /etc/profile and source /etc/profile

export COMPOSE_HTTP_TIMEOUT=500

After updating above to your environment's preference, docker-compose stop should now shutdown all pods gracefully:

$ docker-compose stop
Stopping ecc_zcashd_exporter_zcashd_1              ... done
Stopping ecc_zcashd_exporter_ecc_zcashd_exporter_1 ... done
Stopping ecc_zcashd_exporter_grafana_1             ... done
Stopping ecc_zcashd_exporter_prometheus_1          ... done
Stopping ecc_zcashd_exporter_loki_1                ... done
Stopping monitoring_node_exporter                  ... done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant