瀏覽代碼

地址改为linux下使用VPC

luojiehua 4 年之前
父節點
當前提交
d7902d7848
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      BaseDataMaintenance/dataSource/source.py

+ 2 - 2
BaseDataMaintenance/dataSource/source.py

@@ -70,12 +70,12 @@ import platform
 if platform.system()=="windows":
     OTS_URL = "https://bxkc-ots.cn-hangzhou.ots.aliyuncs.com"
 else:
-    OTS_URL = "https://bxkc-ots.cn-hangzhou.ots-internal.aliyuncs.com"
+    OTS_URL = "https://bxkc-ots.cn-hangzhou.vpc.tablestore.aliyuncs.com"
 
 def getConnect_ots():
     ots_client = tablestore.client.OTSClient(OTS_URL, 'LTAI4G2bwraGDYQ4S5hhCxht', 'k6Llfa0S1KuvYyU2cWchExdQjPGJOY',
                                              'bxkc-ots', logger_name = 'table_store.log',
-                                             retry_policy = tablestore.WriteRetryPolicy())
+                                             retry_policy = tablestore.WriteRetryPolicy(),socket_timeout=120)
     return ots_client
 
 def getConnect_gdb():