Your SlideShare is downloading. ×
0
Rails Hosting
 Openminds BVBA - Gent
   www.openminds.be
Shared Rails Hosting
   Openminds::Hosting::Pro.clone
Architecture
• Controlable medium-sized
• Virtualized (Xen 3.x.y)
• Debian Etch
• Nginx ( proxy’s)
• Webservers
• MySQL 5/...
Architectuur

• Intel Dual Quad Core systemen / 16GB
• Centrale storage through iSCSI
• Tuning helps a lot
Shared - version 1
  lighttpd & FastCGI (dispatch.fcgi)
Version 1: pro’s

• fast
• lighttpd easily scriptable (lighty)
• lighttpd managed/monitors ruby processes
• mixing rails a...
V1: Mephisto search
V1: Radiant page
Version 1: lighty

• Perl-wrapper around lighttpd
• port locking
• force the production-env
• easy, short configuration file...
Version 1: lighty
$HTTP[quot;hostquot;] =~ quot;^(www.)?example.openminds.bequot; {
  var.app                 = quot;examp...
Version 1: con’s

• restart everything on change
• deploy => restart needed
• heavy sites => connection drops
• errors in ...
Version 1: con’s

• port hijacking
• reboot: server dies
• process management is hard
Shared - Version 2
    Passenger (mod_rails)
Passenger

• Convinced
• Central daemon - Central config
• Process-heaven
• acts_like :php_hosting
Passenger: con’s

• No client-config files (sock)
• Maximum amount of processes limiting, not
  for minimum amount (startup ...
General problems

• Gems
• Deployment
• No TESTING!
Non-shared
Openminds::Hosting::Dedicated.clone
Dedicated
application & helper applications
          client decides
Small Dedicated
Nginx + fair queueing + Mongrel cluster
            Monit (m/monit)
Medium Dedicated
     Passenger (?)
Large Dedicated
   A la tête du client
Dedicated
   sudo
Technology
  Mongrel / Evented Mongrel / Ebb / Thin / Nginx /
Apache / Passenger / Merb / Enterprise Ruby / JRuby /
      ...
Common
Rails version
 1 ) install new rails gem
2 ) Open support system
Gem-versions
        Sync
  rake gems:freeze
Deployment
   Capistrano
  Provide recipy
Pound
No-worry-ssl
Rails is slow
    Developer
     Hosting
Rails hosting
Inhouse Rails knowledge is needed
Warning

• database.yml
• restart application
• read your logs
Q&A
Who
Bernard Grymonpon / wonko([_.]be)?
Openminds BVBA - www.openminds.be
Rails hosting
Rails hosting
Upcoming SlideShare
Loading in...5
×

Rails hosting

973

Published on

The presentation I gave at Fosdem 2009 on sunday Feb 8 in the Ruby/Rails Devroom.

Published in: Technology
1 Comment
0 Likes
Statistics
Notes
  • Try http://anhostinghost.blogspot.com/ for a good hosting
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

No Downloads
Views
Total Views
973
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
26
Comments
1
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Rails hosting"

  1. 1. Rails Hosting Openminds BVBA - Gent www.openminds.be
  2. 2. Shared Rails Hosting Openminds::Hosting::Pro.clone
  3. 3. Architecture • Controlable medium-sized • Virtualized (Xen 3.x.y) • Debian Etch • Nginx ( proxy’s) • Webservers • MySQL 5/5.1 - PostgreSQL on DB
  4. 4. Architectuur • Intel Dual Quad Core systemen / 16GB • Centrale storage through iSCSI • Tuning helps a lot
  5. 5. Shared - version 1 lighttpd & FastCGI (dispatch.fcgi)
  6. 6. Version 1: pro’s • fast • lighttpd easily scriptable (lighty) • lighttpd managed/monitors ruby processes • mixing rails and php is possible
  7. 7. V1: Mephisto search
  8. 8. V1: Radiant page
  9. 9. Version 1: lighty • Perl-wrapper around lighttpd • port locking • force the production-env • easy, short configuration files for clients
  10. 10. Version 1: lighty $HTTP[quot;hostquot;] =~ quot;^(www.)?example.openminds.bequot; { var.app = quot;examplequot; accesslog.filename = base + quot;/logs/quot; + app + quot;.access.logquot; server.errorlog = base + quot;/logs/quot; + app + quot;.error.logquot; load Rails with capistrano app }
  11. 11. Version 1: con’s • restart everything on change • deploy => restart needed • heavy sites => connection drops • errors in logfiles • errors in config files (new users)
  12. 12. Version 1: con’s • port hijacking • reboot: server dies • process management is hard
  13. 13. Shared - Version 2 Passenger (mod_rails)
  14. 14. Passenger • Convinced • Central daemon - Central config • Process-heaven • acts_like :php_hosting
  15. 15. Passenger: con’s • No client-config files (sock) • Maximum amount of processes limiting, not for minimum amount (startup delay) • Apache 2: love & hate - small setup might give memory problems
  16. 16. General problems • Gems • Deployment • No TESTING!
  17. 17. Non-shared Openminds::Hosting::Dedicated.clone
  18. 18. Dedicated application & helper applications client decides
  19. 19. Small Dedicated Nginx + fair queueing + Mongrel cluster Monit (m/monit)
  20. 20. Medium Dedicated Passenger (?)
  21. 21. Large Dedicated A la tête du client
  22. 22. Dedicated sudo
  23. 23. Technology Mongrel / Evented Mongrel / Ebb / Thin / Nginx / Apache / Passenger / Merb / Enterprise Ruby / JRuby / Glassfish / ...
  24. 24. Common
  25. 25. Rails version 1 ) install new rails gem 2 ) Open support system
  26. 26. Gem-versions Sync rake gems:freeze
  27. 27. Deployment Capistrano Provide recipy
  28. 28. Pound No-worry-ssl
  29. 29. Rails is slow Developer Hosting
  30. 30. Rails hosting Inhouse Rails knowledge is needed
  31. 31. Warning • database.yml • restart application • read your logs
  32. 32. Q&A
  33. 33. Who Bernard Grymonpon / wonko([_.]be)? Openminds BVBA - www.openminds.be
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×