Seafile 6.2.x (WSGI mode) Idle CPU Usage too High


#21

So they will be left out in further releases on default I guess?!


#22

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.

@daniel.pan

  1. 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.)?

  2. Why were these settings set/were necessary and are there other impacts on server’s behavior?

  3. 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.)

  4. If removing the lines is save, it will be good that these change and the impact to the CPU usage is documented somewhere.

Thanks


#23

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.


#24

Please also move workers to the config file. Thanks!


#25

Hello,
It’s still not effective this change in version 6.3.4 pro ?


#26

I don’t know what you mean. In version 6.3, the config file is put under conf directory and you can customize.


#27

where exactly ?

Because I found the parameters in
/home/seafile/seafile-server-latest/runtime/seahub.conf


#28

The config file is no longer used. The new one is conf/gunicorn.conf


#29

Okay, thank you very much.