Skip to content

Commit

Permalink
Orchester Application Created for mutliple workers architecture. May …
Browse files Browse the repository at this point in the history
…solve multiple PeriodicTasks execution
  • Loading branch information
DEKHTIARJonathan committed Aug 22, 2017
1 parent b3aea95 commit 414a96b
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 24 deletions.
24 changes: 13 additions & 11 deletions manifest-dev.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
domain: eu-gb.mybluemix.net
timeout: 120
memory: 512M
disk_quota: 2G
path: .
stack: cflinuxfs2
buildpack: https://github.com/cloudfoundry/buildpack-python.git
services:
- Feedcrunch-DB-dev
- RabbitMQ-dev

applications:

- name: Feedcrunch-Front-Dev
host: feedcrunch-front-dev
instances: 1
memory: 512M
disk_quota: 2G
path: .
buildpack: https://github.com/cloudfoundry/buildpack-python.git
command: chmod +x launch_server.sh && ./launch_server.sh
stack: cflinuxfs2
url:
- dev.feedcrunch.io
- feedcrunch-dev.eu-gb.mybluemix.net

- name: Feedcrunch-Worker-Dev
host: feedcrunch-worker-dev
instances: 1
memory: 512M
disk_quota: 2G
path: .
buildpack: https://github.com/cloudfoundry/buildpack-python.git
command: celery beat -A application --loglevel=info --detach && celery events -A application --loglevel=info --camera=django_celery_monitor.camera.Camera --frequency=2.0 --detach && celery worker -A application -l info --events
stack: cflinuxfs2
command: celery beat -A application --loglevel=info --detach && celery events -A application --loglevel=info --camera=django_celery_monitor.camera.Camera --frequency=2.0 --detach && celery worker -A application -l info --events
health-check-type: process
no-route: true
36 changes: 23 additions & 13 deletions manifest.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,35 @@
domain: eu-gb.mybluemix.net
timeout: 120
memory: 768M
disk_quota: 2G
path: .
stack: cflinuxfs2
buildpack: https://github.com/cloudfoundry/buildpack-python.git
services:
- Feedcrunch-DB-prod
- RabbitMQ-prod

applications:

- name: Feedcrunch-Front-Prod
host: feedcrunch-front-prod
instances: 2
memory: 1G
disk_quota: 2G
path: .
buildpack: https://github.com/cloudfoundry/buildpack-python.git
command: chmod +x launch_server.sh && ./launch_server.sh
stack: cflinuxfs2
url:
- www.feedcrunch.io
- feedcrunch.eu-gb.mybluemix.net

- name: Feedcrunch-Worker-Prod
host: feedcrunch-worker-prod
instances: 4
- name: Feedcrunch-Orchester-Prod
host: feedcrunch-orchester-prod
memory: 1G
disk_quota: 2G
path: .
buildpack: https://github.com/cloudfoundry/buildpack-python.git
instances: 1
command: celery beat -A application --loglevel=info --detach && celery events -A application --loglevel=info --camera=django_celery_monitor.camera.Camera --frequency=2.0 --detach && celery worker -A application -l info --events
stack: cflinuxfs2
health-check-type: process
no-route: true
no-route: true

- name: Feedcrunch-Worker-Prod
host: feedcrunch-worker-prod
instances: 3
command: celery worker -A application -l info --events
health-check-type: process
no-route: true

0 comments on commit 414a96b

Please sign in to comment.