• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Deploy, Scale and Sleep at Night with JRuby
 

Deploy, Scale and Sleep at Night with JRuby

on

  • 3,924 views

 

Statistics

Views

Total Views
3,924
Views on SlideShare
3,565
Embed Views
359

Actions

Likes
5
Downloads
0
Comments
0

8 Embeds 359

http://www.digitalcld.com 302
http://lanyrd.com 37
http://speakerrate.com 10
https://twitter.com 5
http://www.tuicool.com 2
http://www.twylah.com 1
http://cloud.feedly.com 1
http://www.conferize.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
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Passenger and Unicorn had 50 workers. \n\nTorqueBox and Trinidad were capped at 100 HTTP threads (to match DB connection pool size).\n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

Deploy, Scale and Sleep at Night with JRuby Deploy, Scale and Sleep at Night with JRuby Presentation Transcript

  • Deploy, Scale andSleep at Nightwith JRuby@codefinger
  • Deploy, Scale andSleep at Night Ruby onwith JRuby@codefinger the JVM
  • java_import “java.io.File” Java::JavaLang::String
  • you
  • sysadminyou
  • $ cap deploy sysadminyou
  • CPU$ RAM$120"100" 80" 60" 40" 20" 0" 1" 2" 3" 4" 5" 6" 7" 8" 9" 10" 11" 12" 13" 14" 15" 16" 17" 18" 19" 20" 21" 22"
  • HTTP Request Apache/Nginx MRI MRIMongrel Mongrel
  • Ruby Ruby RubyThread Thread Thread GIL Kernel Thread
  • HTTP Request Apache/Nginx JVMJRuby Thread
  • http://torquebox.org/news/2011/10/06/torquebox-2x-performance/
  • 1) JRuby...2) ?3) Profit!
  • 1) JRuby...2) Deployment3) Profit!
  • JRuby Archive File CapistranoBackground Jobs Clustering PaaS
  • Warbler Trinidad TorqueBoxArchive File Archive File Archive File Capistrano Capistrano Background Jobs Background Jobs Clustering PaaS PaaS PaaS
  • Warbler$ gem install warbler$ warble war WA R File
  • $ apt-get install tomcat6 WA R File
  • $ apt-get install tomcat6/var/lib/tomcat6|-- common/|-- conf/ WA|-- logs/ R File|-- shared/|-- webapps/`-- work/
  • Warbler + Tomcat/Jetty/WebLogic/JBoss Tomcat/Jetty ServerWA SSH/FTP/SMB R File
  • Warbler + Tomcat/Jetty/WebLogic/JBoss Tomcat/Jetty ServerWA SSH/FTP/SMB R FileWA SSH/FTP/SMB R File
  • Trinidad$ gem install trinidad$ rails s trinidad
  • Trinidad Trinidad Serverapp1/ Extensions|-- app/|-- config/|-- db/ Capistrano|-- lib/ Job Scheduler (Quartz)`-- config.ru Background Jobsapp2/ (Resque)|-- app/|-- config/|-- db/ Capistrano DB Pool|-- lib/`-- config.ru (Commons DBCP)
  • TorqueBox$ gem install torquebox-server$ torquebox run then$ torquebox deploy
  • TorqueBox TorqueBox Job Schedulerapp1/|-- app/|-- config/|-- db/ Capistrano Messaging|-- lib/`-- config.ru Session Replication High Availability Knob Services SSH/FTP/SMB File Stomplets Clustering
  • TorqueBox TorqueBoxTorqueBox TorqueBox clusterTorqueBox TorqueBox TorqueBox
  • Other Options• Mizuno• Puma
  • Cloud• Heroku• EngineYard (Trinidad)• OpenShift (TorqueBox)• CloudBees (Warbler)• Google AppEngine
  • PeopleProcesses Technologies
  • Text Text Text Text Text Texthttp://pragprog.com/book/jkdepj
  • http://logichaus.com
  • The End
  • The End