SlideShare una empresa de Scribd logo
1 de 28
Descargar para leer sin conexión
Resin, Deployment,
                        Cloud, Clustering and
                        EC2 (How To) Part 2
                                     Session Replication,
                            App Deployment and Clustering on EC2



                          Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
                                    Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
                             caucho® , resin® and quercus® are registered trademarks of Caucho Technology, Inc.

Thursday, April 5, 12
Related	
  links

          •       Part 1 Resin Java EE Application Server clustering and
                  deployment to EC2
          •       Part 2 Resin clustering and deployment to EC2, session
                  replication, Amazon Load Balancer (This in WIKI form)


          •       Resin Java EE Application Server’s Cloud Support and Clustering
                  Support


          •       Resin White Paper on Java EE Cloud Computing


          •       Short video describing key concepts: Resin Clustering and
                  Cloud Deployment.


           Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
                    Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Thursday, April 5, 12
Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
                                  Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
                           caucho® , resin® and quercus® are registered trademarks of Caucho Technology, Inc.

Thursday, April 5, 12
Java EE Certified




                                     Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
                                               Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
                                        caucho® , resin® and quercus® are registered trademarks of Caucho Technology, Inc.

Thursday, April 5, 12
Java EE Certified




                                     Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
                                               Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
                                        caucho® , resin® and quercus® are registered trademarks of Caucho Technology, Inc.

Thursday, April 5, 12
Gartner names Caucho
                                                                                                                             in "Cool Vendors in Platform
                                                                                                                             and Integration Middleware"
                  Java EE Certified




                                     Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
                                               Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
                                        caucho® , resin® and quercus® are registered trademarks of Caucho Technology, Inc.

Thursday, April 5, 12
Resin	
  works	
  well	
  in	
  the	
  cloud

          •       This tutorial covers setting up a Resin cluster in Amazon EC2
          •       This is part 2, make sure you start with part 1
          •       Much of the cluster setup would be the same in other
                  environments as well
          •       Resin is only mainstream Java EE application server with
                  clustering and cloud deployment built-in and fully elastic that
                  works in an EC2 environment
          •       No add-ons, hacks, or tricks needed
          •       Resin simply designed to work well in cloud.
          •       Resin supports EC2,
          •       This EC2 support can equally apply to other Virtualization 2.0
                  environments like Xen, and VMWare


           Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
                    Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Thursday, April 5, 12
Overview

          •       IP addresses are ephemeral in EC2, public IP addresses are not
                  known (can’t see them with ifconfig b/c NAT)
          •       If you restart a server, it loses its IP addresses.
          •       Think of DHCP, but the lease expires instantly if the box is not
                  using it
          •       In a spoke / hub architecture, you need to know how to find the
                  hub. The hub is like a cluster DHCP server. It knows the
                  topology of the cluster.
          •       Resin clustering works around these issue by allowing Resin to
                  use public IP to find Triad members, and then members
                  exchanging private IP addresses
          •       Resin typically discovers the server id by looking up the address
                  combination of the instance. In this case, the local boxes do not
                  know any address so you have to tell Resin what the server id is
                  so it can look up the address it

           Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
                    Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Thursday, April 5, 12
Overview	
  how	
  to	
  overcome

         •        Create two Elastic IP addresses
                •   assuming you are using two machines both in a single Cluster
         •        Use Amazon Console to create another instance of the server
                  you setup in the first tutorial.
         •        The first three static servers in a cluster make up the Triad


         •        Before you continue, you may want some more background on
                  how Resin's spoke and hub (Triad) clustering architecture
                  works. Read White Paper: cloud and clustering technology
                  optimized for EC2.
         •        If you are in a hurry at least watch this short video: Resin
                  Clustering and Cloud Deployment.



           Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
                    Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Thursday, April 5, 12
Resin	
  Pro:	
  Clustering	
  and	
  Session	
  Replica;on

          •       You will need to get an evaluation license or a license to use
                  Resin's clustering support. To get an evaluation license go here:
                  Contact.
          •       Once you have a license, you can copy it to /var/www/licenses




           Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
                    Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Thursday, April 5, 12
Se<ng	
  up	
  second	
  Elas;c	
  IP	
  Address




           Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
                    Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Thursday, April 5, 12
New	
  Amazon	
  AMI	
  instance




           Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
                    Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Thursday, April 5, 12
Installing	
  a	
  Resin	
  Pro	
  License	
  4.0.27	
  and	
  below




           Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
                    Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Thursday, April 5, 12
