Hi Roberto,

Is it possible to access the master FIFO in Python to get a custom Python interactive interpreter and the "uwsgi" module ?

If not, I would like to implement this for uwsgictl.

I use uWSGI version 2.0.15 and Python 2.7.13.

Lastly, I would like to make the code compatible with Python 2.7.13 and 3.5.

Regards,

Etienne

Le 2017-12-19 à 10:57, Roberto De Ioris a écrit :
Hi all,

I'm planning to write a script in Python to allow controlling the master
uWSGI process and would like to get some input before attempting to code
this.

First, I'm struggling to safely start, stop and restart the master uWSGI
process when multiple workers/threads are used.

Thus, a primary objective of the uwsgictl utility would be to simplify
theses operations.

In addition, i would like to have the ability to get stats from the
uWSGI process, similar to the uwsgitop utility.

So, I'm considering writing a proof-of-concept uwsgictl script with the
following commands:

% uwsgictl [start|stop|restart]

It would also be nice to have a interactive Python shell by simply typing
:

% uwsgictl

Entering interactive Python shell...

  >>>

What do you think?


Would be really cool, maybe the master fifo could be a good start
(extending it with new commands should be pretty easy):

http://uwsgi-docs.readthedocs.io/en/latest/MasterFIFO.html


--
Etienne Robillard
tkad...@yandex.com
https://www.isotopesoftware.ca/

_______________________________________________
uWSGI mailing list
uWSGI@lists.unbit.it
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to