Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels. http://unicorn.bogomips.org/

learn more… | top users | synonyms

4
votes
3answers
5k views

Using Upstart to manage Unicorn w/ rbenv + bundler binstubs w/ ruby-local-exec shebang

Alright, this is melting my brain. It might have something to do with the fact that I don't understand Upstart as well as I should. Sorry in advance for the long question. I'm trying to use Upstart ...
2
votes
1answer
1k views

can nginx retry request if unicorn is overloaded and returns a 502?

Is it possible to have nginx retry a second backend before returning a 502 to the client? Would something like this work? Front end: # haproxy:85 => [a few app servers]:8000 # more specifically: ...
0
votes
1answer
318 views

Debian + Nginx + Unicorn Rails 3 project permissions

Is there a security risk in running a web server like Unicorn as root? The Nginx master process runs as root, the Nginx worker runs as the limited www-data user, but I can't set another user like ...
1
vote
1answer
574 views

Linode Debian + rvm + nginx + Unicorn kills master at boot or doesn't start unicorn

I'm a new Linode/Linux user running Debian 6. I'm trying to get my Unicorn server to start at boot, but for some reason it is not, and I'm not able to track down any error message. Nginx is starting ...
2
votes
1answer
286 views

configure www.example.com as example.com

I am using nginx as server backend sqlbuddy.example.com - for db manage (php-fpm) example.com - main site (unicorn) When I go to www.example.com I get sqlbuddy.example.com How do I get ...
3
votes
1answer
852 views

Writing an upstart config file for Unicorn

I've had a good hunt and can't find a good example of an upstart script for Unicorn. From what I've read however I think that upstart and unicorn might step on each others toes if I just try to set ...
1
vote
0answers
523 views

How are these AB Benchmarks for a ruby/unicorn/nginx/ app running on ec2?

I am preparing to go live with an app, and was wondering if someone can give me some insight on my benchmarks. How do they compare, what system level tweaks can I make to improve them etc. My setup ...
2
votes
1answer
2k views

Apache / Unicorn: how to get Apache to serve static files

I'm following this tutorial to install apache + unicorn but it seems that apache doesn't serve any of the static files. Here's the config I came up with (take a look at Redirect all non-static ...
0
votes
2answers
969 views

Unicorn retains same PID when receives USR2?

So, I've been playing with a unicorn deployment on my personal server. There are a variety of reasons behind this - one of them being that I didn't particularly want to have to compile my own version ...
2
votes
1answer
4k views

Trouble with nginx config and upstream servers

I'm trying to configure two applications to be served up by nginx. The first seems to be working fine and I duplicated the config for the second, however I'm having some problems. I'm running a ...
0
votes
1answer
135 views

unicorn_rails throwing memory corruption error

I've been running a nginx+unicorn rails application successfully on EC2 for a while but I decided to get a test server up in one of my VPS servers. I just installed nginx in my VPS, got the gems all ...
0
votes
2answers
894 views

Unicorn installation error on Debian 5

I am running ruby1.9 on Debian 5, and did not manage to install 'unicorn' with rubygems. I got this error and do not really know how to solve it. Do you have any idea of the possible root cause ? ...
2
votes
1answer
324 views

Nginx and unicorn

I have 2 aplications, each one running on unicorn. I'd like to use nginx as a front end for each of those application. For each nginx / unicorn pair I would then use a dedicated unix socket. To do so, ...
2
votes
1answer
2k views

Monitoring slow nginx/unicorn requests

I'm currently using Nginx to proxy requests to a Unicorn server running a Sinatra application. The application only has a couple of routes defined, those of which make fairly simple (non costly) ...
1
vote
1answer
2k views

Where does Varnish usually go in a Rails web stack?

I have a production Rails application deployed on Unicorn with nginx in front for static file serving. I now need some features of Varnish and I'm wondering how to introduce it. Some people put ...
0
votes
1answer
327 views

Unicorn Worker Pool going idle and slowing down a lot after a period of time

I'm running Teambox community edition on an Ubuntu Server machine, with 600Mhz and 358MB of RAM. I know it's not much and that's probably the cause of all the trouble I'm having, but maybe someone ...
1
vote
1answer
862 views

Apache proxying to Unicorn server times out, how to avoid?

I have a Teambox installation running on Unicorn, and the latter sometimes times out after 30 seconds. The idea of this configuration would be for Apache to wait until the Unicorn master server sends ...
0
votes
2answers
2k views

Unicorn 3.3.1 and Rack 1.1.0 issues?

I'm upgrading from the Ruby Enterprise Edition 1.8.6 to the latest 1.8.7 version with Unicorn to facilitate an upgrade to Rails 2.3.10, and am running into some issues. Should I uninstall the older ...
1
vote
1answer
2k views

Elastic Load Balancer & SSL termination

I am setting up a Rails app on AWS that: 1) all traffic must be ssl encrypted 2) will highly fluctuate in the amount of traffic on a weekly basis 3) will by maintained by someone that is a stronger ...
0
votes
1answer
707 views

Unicorn 3 throwing tons of errors (Rails 3.0.3, Unicorn 3.0)

I just tried to upgrade to Unicorn 3.0. I changed my Gemfile and did a bundle install. When restarting my Unicorn I got tons of errors beginning with: Unhandled listen loop exception ...
0
votes
1answer
4k views

How do I fix Nginx config to work with multiple hosts of Unicorn?

I have no problem instantiating multiple instances of unicorn on different unix sockets and ports. Works fine if I do url:port. My problem comes in correctly formatting nginx.conf to allow multipe ...
1
vote
3answers
3k views

Rails 3 shows 404 error instead of index.html (nginx + unicorn)

I have an index.html in public/ that should be loading by default but instead I get a 404 error when I try to access http://example.com/ The page you were looking for doesn't exist. You may ...
0
votes
2answers
720 views

Ruby: Does it make sense to use REE with Unicorn?

I am trying to figure out the optimal server stack for running Rails. As of now, nginx + unicorn seems to be the best approach. However, some folks have suggested running the REE interpreter instead ...