Skip to content

Commit

Permalink
Add 'db' and 'proxy' options to the config defaults of vPoller Worker
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaeon committed Sep 3, 2014
1 parent 4da1c01 commit b1a5076
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/vpoller/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ def __init__(self, config_file, num_workers=0):
'shutdown': self.shutdown,
}
self.config_defaults = {
'db': '/var/lib/vconnector/vconnector.db',
'mgmt': 'tcp://*:10000',
'proxy': 'tcp://localhost:10123',
}

def start(self):
Expand Down Expand Up @@ -132,7 +134,10 @@ def start_workers(self):
self.num_workers = multiprocessing.cpu_count()

for i in xrange(self.num_workers):
worker = VPollerWorker(config=self.config_file)
worker = VPollerWorker(
db=self.config.get('db'),
proxy=self.config.get('proxy')
)
worker.daemon = True
self.workers.append(worker)
worker.start()
Expand Down

0 comments on commit b1a5076

Please sign in to comment.