Dnia piątek, 24 sierpnia 2012 18:49:39 Roberto De Ioris pisze: > Emperor -> vassal, communication is already bi-directional. Every message > is 1 byte sent from one of the peers (so we have 256 kind of messages). > > The protocol is explained here: > > http://projects.unbit.it/uwsgi/wiki/EmperorProtocol > > feel free to propose new kind of messages.
After reading http://projects.unbit.it/uwsgi/wiki/Emperor I have just one question: heartbeats are voluntary, it means that emperor will start tracking heartbeast and only after getting one or more messages. But what happens during startup? Is heartbeat sent early during starup, or does it happen after the app is fully loaded? In second case it won't help us in this specyfic case (apps hanging at startup). Threads are tricky, maybe helper process that will ping app (using code from --nagios command) and notify emperor that it should restart vassal if app does not respond? > By the way, i have just realized not all of the users are running under > the Emperor (even if they really should :P), so i will try adding the > thread-approach, and later we could think about something more advanced > using the emperor. Do "The Gnome Thing" (tm) and cut all features that may confuse users ;) Łukasz Mierzwa _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
