WSGI daemon process count is currently limited to two single-threaded processes. IPA requires single threaded WSGI workers, because IPA uses GSSAPI authentication. Two daemon processes means that the IPA RCP can only handle two requests at a time. This can be too low for a busy server.
On a 64bit system with Python 3.6, each WSGI worker process consumes about 100-110 MB resident memory. Since mod_wsgi preforks the workers, about 30-35 MB memory of the 110 MB RSS are shared across workers. Increasing the worker count from 2 to 5 means, IPA RPC consumes about 200 to 250 MB additional memory.
mod_wsgi
Metadata Update from @cheimes: - Custom field on_review adjusted to https://pagure.io/freeipa/issue/7587
Metadata Update from @cheimes: - Issue assigned to cheimes
Metadata Update from @pvoborni: - Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1591647
Issue linked to bug 1591647
master:
ipa-4-6:
WIth 5 workers, test_commands on master sometimes fail with OOM killer. 4.5 tests aren't passing at all. With 4 workers, 4.5 is working fine. I suggest to reduce the amount of workers from 5 to 4, which is already double of the previous value.
test_commands
ipa-4-5:
Metadata Update from @cheimes: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)
ipa-4-7:
Login to comment on this ticket.