Comments (4)
This sounds like something that might extend the ManagementFlag interface? http://projects.unbit.it/uwsgi/wiki/ManagementFlag
(Yes, yes, I know, sorry -- ManagementFlag hasn't been ported to the new docs yet :D)
from uwsgi.
i think the whole management flag subsystem should be rewritten to support more (all ?) parameters.
Maybe the simplest choice is changing it to be more "string" based, so each re-configure packet could be a simple list of key-value items. The uwsgi_option flag field should take an additional flag marking ONTHEFLY options (the ones that could be changed without reload). After having such a system, implementing a config-update system should be extremely easy and fast.
Example:
{'max-requests':'1000', 'harakiri':'40'} => will update both max-requests and harakiri without taking down the instance
while
{'sockets':'/tmp/foobar'} => is not an onthefly option and it will be ignored
from uwsgi.
Adding possibility to update all settings on-the-fly would require massive changes to whole code base, and forkish nature of uWSGI will make it tricky.
Example: caches are initialized in the master on startup and we can't change them after workers are forked since workers will have different configuration than master.
I've added it to 2.0 milestone, IMHO we should try to come up with a better solution for this during 2.0 development (when there is possibility to make backward incompatible changes if needed) and once there is a way of doing this in the core, we can start migrating options to it.
from uwsgi.
I think this will be pretty undoable without a complete rewrite, and, in addition to this, will make plugin development really complex (as you need to manage locking when reading options). Closing it, maybe some idea will popup in the future.
from uwsgi.
Related Issues (20)
- OSError: [Errno 90] Message too long
- Why does uwsgi-docs suggests using uwsgi-2.0.20? HOT 1
- uWSGI 2.0.25: TypeError: sequence item 14: expected str instance, NoneType found HOT 9
- Missing release notes for 2.0.25 HOT 2
- UWSGI 2.0.25: static-expires-uri option does not work with libpcre2 HOT 5
- CVE-2024-24795 HOT 1
- uwsgi provides false debugging information
- Enable debugging in vscode (uwsgi and flask) HOT 3
- Integrate uwsgi with fastapi HOT 1
- BUG: flaky exit-code when using need-app and lazy-apps flags together(+FIX) HOT 3
- uWSGI build error - GCC 13 on Ubuntu 24.04 HOT 1
- uWSGI Segmentation Fault When Running with New Relic HOT 2
- Multiple HTTP sockets with map-socket: the second HTTP socket is very slow
- `ENOSYS` error in `pthread_mutexattr_setprotocol` for alpine based images
- uwsgi fails to compile with Python 3.13 HOT 1
- Errors that occur when uwsgi is running at high concurrency
- Graceful reload|shutdown doesn't work when no requests coming
- gracefully_kill_them_all is invalid.
- Need help to understand what causes memory to be allocated HOT 2
- pyuwsgi + enable-threads + python3.12: workers do not recover after a reload HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uwsgi.