-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Orchester Application Created for mutliple workers architecture. May …
…solve multiple PeriodicTasks execution
- Loading branch information
DEKHTIARJonathan
committed
Aug 22, 2017
1 parent
b3aea95
commit 414a96b
Showing
2 changed files
with
36 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |