Will try rpc. Seems to do exactly what I want. :)
From: [email protected]
To: [email protected]
Date: Mon, 10 Feb 2014 12:24:56 +0100
Subject: [uWSGI] Signaling nodes without legions
Hello,
The easiest is a context to explain myself :
I use the signal framework. It works well on the same server with the master's
workers. but I want it to spread to some other physical servers.
uwsgi --queue 10 --queue-store test.queue --queue-store-sync 1 --master
--workers 4 --wsgi-file /home/silly/testq2.py --chdir /home/silly/webs --http
:3032
on 192.168.10.25.
I have 4 workers per physical server.
So now, event1, registered as uwsgi.register_signal(10,"workers",hello) occurs
on node 192.168.10.25
I have a network of nodes (different physical servers) ranging from
192.168.10.25 -> .127
I don't want to set up a legion (may become too complex for my task), but if it
is required, let's go for it.
I would like to signal the event to all the nodes that has to receive it to
treat the action defined in the function associated.
I think I would like to be able to add some kind of --worker-node or change
option uwsgi.register_signal(10,"workers",hello) to
uwsgi.register_signal(10,"group",hello) or something like that.
How can I deal with it ? (lost, completely)
Thanks
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi