-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
executable file
·44 lines (33 loc) · 919 Bytes
/
Copy pathconfig.py
File metadata and controls
executable file
·44 lines (33 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#-*- encoding: utf-8 -*-
import redis
import time
#配置公私钥"""
public_key = " "
private_key = " "
base_url = "http://api.ucloud.cn"
#redis db=0 is uhost,db=1 is mysql
ruhost = redis.Redis(host = '172.16.104.111', port = '6379', db=0)
rmysql = redis.Redis(host = '172.16.104.111', port = '6379', db=1)
rwarning = redis.Redis(host = '172.16.104.111', port = '6379', db=2)
timeStamp = int(time.time())
timeArray = time.localtime(timeStamp)
nowTime = time.strftime("%Y%m%d%H%M%S", timeArray)
#北京BGP3数据中心主机名和资源ID
cn_north_03_host={
"www":" ",
"pre":" ",
"shop":" ",
"picture":" ",
"shop-admin":" ",
"Shop-clodbackup":" ",
"DRP":" "
}
#华东数据中心uhost主机名和资源ID
cn_east_01_host={
"www_coldbackup":" "
}
#数据中心设置
DataCenter={
"cn-north-03":cn_north_03_host,
"cn-east-01":cn_east_01_host
}