dagster-io / dagster

An orchestration platform for the development, production, and observation of data assets.
https://dagster.io
Apache License 2.0
11.7k stars 1.48k forks source link

Hitting OSError: [Errno 24] Too many open files #2583

Closed natekupp closed 4 years ago

natekupp commented 4 years ago

Places this has surfaced:

It's not clear that these are all related.

Here's one way to reproduce:

ulimit 256
pytest -s python_modules/dagster-graphql/dagster_graphql_tests/graphql/

To observe file descriptors leaking, run this in one terminal:

pytest -s python_modules/dagster-graphql/dagster_graphql_tests/graphql/test_config_types.py

and repeatedly run this in another terminal:

lsof -p $(ps -A | grep pytest | grep -v grep | awk '{print $1}') > $(date +"%s")

Observe that the number of open file descriptors given by lsof increases throughout the test, with about one new temporary directory sticking around per test.

natekupp commented 4 years ago

Seems best lead is generating lots of IPC calls

natekupp commented 4 years ago

https://mg.pov.lt/objgraph/ maybe useful

alangenfeld commented 4 years ago

https://dagster.phacility.com/P59

sryza commented 4 years ago

Observations:

sryza commented 4 years ago

Found it: https://dagster.phacility.com/D3472

schrockn commented 4 years ago

https://dagster.phacility.com/D3472