• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Building your own (Rails) hosting environment
 

Building your own (Rails) hosting environment

on

  • 4,339 views

 

Statistics

Views

Total Views
4,339
Views on SlideShare
4,079
Embed Views
260

Actions

Likes
14
Downloads
0
Comments
0

8 Embeds 260

http://nicbenders.com 230
http://www.slideshare.net 20
http://coderwall.com 3
http://www.linkedin.com 3
http://localhost:4000 1
http://localhost 1
http://www.techgig.com 1
https://www.linkedin.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • Most people get this wrong <br /> Intro to my background <br /> Mention URL
  • This list is the product of my own mistakes <br /> Lead-out on why Hardware RAID
  • Degraded mode performance <br /> Cache with BBU <br /> Hot swap drives
  • Remote console <br /> Redundant PSU
  • Ruby is very memory bandwidth intensive <br /> Lots of L2 Cache, fast system memory <br /> Fill banks evenly <br /> 1 row = 1333 Mhz, 2 = 1066, 3 = 800
  • Summarize hardware <br /> Lead out to R710
  • This is (basically) what Basecamp runs on <br /> Lead-out to Linux
  • Use Red Hat if you need vendor support <br /> Examples use CentOS 5 <br /> Avoid Debian or Gentoo unless you really know what you&#x2019;re doing
  • It&#x2019;s okay to have DB on same machine <br /> Watch out for log files <br /> Lead out - Deploying Rails with Passenger
  • UseGlobalQueue <br /> PoolIdleTime <br /> Ruby Enterprise Edition
  • If it isn&#x2019;t tested, it&#x2019;s not a backup
  • All your switches should be Cisco
  • Like Testing for production systems <br /> Make decisions with real data <br /> Cacti & Nagios, not as hard as they look, use Net-SNMPd
  • What are your questions?

Building your own (Rails) hosting environment Building your own (Rails) hosting environment Presentation Transcript

  • Building your own hosting environment Nic Benders http://nicbenders.com/hosting nic@nicbenders.com
  • Server Checklist Hardware RAID + Hot Swap drives Remote console Redundant power supply Xeon CPU Linux distro with Long Term Support Apache + Phusion Passenger Working backups Gigabit Ethernet Monitoring
  • Switch from Software RAID-5 to Hardware RAID-1
  • Server Checklist Hardware RAID + Hot Swap drives Remote console Redundant power supply Xeon CPU Linux distro with Long Term Support Apache + Phusion Passenger Working backups Gigabit Ethernet Monitoring
  • Nehalem Memory Architecture •Each CPU has 3 channels •Each channel has up to 3 banks (slots)
  • Server Checklist Hardware RAID + Hot Swap drives Remote console Redundant power supply Xeon CPU Linux distro with Long Term Support Apache + Phusion Passenger Working backups Gigabit Ethernet Monitoring
  • Dell R710 (about $4,000) Dual Xeon E5520 (8 cores total) 12G RAM (6x2G, 1066 MHz RDIMM) RAID with 256M cache and battery backup 2x 146G, 15k RPM SAS drives Redundant power supplies Remote Console
  • Linux Distro Red Hat Enterprise Linux Ubuntu Server (LTS) or CentOS 5.x (Tikanga) 8.04 (Hardy Heron) Released in 2007 Released in 2008 Supported until 2014 Supported until 2013
  • Other Linux Tips Only install what you need Use LVM, especially for the root partition Use ext3 with “noatime” Everything you need should be in /etc/hosts Use iptables, even if you have a firewall Make sure root’s mail is being forwarded Learn Chef
  • conf.d/app.example.com.conf
  • conf.d/00-passenger.conf
  • /usr/local/sbin/ree_wrapper
  • Server Checklist Hardware RAID + Hot Swap drives Remote console Redundant power supply Xeon CPU Linux distro with Long Term Support Apache + Phusion Passenger Working backups Gigabit Ethernet Monitoring
  • Gigabit Switches Cisco (Linksys) Cisco 3750G SLM2008 • About $4,000 • About $100 • 24 or 48 ports • 4 or 8 ports • Very fast backplane • Offers some remote • Stackable, forms single management logical switch
  • Server Checklist Hardware RAID + Hot Swap drives Remote console Redundant power supply Xeon CPU Linux distro with Long Term Support Apache + Phusion Passenger Working backups Gigabit Ethernet Monitoring
  • Monitoring Alerting Performance • Nagios • Cacti • Pingdom ($) • New Relic RPM ($$)
  • Server Checklist Hardware RAID + Hot Swap drives Remote console Redundant power supply Xeon CPU Linux distro with Long Term Support Apache + Phusion Passenger Working backups Gigabit Ethernet Monitoring
  • http://nicbenders.com/hosting