Servicing Canvas with Unicorn + Nginx

326 views
Skip to first unread message

Nick Kokkos

unread,
Aug 1, 2014, 5:17:29 AM8/1/14
to canvas-l...@googlegroups.com
I have had significant success serving Canvas lms with Unicorn server and nginx webserver.

Nginx acts as an asset/load balancing proxy and Unicorn as a ruby interpreter server and the whole process seems to be quite fast. But I have not
tested it against apache/passenger or nginx/passenger.

I am attaching the configuration files for nginx/unicorn. They are pretty much self explanatory but you must tweak them to your own setup.
If  there's something you can't figure out, ask me and will help you if I can.
 

unicorn.rb
nginx.conf

Charles Wood

unread,
Aug 4, 2014, 6:24:30 PM8/4/14
to canvas-l...@googlegroups.com
It's rails, so this should work. Do you have much experience with Passenger? How does it stack up generally.


--

---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nick Kokkos

unread,
Aug 8, 2014, 5:59:03 AM8/8/14
to canvas-l...@googlegroups.com
Personally no, I have not run a rails site with passenger with lots of load; only demo sites with 1-10 users at the time.

But I believe the following posts written by EngineYard may be a great help to everyone:

A comparison of popular ruby servers:
https://blog.engineyard.com/2014/ruby-app-server-arena-pt1
https://blog.engineyard.com/2014/ruby-app-server-arena-pt2

Jason Hoekstra

unread,
Jan 11, 2015, 8:43:14 PM1/11/15
to canvas-l...@googlegroups.com
Hi Nick -

Hey, thanks for posting your Nginx configuration.  I also prefer it to Apache for a proxy front-end (however both are solid web servers).  I'm likely to try the proxy config with Passenger, so will be happy to share back Nginx config once that's proven out.

Curious between August and today, if you made any more mods/tweaks to the Nginx conf?

Btw - this would be a great addition to the Canvas GitHub wiki for alternative configurations.

Thanks,

Jason

Nick Kokkos

unread,
Jan 13, 2015, 4:45:04 AM1/13/15
to canvas-l...@googlegroups.com
I am glad you found it useful. No, I haven't tweaked it since I posted.
But now, there's news about raptor server, Passenger version 5.0, which is faster than every other ruby server
http://www.rubyraptor.org/ but is still in beta (https://www.phusionpassenger.com/download)
Reply all
Reply to author
Forward
0 new messages