Installing	
  a	
  Resin	
  Pro	
  License	
  4.0.28	
  and	
  above




           Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
                    Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Thursday, April 5, 12
Setup	
  Amazon	
  AMI	
  user-­‐data	
  passing	
  list	
  of	
  triad	
  




           Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
                    Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Thursday, April 5, 12
4.0.27:	
  Pass	
  Server	
  Id	
  Part	
  1	
  of	
  3




           Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
                    Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Thursday, April 5, 12
4.0.27:	
  Pass	
  Server	
  Id	
  Part	
  2	
  of	
  3




           Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
                    Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Thursday, April 5, 12
4.0.27:	
  Pass	
  Server	
  Id	
  Part	
  3	
  of	
  3




           Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
                    Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Thursday, April 5, 12
4.0.28:	
  Pass	
  Server	
  Id	
  Part	
  1	
  of	
  1

          •       4.0.28 is much easier to pass the server id




           Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
                    Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Thursday, April 5, 12
Amazon	
  Load	
  Balancer

          •       Create an Amazon Load Balancer.
          •       Add the two instances to the LB. (Use the smallest possible
                  recheck interval for testing).
          •       Use sticky cookie support, use application cookie, set the name
                  to JSESSIONID.
          •       For more information on how to setup the Amazon Load
                  Balancer go to this Amazon Load Balancer tutorial.
          •       Now you have a Load Balancer and session replication should
                  just works.




           Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
                    Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Thursday, April 5, 12
Se<ng	
  up	
  Amazon	
  Load	
  Balancer	
  (Part	
  1	
  of	
  2)




           Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
                    Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Thursday, April 5, 12
Se<ng	
  up	
  Amazon	
  Load	
  Balancer	
  (Part	
  2	
  of	
  2)




           Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
                    Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Thursday, April 5, 12
Deploy	
  war	
  file	
  and	
  show	
  it	
  is	
  deployed	
  

          •       Deploy the war file and show that it is deployed to every server




           Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
                    Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Thursday, April 5, 12
Se<ng	
  up	
  third	
  Triad	
  Member




           Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
                    Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Thursday, April 5, 12
4.0.27:	
  Se<ng	
  up	
  a	
  Dynamic	
  Spoke	
  Server




           Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
                    Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Thursday, April 5, 12
4.0.28:	
  Se<ng	
  up	
  a	
  Dynamic	
  Spoke	
  Server




           Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
                    Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Thursday, April 5, 12
Managing	
  deployments

          •       Deploying to one Server deploys to every server in the cluster




           Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
                    Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Thursday, April 5, 12
Summary	
  of	
  Servers	
  and	
  such




           Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
                    Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Thursday, April 5, 12

Más contenido relacionado

Último

Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 

Último (20)

Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 

Destacado

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 

Destacado (20)

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 

