Coder Social home page Coder Social logo

Comments (4)

akx avatar akx commented on August 19, 2024

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.

unbit avatar unbit commented on August 19, 2024

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.

prymitive avatar prymitive commented on August 19, 2024

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.

unbit avatar unbit commented on August 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.