uwsgi icon indicating copy to clipboard operation
uwsgi copied to clipboard

`max-requests-delta` option not recognised in uwsgi 2.0.20

Open Tomasz-Kluczkowski opened this issue 4 years ago • 2 comments

Hi,

Just tried to use this option in our setup.

uwsgi python version:

 uwsgi --version                                                                                                                                                                                                                                                                                                                                                                          
2.0.20

When it is in wsgi.ini (skipped irrelevant options):

[uwsgi]
strict = true
max-requests-delta = 100   ; Add delta to stagger worker restarts on requests count

results in:

uwsgi wsgi.ini                                                                                                                                                                                                                                                                                                                                                                 
[uWSGI] getting INI configuration from wsgi.ini
[strict-mode] unknown config directive: max-requests-delta

when using it as a command line arg (commented it out in wsgi.ini at that time):

uwsgi wsgi.ini --max-requests-delta 100                                                                                                                                                                                                                                                                                                                                                     1 х  platform Py  at 14:36:25 
uwsgi: unrecognized option `--max-requests-delta'
getopt_long() error

since it is mentioned in the newest documentation (but the max-worker-lifetime-delta is not, but works) could it be that the documentation meant to have max-worker-lifetime-delta and the max-requests-delta is not an option? Probably not and it is a bug....

Tomasz-Kluczkowski avatar Dec 29 '21 14:12 Tomasz-Kluczkowski

The answer is here: https://github.com/unbit/uwsgi/issues/2037#issuecomment-640167887

bluetech avatar Jan 10 '22 14:01 bluetech

I still have the same issue with max-requests-delta:

[uWSGI] getting INI configuration from worker.ini
[strict-mode] unknown config directive: max-requests-delta

Any updates? @xrmx I saw in another thread that you were working on it

HFN avatar Aug 13 '24 13:08 HFN