lots of experiments

This commit is contained in:
Sandy Walsh 2014-08-19 13:40:06 +00:00
parent ff367dfcc7
commit 90bf002aeb
3 changed files with 13 additions and 7 deletions

6
flush.sh Executable file
View 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

View File

@ -19,10 +19,10 @@ class Config(oahu.config.Config):
# Trigger names have to be consistent across all workers
# (yagi and daemons).
by_request = trigger_definition.TriggerDefinition("request-id",
["_context_request_id", ],
criteria.Inactive(60),
self.callback)
# by_request = trigger_definition.TriggerDefinition("request-id",
# ["_context_request_id", ],
# criteria.Inactive(3600),
# self.callback)
# This trigger requires a Trait called "when_date" which is
# the date-only portion of the "when" trait. We will create
@ -34,7 +34,7 @@ class Config(oahu.config.Config):
'compute.instance.exists'),
self.callback)
triggers = [by_request, instance_usage]
triggers = [instance_usage, ] #[by_request, instance_usage]
return driver.MongoDBDriver(triggers)

View File

@ -1,7 +1,7 @@
sessionname tach
hardstatus alwayslastline '%{= .} %-Lw%{= .}%> %n%f %t*%{= .}%+Lw%< %-=%{g}(%{d}%H/%l%{g})'
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
stuff "cd git/yagi/bin; ./yagi-event --config ../../../shoebox.conf\r"
screen -t yagi2 bash
@ -9,7 +9,7 @@ stuff "cd git/yagi/bin; ./yagi-event --config ../../../shoebox.conf\r"
screen -t quincy bash
stuff "cd git/quincy/quincy; gunicorn --log-file=- api:api\r"
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
stuff "pipeline ready \".|oahu_config:Config\" --polling_rate=1\r"
screen -t ready2 bash