#7587 Increase WSGI worker process count
Closed: fixed 5 years ago Opened 5 years ago by cheimes.

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.


Metadata Update from @cheimes:
- Custom field on_review adjusted to https://pagure.io/freeipa/issue/7587

5 years ago

Metadata Update from @cheimes:
- Issue assigned to cheimes

5 years ago

Metadata Update from @pvoborni:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1591647

5 years ago

master:

  • f1d5ab3 Increase WSGI process count to 5 on 64bit

ipa-4-6:

  • db8e0e6 Increase WSGI process count to 5 on 64bit

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.

ipa-4-5:

  • 0571ed7 Increase WSGI process count to 5 on 64bit
  • 1e131bb Use 4 WSGI workers on 64bit systems

master:

  • 0e21d93 Use 4 WSGI workers on 64bit systems

ipa-4-6:

  • f98b6e1 Use 4 WSGI workers on 64bit systems

Metadata Update from @cheimes:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

5 years ago

master:

  • f0c3a35 Test if WSGI worker process count is set to 4

ipa-4-7:

  • 660f90b Test if WSGI worker process count is set to 4

ipa-4-6:

  • 6760ac9 Test if WSGI worker process count is set to 4

Login to comment on this ticket.

Metadata