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
Hi @pochenok
I think, that your not right using semaphores - you declare semaphore in the get_result method and each coroutine has own semaphore instance, as result you try to create a lot of connection to the clickhouse server. For doing it right you must to share one semaphore instance between all you coroutines.
GCP - 24 CPU, 32 RAM.
Semaphore - just 4
Query is fast enough
Script starts running well but after some time I start getting this error:
Error on socket shutdown: [Errno 107] Transport endpoint is not connected
Before I was getting another error - OSError: [Errno 24] Too many open files
I fixed by raising limits - ulimit -n 100000
Google does not help me =(
The text was updated successfully, but these errors were encountered: