4 ms·
This is an interesting article, but I have some beef with the way they go about it. Dokku is a solution, but I think it's not a strong one in the case of replic
by eropple 12y ago
This is an interesting article, but I have some beef with the way they go about it. Dokku is a solution, but I think it's not a strong one in the case of replicating Heroku or just as a wise choice for development; Dokku is fundamentally single-node and is neither fault tolerant nor scalable. Boo-urns. (I dig the `git push` integration, but you can do that a number of different ways that don't tie you to something like Dokku.)
I can't speak to databases, because RDS/ElasticCache/etc. are right there so I don't think about it as often as I probably should, but for application-level stuff I've found that Mesos with Marathon (or HubSpot's Singularity, which is really cool) addresses this much better, especially with Mesos's Docker executors. You also have the advantage of being able to use this cluster differently should you so choose--Marathon lets you run apps as does Daniel's Dokku setup, but you can use Chronos as a distributed, fault-tolerant cron system and you can also plug in Slack, ElasticSearch, etc. and reuse the same infrastructure as you need it.
It's also pretty easy to get rolling with, so I wouldn't use difficulty as a factor. =) A little more overhead, but a lot more future-proofing. I haven't (yet) open-sourced my "Mesos in a box" Vagrant stuff, because I haven't extricated it yet from my actual line-of-business stuff, but I built upon some (kind of hacky, much improved now) stuff I blogged about a few months ago:
http://github.com/eropple/mesos-experiments http://github.com/eropple/mesos-experiments
http://edcanhack.com/2014/07/a-virtual-mesos-cluster-with-vagrant-and-chef/ http://edcanhack.com/2014/07/a-virtual-mesos-cluster-with-va...
This stuff is super interesting to me and I'm always looking for neat ways to use scalable infrastructure, so if anyone wants to chat about this stuff offline, email's in my profile.