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

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Deploy, Scale and Sleep at Night with JRuby

  • 3,310 views
Published

 

Published in Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
3,310
On SlideShare
0
From Embeds
0
Number of Embeds
6

Actions

Shares
Downloads
0
Comments
0
Likes
5

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide
  • \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

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