* 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 34d10ae0e0
commit 708a5afebc
3 changed files with 24 additions and 3 deletions

View File

@@ -28,4 +28,8 @@ fi
#fi
# start ledgersmb
exec starman --port 5762 --preload-app tools/starman.psgi
# --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 --workers ${LSMB_WORKERS:-5} --preload-app bin/ledgersmb-server.psgi