60 points · by dRiek · 14y ago · 31 comments
I have a handful of pet Ruby projects in the pipeline which won't make money, and I'd like to run them on a VPS using the Passenger Enterprise mass deployment feature with rolling restarts. At $249/year, I'm not too keen. But at $99/year I'd go for it.
As things stand, Ruby hackers can either host their pet projects on Heroku or come up with a DIY solution to manage virtual hosts and graceful restarts on a VPS.
In my opinion, the convenience of mass deployment and rolling restarts is worth $99 for projects that do not make money, but it becomes a questionable annual expense at $249. From the upvotes on my initial comment, I think that others in my position may feel the same. And it seems like a good way to encourage people who build things for fun to look to Passenger Enterprise for their bigger, paid projects too.
We're looking at Node.JS, Python, Haskell, Mono(C#), PHP. Do any of these tickle your fancy or is there one missing?
I use Passenger for my Ruby projects, but use nginx with gunicorn for Python - no reason behind that choice whatsoever except that is the stack that I found nice blog articles on how to get working with gevent
Any big reasons to use it over said config?
I can only wonder what the phusion guys are thinking. Either way, stick with unicorn.
We also implement rolling restarts more conveniently than Unicorn:
* There are multiple ways to implement rolling restarts in Unicorn. One of them is by sending SIGUSR2. This makes Unicorn fork off a new master with the same number of workers. However this requires twice the memory usage during a restart.
* There are ways to script Unicorn to make it restart process-by-process, but this requires some effort.
* Phusion Passenger Enterprise implements rolling restarts with a single config option (PassengerRollingRestarts on), and it performs process-by-process restarting so that you don't need twice the memory usage. It automates everything for you.
* The "deployment error resistance" feature, which can be used in combination with rolling restarting, ensures that in case your new app version doesn't start, it keeps the old processes around until an administrator manually tells it to restart again.
There are many other features in Phusion Passenger Enterprise which Unicorn does not implement (e.g. live IRB console), or that we implement better. Take a look, you may like it.
We are flattered that you like Unicorn. Being Unicorn contributors ourselves, it's always good to see people contend with technology that we've contributed to. :) Phusion Passenger 4 is the combination of all the experience that we've built up in the past few years, in both Phusion Passenger and Unicorn.
I just wanted to point out that your free product lacks a critical, basic feature. Many passenger-users don't seem to be aware that they are serving HTTP 502/503 error pages to their users during every deploy unless they pay $10 per server and month for your convenience.
It is not a secret which features are and aren't available in Enterprise. The documentation and the website are very clear on this.
Node.js and python support will be nice.
I didn't find it too difficult to setup uWSGI, but I can see how it can suck if you have too many apps, or apps of different types.