• Save
Deploy, Scale and Sleep at Night with JRuby
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Deploy, Scale and Sleep at Night with JRuby

on

  • 4,207 views

 

Statistics

Views

Total Views
4,207
Views on SlideShare
3,835
Embed Views
372

Actions

Likes
5
Downloads
0
Comments
0

8 Embeds 372

http://www.digitalcld.com 308
http://lanyrd.com 37
https://twitter.com 11
http://speakerrate.com 10
http://www.tuicool.com 3
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 Presentation Transcript

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