liqian 2 年之前
父節點
當前提交
01cceade15
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      rov-sever/server/ess-instance-rov-server.py

+ 5 - 5
rov-sever/server/ess-instance-rov-server.py

@@ -176,11 +176,11 @@ def addBackendServers(slb_id, instance_id):
     request.set_BackendServers([{"ServerId": instance_id, "Weight": "0", "Type": "ecs", "ServerIp": ipaddr}])
     request.set_BackendServers([{"ServerId": instance_id, "Weight": "0", "Type": "ecs", "ServerIp": ipaddr}])
     response = client.do_action_with_exception(request)
     response = client.do_action_with_exception(request)
     logging.info(response)
     logging.info(response)
-    for i in range(1, 6):
-        time.sleep(5)
-        weight = i * 20
-        logging.info(f"instance_id: {instance_id}, weight: {weight}")
-        setWeight(slb_id=slb_id, instance_id=instance_id, weight=weight)
+    # for i in range(1, 6):
+    #     time.sleep(5)
+    #     weight = i * 20
+    #     logging.info(f"instance_id: {instance_id}, weight: {weight}")
+    #     setWeight(slb_id=slb_id, instance_id=instance_id, weight=weight)
 
 
 
 
 def getIpaddr(instance_id):
 def getIpaddr(instance_id):