소스 검색

地址改为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():