mirror of
https://github.com/ansible/awx.git
synced 2026-04-03 09:15:05 -02:30
Implement a more dynamic celery queue system
* Meant to be a starting point to more efficiently manage work routing and to balance work across all tower nodes * Integrate flower as a dev tool that starts alongside other nodes. Helpful for observing and monitoring the queues/exchanges * For the moment, force the task manager to only run on one node (not sure if this is needed) * Define queues and routes for all task work * Bump celery version to 3.1.23 * Expose flower through haproxy
This commit is contained in:
@@ -11,6 +11,7 @@ services:
|
||||
ports:
|
||||
- "8013:8013"
|
||||
- "1936:1936"
|
||||
- "5555:5555"
|
||||
tower_1:
|
||||
image: gcr.io/ansible-tower-engineering/tower_devel:${TAG}
|
||||
hostname: tower_1
|
||||
|
||||
@@ -12,6 +12,7 @@ services:
|
||||
ports:
|
||||
- "8080:8080"
|
||||
- "8013:8013"
|
||||
- "5555:5555"
|
||||
links:
|
||||
- postgres
|
||||
- memcached
|
||||
|
||||
@@ -17,6 +17,11 @@ frontend localnodes
|
||||
mode http
|
||||
default_backend nodes
|
||||
|
||||
frontend flower
|
||||
bind *:5555
|
||||
mode http
|
||||
default_backend flower_nodes
|
||||
|
||||
backend nodes
|
||||
mode http
|
||||
balance roundrobin
|
||||
@@ -29,6 +34,18 @@ backend nodes
|
||||
server tower_2 tower_2:8013 check
|
||||
server tower_3 tower_3:8013 check
|
||||
|
||||
backend flower_nodes
|
||||
mode http
|
||||
balance roundrobin
|
||||
option forwardfor
|
||||
option http-pretend-keepalive
|
||||
http-request set-header X-Forwarded-Port %[dst_port]
|
||||
http-request add-header X-Forwarded-Proto https if { ssl_fc }
|
||||
#option httpchk HEAD / HTTP/1.1\r\nHost:localhost
|
||||
server tower_1 tower_1:5555
|
||||
server tower_2 tower_2:5555
|
||||
server tower_3 tower_3:5555
|
||||
|
||||
listen stats
|
||||
bind *:1936
|
||||
stats enable
|
||||
|
||||
Reference in New Issue
Block a user