uwsgi-docs
uwsgi-docs copied to clipboard
Defaults for workers and processes
Please document what uwsgi does for workers and processes by default if values are not passed by user
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)
Perhaps a distinct article outlining the different operational modes could come in handy. (After all, there's plenty of those...)
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)