Преглед на файлове

AMBARI-18505. Ambari Status commands should enforce a timeout < heartbeat interval (aonishuk)

Andrew Onishuk преди 9 години
родител
ревизия
2271eec9f5
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      ambari-agent/src/main/python/ambari_agent/ActionQueue.py

+ 1 - 1
ambari-agent/src/main/python/ambari_agent/ActionQueue.py

@@ -87,7 +87,7 @@ class ActionQueue(threading.Thread):
     self.tmpdir = config.get('agent', 'prefix')
     self.customServiceOrchestrator = CustomServiceOrchestrator(config, controller)
     self.parallel_execution = config.get_parallel_exec_option()
-    self.status_command_timeout = int(self.config.get('agent', 'status_command_timeout', 5))
+    self.status_command_timeout = int(self.config.get('agent', 'status_command_timeout', 2))
     if self.parallel_execution == 1:
       logger.info("Parallel execution is enabled, will execute agent commands in parallel")