Concurrent Processes for Script-Based and Offline Scans
You can adjust concurrency for script-based and offline scans to improve their performance. To do this:
-
On your Key Manager Servers, find a line like the following from
/opt/sshmgr/bin/runcelery:exec /opt/sshmgr/.runtime/bin/python3 /opt/sshmgr-runtime/bin/celery \`echo $CELERY_DEBUG` \-A msg_queue.celery.app worker \-n celery@%h \-Ofair -BAdd a
--concurrencyoption to specify the maximum concurrent processes, for example:exec /opt/sshmgr/.runtime/bin/python3 /opt/sshmgr-runtime/bin/celery \`echo $CELERY_DEBUG` \-A msg_queue.celery.app worker \-n celery@%h \-Ofair -B \--concurrency 32Similarly, find a line like the following from
/opt/sshmgr/bin/runhiscelery:exec python3 /opt/sshmgr-runtime/bin/celery \`echo $CELERY_DEBUG` \-A hscelery.app worker \-n hiscelery@%h \-Ofair -BAnd once again add a
--concurrencyoption to specify the maximum concurrent processes, for example:exec python3 /opt/sshmgr-runtime/bin/celery \`echo $CELERY_DEBUG` \-A hscelery.app worker \-n hiscelery@%h \-Ofair -B \--concurrency 32note--concurrencyshould be approximately twice the number of cores on your Key Manager server. You may display the number of cores using the nproc command. -
Restart the Key Manager services.
On front ends:
# supervisorctl restart frontend:And on back ends:
# supervisorctl restart backend: