def request_master(url,data):
global G_masterip
header = {'Content-Type':'application/x-www-form-urlencoded'}
http = Http()
[resp,content] = http.request("http://"+G_masterip+url,"POST",urlencode(data),headers = header)
logger.info("response from master:"+content.decode('utf-8'))
# The class is to collect data of containers on each worker
评论列表
文章目录