Resin, Deployment, Cloud, Clustering and EC2 (How To) Part II

  • 1. Resin, Deployment, Cloud, Clustering and EC2 (How To) Part 2 Session Replication, App Deployment and Clustering on EC2 Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved. caucho® , resin® and quercus® are registered trademarks of Caucho Technology, Inc. Thursday, April 5, 12
  • 2. Related  links • Part 1 Resin Java EE Application Server clustering and deployment to EC2 • Part 2 Resin clustering and deployment to EC2, session replication, Amazon Load Balancer (This in WIKI form) • Resin Java EE Application Server’s Cloud Support and Clustering Support • Resin White Paper on Java EE Cloud Computing • Short video describing key concepts: Resin Clustering and Cloud Deployment. Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved. Thursday, April 5, 12
  • 3. Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved. caucho® , resin® and quercus® are registered trademarks of Caucho Technology, Inc. Thursday, April 5, 12
  • 4. Java EE Certified Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved. caucho® , resin® and quercus® are registered trademarks of Caucho Technology, Inc. Thursday, April 5, 12
  • 5. Java EE Certified Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved. caucho® , resin® and quercus® are registered trademarks of Caucho Technology, Inc. Thursday, April 5, 12
  • 6. Gartner names Caucho in "Cool Vendors in Platform and Integration Middleware" Java EE Certified Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved. caucho® , resin® and quercus® are registered trademarks of Caucho Technology, Inc. Thursday, April 5, 12
  • 7. Resin  works  well  in  the  cloud • This tutorial covers setting up a Resin cluster in Amazon EC2 • This is part 2, make sure you start with part 1 • Much of the cluster setup would be the same in other environments as well • Resin is only mainstream Java EE application server with clustering and cloud deployment built-in and fully elastic that works in an EC2 environment • No add-ons, hacks, or tricks needed • Resin simply designed to work well in cloud. • Resin supports EC2, • This EC2 support can equally apply to other Virtualization 2.0 environments like Xen, and VMWare Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved. Thursday, April 5, 12
  • 8. Overview • IP addresses are ephemeral in EC2, public IP addresses are not known (can’t see them with ifconfig b/c NAT) • If you restart a server, it loses its IP addresses. • Think of DHCP, but the lease expires instantly if the box is not using it • In a spoke / hub architecture, you need to know how to find the hub. The hub is like a cluster DHCP server. It knows the topology of the cluster. • Resin clustering works around these issue by allowing Resin to use public IP to find Triad members, and then members exchanging private IP addresses • Resin typically discovers the server id by looking up the address combination of the instance. In this case, the local boxes do not know any address so you have to tell Resin what the server id is so it can look up the address it Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved. Thursday, April 5, 12
  • 9. Overview  how  to  overcome • Create two Elastic IP addresses • assuming you are using two machines both in a single Cluster • Use Amazon Console to create another instance of the server you setup in the first tutorial. • The first three static servers in a cluster make up the Triad • Before you continue, you may want some more background on how Resin's spoke and hub (Triad) clustering architecture works. Read White Paper: cloud and clustering technology optimized for EC2. • If you are in a hurry at least watch this short video: Resin Clustering and Cloud Deployment. Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved. Thursday, April 5, 12
  • 10. Resin  Pro:  Clustering  and  Session  Replica;on • You will need to get an evaluation license or a license to use Resin's clustering support. To get an evaluation license go here: Contact. • Once you have a license, you can copy it to /var/www/licenses Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved. Thursday, April 5, 12
  • 11. Se<ng  up  second  Elas;c  IP  Address Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved. Thursday, April 5, 12
  • 12. New  Amazon  AMI  instance Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved. Thursday, April 5, 12
  • 13. Installing  a  Resin  Pro  License  4.0.27  and  below Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved. Thursday, April 5, 12
  • 14. Installing  a  Resin  Pro  License  4.0.28  and  above Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved. Thursday, April 5, 12
  • 15. Setup  Amazon  AMI  user-­‐data  passing  list  of  triad   Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved. Thursday, April 5, 12
  • 16. 4.0.27:  Pass  Server  Id  Part  1  of  3 Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved. Thursday, April 5, 12
  • 17. 4.0.27:  Pass  Server  Id  Part  2  of  3 Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved. Thursday, April 5, 12
  • 18. 4.0.27:  Pass  Server  Id  Part  3  of  3 Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved. Thursday, April 5, 12
  • 19. 4.0.28:  Pass  Server  Id  Part  1  of  1 • 4.0.28 is much easier to pass the server id Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved. Thursday, April 5, 12
  • 20. Amazon  Load  Balancer • Create an Amazon Load Balancer. • Add the two instances to the LB. (Use the smallest possible recheck interval for testing). • Use sticky cookie support, use application cookie, set the name to JSESSIONID. • For more information on how to setup the Amazon Load Balancer go to this Amazon Load Balancer tutorial. • Now you have a Load Balancer and session replication should just works. Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved. Thursday, April 5, 12
  • 21. Se<ng  up  Amazon  Load  Balancer  (Part  1  of  2) Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved. Thursday, April 5, 12
  • 22. Se<ng  up  Amazon  Load  Balancer  (Part  2  of  2) Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved. Thursday, April 5, 12
  • 23. Deploy  war  file  and  show  it  is  deployed   • Deploy the war file and show that it is deployed to every server Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved. Thursday, April 5, 12
  • 24. Se<ng  up  third  Triad  Member Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved. Thursday, April 5, 12
  • 25. 4.0.27:  Se<ng  up  a  Dynamic  Spoke  Server Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved. Thursday, April 5, 12
  • 26. 4.0.28:  Se<ng  up  a  Dynamic  Spoke  Server Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved. Thursday, April 5, 12
  • 27. Managing  deployments • Deploying to one Server deploys to every server in the cluster Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved. Thursday, April 5, 12
  • 28. Summary  of  Servers  and  such Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved. Thursday, April 5, 12