Browse Source

remove annotation

pull/2/head
ligang 6 years ago
parent
commit
9b206778ea
  1. 8
      script/monitor_server.py

8
script/monitor_server.py

@ -29,12 +29,8 @@ schedule = sched.scheduler(time.time, time.sleep)
class ZkClient: class ZkClient:
def __init__(self): def __init__(self):
# hosts配置zk地址集群 # hosts配置zk地址集群
#self.zk = KazooClient(hosts='192.168.220.188:2181,192.168.220.189:2181,192.168.220.190:2181') self.zk = KazooClient(hosts=zookeepers)
print zookeepers self.zk.start()
#zookeepers1 = zookeepers
self.zk = KazooClient(hosts=zookeepers)
print "ready start"
self.zk.start()
# 读取配置文件,组装成字典 # 读取配置文件,组装成字典
def read_file(self,path): def read_file(self,path):

Loading…
Cancel
Save