SlideShare a Scribd company logo
1 of 26
Resin, Deployment,
Cloud, Clustering and
EC2 (How To) Part 1
             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.
Overview

•    Tutorial covers basics of using Resin Java Application Server on
     EC2 and EC2 like environments
•    Setting up Resin
•    Doing a cloud deploy
•    Setting up Resin Pro license
•    Deploying to EC2 box
•    Eclipse to create a simple war file and then deploy it to Amazon
     EC2




Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
         Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Resin works well with EC2 and IaaS

•    Many Steps in tutorial same for other IaaS solutions
•    Eucalyptus, CloudStack with CloudBridge, RightScale myCloud
     or even OpenNebula this guide should help you along as they all
     support the Amazon EC2 REST APIs.
•    Any IaaS cloud computing environment (private or public, on
     premises or hosted) very similar steps
•    Xen Server, Xen Cloud or VMWare vSphere etc. should be
     similar
•    Servers not only as a Resin on EC2 environment tutorial but
     just a general Resin deployment tutorial




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

•    Local dev box is Ubuntu (could be Linux, Windows, Mac OSX,
     but choose Ubuntu)
•    Remote EC2 box is Amazon Linux
    •  Amazon Linux like CentOS
    •  CentOS like RedHat
•    In a way it is a good Resin Linux tutorial that covers Debian
     like, and Red Hat like instances
•    (Resin runs on Solaris, Linux, Windows, Berkeley and Mac OSX).




Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
         Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Familiar with Amazon EC2?

•    If not, start here: http://docs.amazonwebservices.com/AWSEC2/
     latest/GettingStartedGuide/Welcome.html (then come back)
•    Learn how to start/stop instances, etc.




Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
         Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Amazon WS Console to launch instance




Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
         Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Start up new instance then install Resin

•    Fire up an Amazon Instance using Amazon Linux (basically
     CentOS 5.4)




Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
         Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Make sure Resin is running




Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
         Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Install Resin on local dev box (Ubuntu)

•    Add Caucho's Debian repository to system's repositories
•    edit /etc/apt/sources.list
•    Add this line




Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
         Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Test Resin setup on local dev box




Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
         Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Use Eclipse to create test war file




Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
         Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Create a simple servlet




Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
         Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Export war file




Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
         Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Deploy and test locally




Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
         Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Create an Elastic IP for your AMI

•    Amazon EC2 instances are assigned two IP addresses
    • 1 public, and 1 private
•    The public address is mapped via Network Address Translation
     (NAT)
•    Every time you start or restart an instance, it gets new public
     and private addresses
•    This makes it hard to configure a static cluster topology




Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
         Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Create an Elastic IP for your AMI

•    Amazon EC2 provides a service called Elastic IP addresses
•    Elastic IP addresses are static IP addresses.
•    Elastic IP addresses are associated with your account, not a
     specific instances.
•    You can associate an Elastic IP address with an instance.
•    It is good to associate your instance with an IP address so you
     can direct your calls to that instance when deploying an
     application
•    Also you need to know some address to configure the Triad
•    (Resin only communicates with private addresses, but uses
     public addresses and a secure handshake to exchange private
     addresses)



Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
         Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Create an Elastic IP for your AMI




Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
         Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Elastic IP address

•    It has to be reassign every time the server starts up
•    It has to be assigned to an AMI instance in order to be used




Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
         Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Password and User name

•    You can’t execute commands remotely without a username and
     password
•    To do a remote deploy on Amazon EC2 from your dev box, you
     need a user name and password




Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
         Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Create password for your Amazon Cloud




Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
         Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Put user-data with credentials in AMI




Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
         Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Create ec2.xml file and install it in




Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
         Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Make sure right ports are open




Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server
         Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
Deploy from command line

•    From development box, deploy test hello.war




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




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

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


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


•    Resin White Paper on Java EE Cloud Computing




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

More Related Content

Recently uploaded

Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
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
 
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
 
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
 
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
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
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
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
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
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 

Recently uploaded (20)

Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
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
 
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
 
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
 
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
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
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
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
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
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 

Featured

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
 

