Browse Source

update sleep

supeng 1 year ago
parent
commit
256475b782
1 changed files with 1 additions and 1 deletions
  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)]