Hosting Rapid Pro

420 views
Skip to first unread message

hemant...@gmail.com

unread,
Jun 16, 2016, 9:32:58 AM6/16/16
to rapidpro-dev
Hi everyone.

I have want to host Rapid Pro on my server. can anyone share the deployment guide?

Norbert Kwizera

unread,
Jun 16, 2016, 9:37:07 AM6/16/16
to rapidpro-dev

hemant...@gmail.com

unread,
Jun 16, 2016, 10:45:10 AM6/16/16
to rapidpro-dev
HI, I have hosted it on my server. I just want help starting it using guincorn 


Can you please help me?

hemant...@gmail.com

unread,
Jun 20, 2016, 6:51:46 AM6/20/16
to rapidpro-dev
Can anyone help me ??

Eric Newcomer

unread,
Jun 20, 2016, 8:31:08 AM6/20/16
to hemant...@gmail.com, rapidpro-dev
There's nothing unique about starting rapidpro with gunicorn, it's just a django project. 

--
You received this message because you are subscribed to the Google Groups "rapidpro-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rapidpro-dev...@googlegroups.com.
To post to this group, send email to rapidp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rapidpro-dev/8802da0b-bd32-4461-a35c-9259f07496be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

hemant...@gmail.com

unread,
Jun 21, 2016, 6:18:38 AM6/21/16
to rapidpro-dev, hemant...@gmail.com
Can you tell me how to set it up with Supervisor?
I want Rapid pro to run even after machine restart.

Eric Newcomer

unread,
Jun 21, 2016, 7:39:17 AM6/21/16
to hemant...@gmail.com, rapidpro-dev

That's not really a RapidPro question either. There's nothing unique about running gunicorn with supervisor. Look at the supervisor documentation or the many examples online and you'll be all set.

Eric


Allan Stockman rugano

unread,
Jul 5, 2016, 6:27:38 AM7/5/16
to rapidpro-dev
I have successfully deployed a RapidPro dev instance using gunicorn & supervisor by reading this tutorial . Just replace the Django steps with Rapidpro. 
Hope it helps.


Ps : ( I even used a simple USB modem + simcard to send real sms + kannel. Fun)

crist...@take.net

unread,
Sep 12, 2016, 5:24:42 PM9/12/16
to rapidpro-dev
Hi! I'm trying to use Rapidpro as you guys does,
however, I'm trying to ballance it using more than one machine to send messages, cause if this machine goes down still have the others.
That's my problem, I haven't find any docs about hosting rapidpro in more than one machine.
Do you guys know how to do it?

Eric Newcomer

unread,
Sep 12, 2016, 5:51:00 PM9/12/16
to crist...@take.net, rapidpro-dev
Hi Cristian, 

The web servers themselves should not be sending messages, that responsibility is left up to your celery workers (and message mage for twitter). The development configuration overrides celery by sending messages within the request using CELERY_ALWAYS_EAGER. Inbound messages will however come in over http, so those will go to your web instances (and message mage in the case of twitter). You are on the right track in that you do indeed want to have n+1 servers. To host it successfully you will also need n+1 mage servers, n+1 load balancers routing to both the web servers and mage instances. Additionally, your postgres and redis instances should also have hot backups. 

More details here, including a nice picture of the above if it all sounds like gibberish: https://rapidpro.github.io/rapidpro/docs/hosting/

Configuring a high-availability web service is a very in-depth topic which is generally out of the scope of this mailing list as we are focused on development topics for rapidpro itself. The good news is that there's nothing particularly unique about running RapidPro in a high-availability context (aside perhaps from the additional dependency on mage). If you do run into problems in understanding how the various pieces fit together, I'd recommend reviewing the code itself and posting more specific questions regarding that to this here list if you get stuck.

Hope that helps,

Eric



--
You received this message because you are subscribed to the Google Groups "rapidpro-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rapidpro-dev...@googlegroups.com.
To post to this group, send email to rapidp...@googlegroups.com.

Pedro Valentim

unread,
Oct 22, 2018, 3:34:06 PM10/22/18
to rapidpro-dev
Hi everyone!

As the last answer here dates from 2016 year I want to know something regard using gunicorn:

I'm trying to host rapidpro in Google's Cloud Platform, using rapidpro/rapidpro image on Docker Hub. In this Dockerfile there's nothing about using gunicorn.
What is the steps one should take in order to use gunicorn instead of uWSGI only or simply use gevent plugin on uWSGI using the env vars placed on Dockerfile?

Thx in advance!
Reply all
Reply to author
Forward
0 new messages