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

B
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
1 of 28

Recommended

Java EE Servlet JSP Tutorial- Cookbook 1 by
Java EE Servlet JSP Tutorial- Cookbook 1Java EE Servlet JSP Tutorial- Cookbook 1
Java EE Servlet JSP Tutorial- Cookbook 1billdigman
8.8K views49 slides
Java EE Servlet/JSP Tutorial- Cookbook 2 by
Java EE Servlet/JSP Tutorial- Cookbook 2Java EE Servlet/JSP Tutorial- Cookbook 2
Java EE Servlet/JSP Tutorial- Cookbook 2billdigman
5.7K views26 slides
Resin Outperforms NginX by
Resin Outperforms NginXResin Outperforms NginX
Resin Outperforms NginXbilldigman
3.1K views20 slides
ChatGPT and the Future of Work - Clark Boyd by
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
28K views69 slides
Getting into the tech field. what next by
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
6.6K views22 slides
Google's Just Not That Into You: Understanding Core Updates & Search Intent by
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
6.9K views99 slides

More Related Content

Recently uploaded

TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f... by
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...TrustArc
170 views29 slides
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue by
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlueMigrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlueShapeBlue
218 views20 slides
DRBD Deep Dive - Philipp Reisner - LINBIT by
DRBD Deep Dive - Philipp Reisner - LINBITDRBD Deep Dive - Philipp Reisner - LINBIT
DRBD Deep Dive - Philipp Reisner - LINBITShapeBlue
180 views21 slides
VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlue by
VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlueVNF Integration and Support in CloudStack - Wei Zhou - ShapeBlue
VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlueShapeBlue
203 views54 slides
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R... by
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...ShapeBlue
173 views15 slides
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ... by
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...ShapeBlue
126 views10 slides

Recently uploaded(20)

TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f... by TrustArc
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc170 views
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue by ShapeBlue
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlueMigrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue
ShapeBlue218 views
DRBD Deep Dive - Philipp Reisner - LINBIT by ShapeBlue
DRBD Deep Dive - Philipp Reisner - LINBITDRBD Deep Dive - Philipp Reisner - LINBIT
DRBD Deep Dive - Philipp Reisner - LINBIT
ShapeBlue180 views
VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlue by ShapeBlue
VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlueVNF Integration and Support in CloudStack - Wei Zhou - ShapeBlue
VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlue
ShapeBlue203 views
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R... by ShapeBlue
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...
ShapeBlue173 views
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ... by ShapeBlue
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...
ShapeBlue126 views
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue by ShapeBlue
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlueWhat’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue
ShapeBlue263 views
Extending KVM Host HA for Non-NFS Storage - Alex Ivanov - StorPool by ShapeBlue
Extending KVM Host HA for Non-NFS Storage -  Alex Ivanov - StorPoolExtending KVM Host HA for Non-NFS Storage -  Alex Ivanov - StorPool
Extending KVM Host HA for Non-NFS Storage - Alex Ivanov - StorPool
ShapeBlue123 views
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And... by ShapeBlue
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...
ShapeBlue106 views
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha... by ShapeBlue
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
ShapeBlue180 views
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or... by ShapeBlue
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...
ShapeBlue198 views
Digital Personal Data Protection (DPDP) Practical Approach For CISOs by Priyanka Aash
Digital Personal Data Protection (DPDP) Practical Approach For CISOsDigital Personal Data Protection (DPDP) Practical Approach For CISOs
Digital Personal Data Protection (DPDP) Practical Approach For CISOs
Priyanka Aash158 views
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue by ShapeBlue
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlueCloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue
ShapeBlue135 views
Business Analyst Series 2023 - Week 4 Session 8 by DianaGray10
Business Analyst Series 2023 -  Week 4 Session 8Business Analyst Series 2023 -  Week 4 Session 8
Business Analyst Series 2023 - Week 4 Session 8
DianaGray10123 views
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue by ShapeBlue
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlueCloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue
ShapeBlue138 views
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti... by ShapeBlue
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...
ShapeBlue139 views

Featured

Time Management & Productivity - Best Practices by
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
169.8K views42 slides
The six step guide to practical project management by
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
36.7K views27 slides
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright... by
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
12.7K views21 slides
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present... by
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
55.5K views138 slides
12 Ways to Increase Your Influence at Work by
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
401.7K views64 slides
ChatGPT webinar slides by
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slidesAlireza Esmikhani
30.5K views36 slides

Featured(20)

Time Management & Productivity - Best Practices by Vit Horky
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky169.8K views
The six step guide to practical project management by MindGenius
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius36.7K views
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright... by RachelPearson36
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...
RachelPearson3612.7K views
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present... by Applitools
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...
Applitools55.5K views
12 Ways to Increase Your Influence at Work by GetSmarter
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter401.7K views
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G... by DevGAMM Conference
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 Conference3.6K views
Barbie - Brand Strategy Presentation by Erica Santiago
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
Erica Santiago25.1K views
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well by Saba Software
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software25.3K views
Introduction to C Programming Language by Simplilearn
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
Simplilearn8.5K views
The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr... by Palo Alto Software
The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr...The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr...
The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr...
Palo Alto Software88.4K views
9 Tips for a Work-free Vacation by Weekdone.com
9 Tips for a Work-free Vacation9 Tips for a Work-free Vacation
9 Tips for a Work-free Vacation
Weekdone.com7.2K views
How to Map Your Future by SlideShop.com
How to Map Your FutureHow to Map Your Future
How to Map Your Future
SlideShop.com275.1K views
Beyond Pride: Making Digital Marketing & SEO Authentically LGBTQ+ Inclusive -... by AccuraCast
Beyond Pride: Making Digital Marketing & SEO Authentically LGBTQ+ Inclusive -...Beyond Pride: Making Digital Marketing & SEO Authentically LGBTQ+ Inclusive -...
Beyond Pride: Making Digital Marketing & SEO Authentically LGBTQ+ Inclusive -...
AccuraCast3.4K views
Exploring ChatGPT for Effective Teaching and Learning.pptx by Stan Skrabut, Ed.D.
Exploring ChatGPT for Effective Teaching and Learning.pptxExploring ChatGPT for Effective Teaching and Learning.pptx
Exploring ChatGPT for Effective Teaching and Learning.pptx
Stan Skrabut, Ed.D.57.7K views
How to train your robot (with Deep Reinforcement Learning) by Lucas García, PhD
How to train your robot (with Deep Reinforcement Learning)How to train your robot (with Deep Reinforcement Learning)
How to train your robot (with Deep Reinforcement Learning)
Lucas García, PhD42.5K views
4 Strategies to Renew Your Career Passion by Daniel Goleman
4 Strategies to Renew Your Career Passion4 Strategies to Renew Your Career Passion
4 Strategies to Renew Your Career Passion
Daniel Goleman122K views

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