浏览代码

update sleep

supeng 1 年之前
父节点
当前提交
256475b782
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      longvideo_restart.py

+ 1 - 1
longvideo_restart.py

@@ -30,7 +30,7 @@ def server_restart(slb_client, instance_id, image_name):
         logging.info(f"docker restart finished.")
         # 4. 探活
         server_health_check(slb_client, instance_id)
-        time.sleep(10)
+        time.sleep(20)
         logging.info(f"health check finished.")
         # 5. 挂流量
         add_weight_list = [(10, 5), (20, 5), (40, 5), (60, 5), (80, 5), (100, 5)]