summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-07-24 13:25:44 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-07-24 13:25:44 +0200
commitcbad2615bcd7f3d7145a65bfa0892fc5f18a846d (patch)
treea2586e97384f16b5311857332c6c339462ec8180
parentb791cb453fccf5f7ad774da36ba12fc638fbcb12 (diff)
downloadvaindock-cbad2615bcd7f3d7145a65bfa0892fc5f18a846d.tar.gz
vaindock-cbad2615bcd7f3d7145a65bfa0892fc5f18a846d.zip
split crunch queues
-rw-r--r--docker-compose.yml35
1 files changed, 30 insertions, 5 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index dfdf7f0..e5fa950 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -28,7 +28,9 @@ services:
- apigrabber
- apigrabber_brawl
- apigrabber_tournament
- - cruncher
+ - cruncher_global
+ - cruncher_player
+ - cruncher_global_tournament
- telesucker
- telesucker_tournament
- analyzer
@@ -45,7 +47,8 @@ services:
- processor
- shrinker
- apigrabber
- - cruncher
+ - cruncher_global
+ - cruncher_player
- telesucker
frontend:
@@ -282,7 +285,10 @@ services:
- DATABASE_URI=mysql://vainweb:vainweb@db-web/vainweb
- QUEUE=process
- ANALYZE_QUEUE=analyze
+ - CRUNCH_QUEUE=crunch_global
+ - CRUNCH_PLAYER_QUEUE=crunch_player
- DOANALYZEMATCH=true
+ - DOCRUNCHMATCH=true
processor_brawl:
build: ../processor
@@ -361,7 +367,7 @@ services:
- DATABASE_URI=mysql://vaintournament:vaintournament@db-tournament/vaintournament
- QUEUE=shrink_tournament
- cruncher:
+ cruncher_global:
build: ../cruncher
stop_signal: SIGINT
restart: on-failure
@@ -374,11 +380,30 @@ services:
environment:
- RABBITMQ_URI=amqp://cruncher:cruncher@queue/
- DATABASE_URI=mysql://vainweb:vainweb@db-web/vainweb
- - QUEUE=crunch
+ - QUEUE=crunch_global
+ - SCRIPT=crunch_global.sql
- BATCHSIZE=500
- SLOWMODE=0
- cruncher_tournament:
+ cruncher_player:
+ build: ../cruncher
+ stop_signal: SIGINT
+ restart: on-failure
+ volumes:
+ - ../cruncher:/usr/src/app
+ - ../orm:/usr/src/orm
+ depends_on:
+ - queue
+ - db-web
+ environment:
+ - RABBITMQ_URI=amqp://cruncher:cruncher@queue/
+ - DATABASE_URI=mysql://vainweb:vainweb@db-web/vainweb
+ - QUEUE=crunch_player
+ - SCRIPT=crunch_player.sql
+ - BATCHSIZE=500
+ - SLOWMODE=0
+
+ cruncher_global_tournament:
build: ../cruncher
stop_signal: SIGINT
restart: on-failure