Fix node scalability #102
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
-
55 66 def __unicode__(self): 56 67 return self.name 57 68 58 @method_cache(10, 5) 69 @method_cache(10) 59 70 def get_online(self): 60 71 """Check if the node is online. 61 72 62 Runs a remote ping task if the worker is running. 73 Check if node is online by queue is available. 63 74 """ 64 75 try: 65 return self.remote_query(vm_tasks.ping, timeout=1, default=False) -
55 66 def __unicode__(self): 56 67 return self.name 57 68 58 @method_cache(10, 5) 69 @method_cache(10) 59 70 def get_online(self): 60 71 """Check if the node is online. 61 72 62 Runs a remote ping task if the worker is running. 73 Check if node is online by queue is available. 63 74 """ 64 75 try: 65 return self.remote_query(vm_tasks.ping, timeout=1, default=False) 66 except WorkerNotFound: 76 self.get_remote_queue_name("vm") -
Owner
check_queue contains a 1sec timeout. so the negative case is not sped up. the timeout can be lowered to 0.1sec, but even 25*0.1 is 2.5secs of wait.
fixed in bdeba0d6d
-
-
Owner
👍