You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems an issue with distributed
E distributed.comm.core.CommClosedError: in <TLS (closed) ConnectionPool.identity local=tls://10.1.0.24:38628 remote=tls://3.138.37.203:8786>: ConnectionResetError: [Errno 104] Connection reset by peer
You can see multiple gaps in the "worker count" chart, this is where scheduler became totally unresponsive so we couldn't even scrape Prometheus metrics from it :-(
Scheduler logs show event loop being blocked a couple times, longest is here:
Oct 11 00:51:19 ip-10-0-15-210 cloud-init[894]: 2022-10-11 00:50:43,680 - distributed.core - INFO - Event loop was unresponsive in Scheduler for 64.70s. This is often caused by long-running GIL-holding functions or moving large chunks of data. This can cause timeouts and instability.
test_memory_efficient fails during startup. It fails to connect to the cluster. We may need to look into Coiled to understand what's the cause. @ntabris is this something you can help with?
test_large_map_first_work failed during teardown while trying to dump_cluster_state. I have no idea what's going on but there should be a timeout for this. @crusaderky I think you added the "always dump" functionality. Can you have a look and see if a timeout is sufficient?
One failure in upstream
test_memory_efficient. This is the one @ncclementi posted above with the connection reset while calling identity. However, we're still in cluster scaleup and are waiting for workers at this point. The Grafana dashboard @ntabris posted should already have passed this stage. The frozen GIL warning is likely just the scheduler receiving the graph. @ntabris is what you are posting from a rerun or the actual CI run?
test_memory_efficient fails during startup. It fails to connect to the cluster. We may need to look into Coiled to understand what's the cause. @ntabris is this something you can help with?
@fjetter not sure what you mean by "fails at startup", since I can see that cluster started and ran code. From what I can see, this also looks like a dask issue, but I'd be happy to get some help understanding this better.
Here's some information from this exact failure (not a re-run, this is from the linked CI run).
test_memory_efficient. This is the one @ncclementi posted above with the connection reset while calling identity. However, we're still in cluster scaleup and are waiting for workers at this point. The Grafana dashboard @ntabris posted should already have passed this stage. The frozen GIL warning is likely just the scheduler receiving the graph. @ntabris is what you are posting from a rerun or the actual CI run?
Actual CI run, not a rerun. I'd love if we had a way to get timestamp for failure... do we?
The issue could not be reproduced reliably. However, we have added additional instrumentation and improved test setup/teardown to be able to understand the root-cause better the next time this arises:
Activity
ncclementi commentedon Oct 12, 2022
This seems an issue with distributed
E distributed.comm.core.CommClosedError: in <TLS (closed) ConnectionPool.identity local=tls://10.1.0.24:38628 remote=tls://3.138.37.203:8786>: ConnectionResetError: [Errno 104] Connection reset by peer
/usr/share/miniconda3/envs/test/lib/python3.9/site-packages/distributed/comm/tcp.py:142: CommClosedError
and it happened in the upstream job, so it probably needs some attention.
@fjetter can someone on the Foundations team take a look?
ntabris commentedon Oct 13, 2022
cluster:
test_futures-4871813chttps://cloud.coiled.io/dask-engineering/clusters/93431/details
http://35.86.202.18:3000/d/eU1bT-nVz/cluster-metrics-prometheus?orgId=1&from=1665448521565&to=1665449547816&var-datasource=AWS+Prometheus+-+Sandbox+%28us+east+2%29&var-env=All&var-account=dask-engineering&var-cluster=test_futures-4871813c&var-cluster_id=93431
You can see multiple gaps in the "worker count" chart, this is where scheduler became totally unresponsive so we couldn't even scrape Prometheus metrics from it :-(
Scheduler logs show event loop being blocked a couple times, longest is here:
Oct 11 00:51:19 ip-10-0-15-210 cloud-init[894]: 2022-10-11 00:50:43,680 - distributed.core - INFO - Event loop was unresponsive in Scheduler for 64.70s. This is often caused by long-running GIL-holding functions or moving large chunks of data. This can cause timeouts and instability.ntabris commentedon Oct 13, 2022
FWIW
test_futureswas added a couple weeks ago in #388fjetter commentedon Oct 17, 2022
There appear to be a couple of different failures
Two failures in 0.4
test_memory_efficientfails during startup. It fails to connect to the cluster. We may need to look into Coiled to understand what's the cause. @ntabris is this something you can help with?test_large_map_first_workfailed during teardown while trying todump_cluster_state. I have no idea what's going on but there should be a timeout for this. @crusaderky I think you added the "always dump" functionality. Can you have a look and see if a timeout is sufficient?One failure in upstream
test_memory_efficient. This is the one @ncclementi posted above with the connection reset while callingidentity. However, we're still in cluster scaleup and are waiting for workers at this point. The Grafana dashboard @ntabris posted should already have passed this stage. The frozen GIL warning is likely just the scheduler receiving the graph. @ntabris is what you are posting from a rerun or the actual CI run?fjetter commentedon Oct 17, 2022
FWIW all of this is related to connection failures. Do we have any visibility on Coiled side if something strange happened during that time?
ncclementi commentedon Oct 17, 2022
For reference, this happened again, see upstream failure in this CI run https://github.com/coiled/coiled-runtime/actions/runs/3257668516/jobs/5349089077#step:5:655 and in this one https://github.com/coiled/coiled-runtime/actions/runs/3253749750/jobs/5341301656#step:5:598
ntabris commentedon Oct 17, 2022
@fjetter not sure what you mean by "fails at startup", since I can see that cluster started and ran code. From what I can see, this also looks like a dask issue, but I'd be happy to get some help understanding this better.
Here's some information from this exact failure (not a re-run, this is from the linked CI run).
https://cloud.coiled.io/dask-engineering/clusters/93429/details
http://35.86.202.18:3000/d/eU1bT-nVz/cluster-metrics-prometheus?orgId=1&from=1665448336084&to=1665449682572&var-datasource=AWS+Prometheus+-+Sandbox+%28us+east+2%29&var-env=All&var-account=dask-engineering&var-cluster=test_futures-d09a04c5&var-cluster_id=93429
Scheduler logs show thousands of lines of
and then python on scheduler gets OOMKilled:
And here's memory util on the scheduler, copied from Grafana dashboard:
ntabris commentedon Oct 17, 2022
Actual CI run, not a rerun. I'd love if we had a way to get timestamp for failure... do we?
ntabris commentedon Oct 17, 2022
My impression is that these are dask-related, not Coiled issues. In particular, these are connection errors between client and scheduler (8786).
If you could use anything from me (either because you do suspect Coiled issues or want help finding any cluster data), let me know.
hendrikmakait commentedon Oct 28, 2022
The issue could not be reproduced reliably. However, we have added additional instrumentation and improved test setup/teardown to be able to understand the root-cause better the next time this arises:
small_clientfixture phases on the scheduler #473Server.handle_streaminstead of swallowing/logging. dask/distributed#7162I'd suggest closing this issue.