Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Deploy, Scale and Sleep at Night with JRuby

5,707 views

Published on

Published in: Technology
  • Be the first to comment

Deploy, Scale and Sleep at Night with JRuby

  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

×