Exemplo n.º 1
0
 def revive_eru_node(request):
     revive_container(request.form['id'])
     p = models.proxy.get_eru_by_container_id(request.form['id'])
     if p is not None:
         logging.info('Revive and setremotes for proxy %d, cluster #%d',
                      p.id, p.cluster_id)
         _set_proxy_remote(p.host, p.port, p.cluster.nodes[0].host,
                           p.cluster.nodes[0].port)
Exemplo n.º 2
0
 def revive_eru_node(request):
     revive_container(request.form['id'])