From 2006b4b4e54be24b558cf18fde4c171e3ba3fe0f Mon Sep 17 00:00:00 2001 From: Vishvananda Ishaya Date: Thu, 24 Jun 2010 04:12:00 +0100 Subject: [PATCH] message checking callbacks only need to run 10 times a second --- nova/rpc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nova/rpc.py b/nova/rpc.py index ca622dae..711aad9f 100644 --- a/nova/rpc.py +++ b/nova/rpc.py @@ -68,7 +68,7 @@ class Consumer(messaging.Consumer): io_inst = ioloop.IOLoop.instance() injected = ioloop.PeriodicCallback( - lambda: self.fetch(enable_callbacks=True), 1, io_loop=io_inst) + lambda: self.fetch(enable_callbacks=True), 100, io_loop=io_inst) injected.start() return injected @@ -80,7 +80,7 @@ class Consumer(messaging.Consumer): def attach_to_twisted(self): loop = task.LoopingCall(self.fetch, enable_callbacks=True) - loop.start(interval=0.01) + loop.start(interval=0.1) class Publisher(messaging.Publisher): pass