So they will be left out in further releases on default I guess?!
It does not to seem like the lines are removed.
Yesterday I updated from 6.1.9 Pro (with WSGI mode) to 6.2.4 Pro (with WSGI mode) and I realized unnecessary CPU usage of Seahub when idle, too.
I checked “…/runtime/seahub.conf” and the mentioned lines are present in 6.2.x:
... daemon = True workers = 3 threads = 5 ...
Before the update I especially checked the changelog (https://manual.seafile.com/changelog/changelog-for-seafile-professional-server.html) to see, if there is some news about it or some instructions which one have to comply with.
Are these special settings now the default settings for Seahub and with this, is the extra idle CPU usage deliberate and wanted or calculated (e.g. trade-off, etc.)?
Why were these settings set/were necessary and are there other impacts on server’s behavior?
Is it a save and supported way to remove the mentioned lines? And what would be the difference/advantage/disadvantage of doing it? (performance, number of clients or site accesses, etc.)
If removing the lines is save, it will be good that these change and the impact to the CPU usage is documented somewhere.
The lines are added back for performance reason.
For production environment for 200+ users, workers = 3 and threads = 5 is recommended configuration. This means there are in total 15 threads to serve the requests from users. If the value is too small, the requests will pile up.
If you use 15 workers, there will be too many python processes and use a lot of memory.
For personal usage, you can remove threads = 5.
As said in another thread, we will make the config file to
conf directory in the 6.3, so people can customize the configuration and preserve the configuration during upgrade.
Please also move workers to the config file. Thanks!
It’s still not effective this change in version 6.3.4 pro ?
I don’t know what you mean. In version 6.3, the config file is put under conf directory and you can customize.
where exactly ?
Because I found the parameters in
The config file is no longer used. The new one is conf/gunicorn.conf
Okay, thank you very much.