Adding a background process (celery) to an application for scaling on OpenShift

I am developing a scaling application for RH Openshift. I plan to use three gears for the following purposes:
1) HAProxy and web cartridge
2) MySQL 5.1 database
3) Background process (celery)

I already installed the first two gears by creating a scalable application and adding a MySQL database cartridge. How can I schedule the latest gear to use Celery?

+6
source share
1 answer
rhc cartridge-add https://raw.github.com/tresbailey/openshift-celery-cartridge/master/metadata/manifest.yml -a <appname> 

I did not test this cartridge, it is only one that I found when searching for a “celery-scrambler cartridge”, but I can verify that it installs its own equipment on it in a scaled application. You can run the rhc app show <appname> --gears to check how many transfers your application is using and which cartridges are running (both before and after installing the above cartridge).

+2
source

Source: https://habr.com/ru/post/952448/


All Articles