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
|
||||
# (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)
|
||||
|
||||
|
4
screenrc
4
screenrc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user