Featured (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 I

  • 1. Resin, Deployment, Cloud, Clustering and EC2 (How To) Part 1 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.
  • 2. Overview • Tutorial covers basics of using Resin Java Application Server on EC2 and EC2 like environments • Setting up Resin • Doing a cloud deploy • Setting up Resin Pro license • Deploying to EC2 box • Eclipse to create a simple war file and then deploy it to Amazon EC2 Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
  • 3. Resin works well with EC2 and IaaS • Many Steps in tutorial same for other IaaS solutions • Eucalyptus, CloudStack with CloudBridge, RightScale myCloud or even OpenNebula this guide should help you along as they all support the Amazon EC2 REST APIs. • Any IaaS cloud computing environment (private or public, on premises or hosted) very similar steps • Xen Server, Xen Cloud or VMWare vSphere etc. should be similar • Servers not only as a Resin on EC2 environment tutorial but just a general Resin deployment tutorial Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
  • 4. Development boxes • Local dev box is Ubuntu (could be Linux, Windows, Mac OSX, but choose Ubuntu) • Remote EC2 box is Amazon Linux • Amazon Linux like CentOS • CentOS like RedHat • In a way it is a good Resin Linux tutorial that covers Debian like, and Red Hat like instances • (Resin runs on Solaris, Linux, Windows, Berkeley and Mac OSX). Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
  • 5. Familiar with Amazon EC2? • If not, start here: http://docs.amazonwebservices.com/AWSEC2/ latest/GettingStartedGuide/Welcome.html (then come back) • Learn how to start/stop instances, etc. Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
  • 6. Amazon WS Console to launch instance Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
  • 7. Start up new instance then install Resin • Fire up an Amazon Instance using Amazon Linux (basically CentOS 5.4) Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
  • 8. Make sure Resin is running Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
  • 9. Install Resin on local dev box (Ubuntu) • Add Caucho's Debian repository to system's repositories • edit /etc/apt/sources.list • Add this line Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
  • 10. Test Resin setup on local dev box Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
  • 11. Use Eclipse to create test war file Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
  • 12. Create a simple servlet Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
  • 13. Export war file Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
  • 14. Deploy and test locally Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
  • 15. Create an Elastic IP for your AMI • Amazon EC2 instances are assigned two IP addresses • 1 public, and 1 private • The public address is mapped via Network Address Translation (NAT) • Every time you start or restart an instance, it gets new public and private addresses • This makes it hard to configure a static cluster topology Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
  • 16. Create an Elastic IP for your AMI • Amazon EC2 provides a service called Elastic IP addresses • Elastic IP addresses are static IP addresses. • Elastic IP addresses are associated with your account, not a specific instances. • You can associate an Elastic IP address with an instance. • It is good to associate your instance with an IP address so you can direct your calls to that instance when deploying an application • Also you need to know some address to configure the Triad • (Resin only communicates with private addresses, but uses public addresses and a secure handshake to exchange private addresses) Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
  • 17. Create an Elastic IP for your AMI Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
  • 18. Elastic IP address • It has to be reassign every time the server starts up • It has to be assigned to an AMI instance in order to be used Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
  • 19. Password and User name • You can’t execute commands remotely without a username and password • To do a remote deploy on Amazon EC2 from your dev box, you need a user name and password Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
  • 20. Create password for your Amazon Cloud Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
  • 21. Put user-data with credentials in AMI Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
  • 22. Create ec2.xml file and install it in Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
  • 23. Make sure right ports are open Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
  • 24. Deploy from command line • From development box, deploy test hello.war Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
  • 25. Conclusion Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.
  • 26. Related links • Part 1 Resin Java EE Application Server clustering and deployment to EC2 (this in WIKI form) • Part 2 Resin clustering and deployment to EC2, session replication, Amazon Load Balancer • Resin Java EE Application Server’s Cloud Support and Clustering Support • Resin White Paper on Java EE Cloud Computing Caucho Home | Contact Us | Caucho Blog | Wiki | Application Server / Web Server Copyright (c) 1998-2012 Caucho Technology, Inc. All rights reserved.

Editor's Notes

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. \n
  21. \n
  22. \n
  23. \n
  24. \n
  25. \n
  26. \n