Commit Graph
6 Commits
Author SHA1 Message Date
Ilan Steemers 54e518151e Reduced code for stats. Stat now uses Redis pubsub 2015-06-21 16:51:25 +02:00
Ilan Steemers 9f4e4d94e4 Added basic cluster stats
TODO add these to django admin
2015-06-20 15:00:40 +02:00
Ilan Steemers ed9883470d Separated Cluster and Sentinel into two classes. 2015-06-19 22:24:27 +02:00
Ilan Steemers e6cfdf6a1f Better exit strategy:
-Pusher is stopped
-Poison pills are put on the task queue
-Wait for workers to clear the queue and exit
-Poison pill is put in the result queue
-Main process exits when monitor has finished processing results
2015-06-18 17:55:52 +02:00
Ilan Steemers 5adf92eb27 hooks now work
refactored task as dict instead of list for readability.
2015-06-18 15:23:21 +02:00
Ilan Steemers 90b5b0d6ab moved static methods to module functions
medic is now sentinel and runs in it's own process
sentinel shutdown procedure more stable
2015-06-18 14:10:48 +02:00