windmill-labs / windmill

Open-source developer platform to power your entire infra and turn scripts into webhooks, workflows and UIs. Fastest workflow engine (13x vs Airflow). Open-source alternative to Retool and Temporal.
https://windmill.dev
Other
9.7k stars 444 forks source link

feature: add documentation for SLEEP_QUEUE, which helps reducing the server load #2907

Open lukstei opened 9 months ago

lukstei commented 9 months ago

Hello there,

I'm using Windmill on my Raspberry Pi. The first time I installed it, what annoyed me was the constant high CPU usage (>20%), so I decided to uninstall it. Now I reinstalled it because it is a really nice tool and the only problem for me was this CPU usage problem. So I looked into the code and found the SLEEP_QUEUE env variable which sets the polling interval of the worker. I set it to 1000ms, which is far enough for my use case.

I honestly think most use cases would be fine with a higher poll interval than the default, which is 25ms. My suggestion would be to make it more obvious that this is an important setting to reduce server load, which might be important for some people. In my case it reduces the constant load of 20% CPU to unnoticeable when idle.

rubenfiszel commented 8 months ago

That's a good point, I'm not sure where to document this but agreed it's a bit hidden at the moment. Thanks for the report.

NotFiliberto commented 1 month ago

how you installed windmill on the raspberry?