* Add option to set the number of Starman workers

This commit is contained in:
Erik Huelsmann
2018-05-23 23:20:36 +02:00
parent 36bc6d5ffc
commit b828cffad3
3 changed files with 21 additions and 3 deletions

View File

@@ -45,4 +45,5 @@ echo "Selected PERL5LIB=$PERL5LIB";
# --preload-app allows application initialization to kill the entire
# starman instance (instead of just the worker, which will immediately
# get restarted); it also has a positive effect on memory use
exec starman --port 5762 --preload-app bin/ledgersmb-server.psgi
exec starman --port 5762 --workers ${LSMB_WORKERS:-5} --preload-app bin/ledgersmb-server.psgi