uwsgi-docs icon indicating copy to clipboard operation
uwsgi-docs copied to clipboard

Defaults for workers and processes

Open nanonyme opened this issue 12 years ago • 3 comments

Please document what uwsgi does for workers and processes by default if values are not passed by user

nanonyme avatar Feb 24 '13 19:02 nanonyme

in which area do you think it should be noted ? when the server starts it reports its operational mode. Maybe it should be part of the Quickstarts ? (as soon as we move them from the old wiki)

unbit avatar Feb 26 '13 10:02 unbit

Perhaps a distinct article outlining the different operational modes could come in handy. (After all, there's plenty of those...)

akx avatar Feb 26 '13 19:02 akx

Maybe with 2.0 we could refactor all option definition to include default value or a function to call that will calculate default value (since some values depend on others). We could also add flags for dependencies, like one to mark that something requires --master or --cache ?? But in some cases this might be not flexible enough, for example defaults that are set based on other options that also requires for some other things to get parsed (initial workers count needs to know what is the minimum number of workers, what if minimum also needs to check something?), dependencies would need to be resolved properly. But with such informations we could print better --help output like:

M - feature requires master
C - feature requires cache

--something "feature description" [MC] (default: 4)

prymitive avatar Mar 09 '13 10:03 prymitive