-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Doc tweaks - min/max_spare_servers and some typo fixes & rewording #41
base: master
Are you sure you want to change the base?
Conversation
These weren't clearly documented before, in my opinion; i had to delve into the code to find out how to allow the number of worker processes to adapt to the load, rather than being fixed.
I think this reads ever so slightly more naturally, although both forms are considered correct.
bin/starman
Outdated
@@ -37,6 +37,7 @@ starman - Starman launcher | |||
|
|||
starman --listen :5001 --listen /tmp/starman.sock | |||
starman --workers 32 --port 8080 | |||
starman --min_spare_severs 2 --max_spare_servers 4 --max_servers 10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can use - and plack handler automatically converts to _. i.e. starman --min-spare-servers 2 ...
I prefer the use of -.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, made that change.... slightly slow response there, I must admit ;)
The
min_spare_servers
,max_spare_servers
,max_servers
options weren't clearly documented, I had to look at the code to find out how to let Starman dynamically start more workers to handle the current load (within defined limits).I've added these to the documentation in
bin/starman
, and also fixed some typos and improved the clarity of some parts while I was there :)