3 ms·
A few questions: 1. Is it possible to spin up two apps on Heroku? 2. What load balancers are available with the above? 3. Anyone have a link to a run down of h
by instakill 14y ago
A few questions:
1. Is it possible to spin up two apps on Heroku?
2. What load balancers are available with the above?
3. Anyone have a link to a run down of how to back up your Postgres DB periodically?
Thanks
- instakill 14y agoTo answer my own question, there is a free addon called pgbackups that will do this for you, and Heroku automatically load balances between dynos.
- camwest 14y agoPgbackups is not for load balancing. That is already automatic. Pgbackups is for managing Postgres backups.
- damncabbage 14y ago3. Anyone have a link to a run down of how to back up your Postgres DB periodically? "Pgbackups" answered this question.
- zhoutong 14y agoFor 1 and 2: AFAIK Heroku already has three layers, the Nginx routing mesh, Varnish cache and your dynos. Everything is already handled for you so if you have two dynos, the traffic will rotate between the two. You don't need a load balancer for Heroku. It's built-in.
- subpixel 14y agoNote: Varnish isn't available on the (standard) Cedar stack. Here's how Heroku suggests you approach cacheing: https://devcenter.heroku.com/articles/http-caching https://devcenter.heroku.com/articles/http-caching
- evilduck 14y agoIt's possible to run multiple server processes of a single Rails application on a single Heroku worker to gain some additional concurrency capacity, obviously with some caveats and limitations: http://michaelvanrooijen.com/articles/2011/06/01-more-concurrency-on-a-single-heroku-dyno-with-the-new-celadon-cedar-stack/ http://michaelvanrooijen.com/articles/2011/06/01-more-concur...