Repository files navigation Stackdriver python profiler and Celery -P gevent bug
Instantiating Stackdriver python profiler inside celery workers started using -P gevent option would experience a hiccup during its execution.
The hiccup happens once in a while for a duration of 10 seconds, its relation to Stackdriver python profiler are noticeable with proper log level.
The hiccup duration is a consistent 10 seconds.
Disabling CPU profiling solves the problem.
Removing the -P gevent option solves the problem.
Clone this repo.
cd into it.
Setup cloud profiler related stuff(credentials, project ids)
docker-compose up
At this point, the dispatcher service is dispatching tasks non-stop, meaning the worker should be logging continuously.
Watch for logs from the worker service for the hiccup.
The hiccup will occur after logging Successfully created a CPU profile.
Watch how for the next 10 seconds it wouldn't process/log anything. THIS IS THE BUG.
Then, processing/logging resumes normally after logging Starting to upload profile.
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.