Uwsgi: Improve uwsgi options in 3.0 (and break backward compatibility)

Created on 19 Oct 2017  路  10Comments  路  Source: unbit/uwsgi

Let's have a list of uwsgi options that should be depreceated and removed in a future uWSGI 3.0 release.

Write one option to be changed/removed/depreceated in a single comment, with a short explanation. And we can vote on each comment.

Most helpful comment

--enable-threads - should be the safe default to true for the python plugin

All 10 comments

--master - should be true by default - for people wanting to remove than one single process, master = false can still be an option.

--enable-threads - should be the safe default to true for the python plugin

--safe-pidfile should be renamed to --pidfile, replacing existing --pidfile's functionality.

--die-on-term - should be the default option.

from the docs:

(use --die-on-term to respect the convention of shutting down the instance)

rename --http to --http-router, which i believe is a more accurate description of what it does. currently having --http and --http-socket is confusing.

enable --strict by default.

enable --honour-range by default; i can't see any reason you would want to disable this, unless it has bugs i'm not aware of (besides #1413 which is fixed in 2.1).

there are currently five options to spawn daemons:

  • --attach-daemon
  • --attach-daemon2
  • --smart-attach-daemon
  • --smart-attach-daemon2
  • --legion-smart-attach-daemon

the best one of these is --attach-daemon2, which includes the functionality of the other four options. could that be renamed to --attach-daemon and the rest removed?

I have created the uwsgi-3.0 branch. Pull request for options removal should go there

It would also be great to remove a lot of the option aliases.

Many people I talk to feel uWSGI has too many options. It has a lot, but not actually as many as it appears to.

In my own branch I've started trying to work out sensible naming patterns... some sort of scheme we could use consistently throughout to make them more logical. Obviously still very much a WIP.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yoichi picture yoichi  路  7Comments

pdonadeo picture pdonadeo  路  5Comments

dennylab picture dennylab  路  6Comments

xinghua picture xinghua  路  6Comments

ngnpope picture ngnpope  路  5Comments