AppController/djinn.rb
# Creates HAProxy configuration for the TaskQueue REST API.
Creates HAProxy configuration for the TaskQueue REST API.
Creates HAProxy configuration for the TaskQueue REST API .
def configure_tq_routing()
    all_tq_ips = []
    @nodes.each { | node |
      if node.is_taskqueue_master? || node.is_taskqueue_slave?
        all_tq_ips.push(node.private_ip)
      end
    }
    HAProxy.create_tq_endpoint_config(all_tq_ips,
      my_node.private_ip, TaskQueue::HAPROXY_PORT)
    Nginx.create_taskqueue_rest_config(my_node.private_ip)
    Nginx.reload()
  end
def configure_tq_routing ( ) all_tq_ips = [ ] @nodes . each { | node | if node . is_taskqueue_master? || node . is_taskqueue_slave? all_tq_ips . push ( node . private_ip ) end } HAProxy . create_tq_endpoint_config ( all_tq_ips , my_node . private_ip , TaskQueue :: HAPROXY_PORT ) Nginx . create_taskqueue_rest_config ( my_node . private_ip ) Nginx . reload ( ) end
Creates HAProxy configuration for the TaskQueue REST API.
Creates HAProxy configuration for the TaskQueue REST API .