lots of experiments
This commit is contained in:
parent
ff367dfcc7
commit
90bf002aeb
6
flush.sh
Executable file
6
flush.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
sudo rabbitmqctl list_queues
|
||||||
|
sudo rabbitmqctl stop_app
|
||||||
|
sudo rabbitmqctl reset
|
||||||
|
sudo rabbitmqctl start_app
|
||||||
|
sudo rabbitmqctl list_queues
|
@ -19,10 +19,10 @@ class Config(oahu.config.Config):
|
|||||||
|
|
||||||
# Trigger names have to be consistent across all workers
|
# Trigger names have to be consistent across all workers
|
||||||
# (yagi and daemons).
|
# (yagi and daemons).
|
||||||
by_request = trigger_definition.TriggerDefinition("request-id",
|
# by_request = trigger_definition.TriggerDefinition("request-id",
|
||||||
["_context_request_id", ],
|
# ["_context_request_id", ],
|
||||||
criteria.Inactive(60),
|
# criteria.Inactive(3600),
|
||||||
self.callback)
|
# self.callback)
|
||||||
|
|
||||||
# This trigger requires a Trait called "when_date" which is
|
# This trigger requires a Trait called "when_date" which is
|
||||||
# the date-only portion of the "when" trait. We will create
|
# the date-only portion of the "when" trait. We will create
|
||||||
@ -34,7 +34,7 @@ class Config(oahu.config.Config):
|
|||||||
'compute.instance.exists'),
|
'compute.instance.exists'),
|
||||||
self.callback)
|
self.callback)
|
||||||
|
|
||||||
triggers = [by_request, instance_usage]
|
triggers = [instance_usage, ] #[by_request, instance_usage]
|
||||||
|
|
||||||
return driver.MongoDBDriver(triggers)
|
return driver.MongoDBDriver(triggers)
|
||||||
|
|
||||||
|
4
screenrc
4
screenrc
@ -1,7 +1,7 @@
|
|||||||
sessionname tach
|
sessionname tach
|
||||||
hardstatus alwayslastline '%{= .} %-Lw%{= .}%> %n%f %t*%{= .}%+Lw%< %-=%{g}(%{d}%H/%l%{g})'
|
hardstatus alwayslastline '%{= .} %-Lw%{= .}%> %n%f %t*%{= .}%+Lw%< %-=%{g}(%{d}%H/%l%{g})'
|
||||||
screen -t gen bash
|
screen -t gen bash
|
||||||
stuff "cd git/notigen/bin; python event_pump.py ../templates 60\r"
|
stuff "cd git/notigen/bin; python event_pump.py ../templates 2 0\r"
|
||||||
screen -t yagi1 bash
|
screen -t yagi1 bash
|
||||||
stuff "cd git/yagi/bin; ./yagi-event --config ../../../shoebox.conf\r"
|
stuff "cd git/yagi/bin; ./yagi-event --config ../../../shoebox.conf\r"
|
||||||
screen -t yagi2 bash
|
screen -t yagi2 bash
|
||||||
@ -9,7 +9,7 @@ stuff "cd git/yagi/bin; ./yagi-event --config ../../../shoebox.conf\r"
|
|||||||
screen -t quincy bash
|
screen -t quincy bash
|
||||||
stuff "cd git/quincy/quincy; gunicorn --log-file=- api:api\r"
|
stuff "cd git/quincy/quincy; gunicorn --log-file=- api:api\r"
|
||||||
screen -t expired bash
|
screen -t expired bash
|
||||||
stuff "pipeline expired \".|oahu_config:Config\" --polling_rate=2\r"
|
stuff "pipeline expired \".|oahu_config:Config\" --polling_rate=20\r"
|
||||||
screen -t ready1 bash
|
screen -t ready1 bash
|
||||||
stuff "pipeline ready \".|oahu_config:Config\" --polling_rate=1\r"
|
stuff "pipeline ready \".|oahu_config:Config\" --polling_rate=1\r"
|
||||||
screen -t ready2 bash
|
screen -t ready2 bash
|
||||||
|
Loading…
Reference in New Issue
Block a user