SlideShare una empresa de Scribd logo
1 de 36
Elastic Grid and EC2

How can Amazon EC2 Benefit from the Elastic Grid
Solution?
Jerome Bernard
About Elastic Grid

 •   Project initiated in early ’08
     •   LGPLv3 license
     •   Part of the OW2 forge
 •   ETA for initial Early Access version: end of Oct. ‘08

 •   Elastic Grid, LLC. founded in May ’08
     •   Dennis Reedy: Director US Operations at Elastic Grid LLC,
         founder of the Rio OSS project, old VP Advanced Technology at
         GigaSpaces, old Principal Engineer at Sun
     •   Jerome Bernard: Director EMEA Operations at Elastic Grid
         LLC, committer on various OSS projects like Rio, Typica, JiBX.
Agenda

 • EC2 and Amazon Web Services
   • Capabilities, benefits and challenges
 • Elastic Grid introduction
   • Technology, approach and benefits
 • Elastic Grid and EC2
   • Deploying and scaling applications using Elastic Grid
 • Demonstration
Cloud Computing

 •   A way to increase capacity or add capabilities on the
     fly without investing in new infrastructure, training
     new personnel, or licensing new software
 •   Virtualized hardware available for computation
   • Resources “in the cloud”
 • Low cost of entry, utility based model
   • Pay for what you use
 • Embraced by startups, and medium to large
    corporations as a way to bypass IT
 • Cloud Computing Providers (Utility)
Amazon EC2 Overview
 In a nutshell
   •   Provides resizable compute capacity in the cloud

 EC2 Amazon Machine Image (AMI)
   •   Operating System & application “stack”
   •   Deployed using Amazon Web Services to the “cloud”


 • EC2 Instances that run AMIs
   • Virtual machines




                                 5
Typical Architecture Taxonomy

                   Applications


                Virtual Platform


                 Upper Platform


                Lower Platform


                Hardware Platform
Typical Architecture Taxonomy (more detail)

                            Applications


               Middleware Support, JDBC, JMS, …


         Enterprise Containers, JEE, Spring, ESBs, OSGi, ...


        Provisioning, Management, Monitoring & Metering


                        Hardware Platform
EC2 AMI Stack

                          Applications


              Middleware Support, JDBC, JMS, …

                                                              AMI
        Enterprise Containers, JEE, Spring, ESBs, OSGi, ...


       Provisioning, Management, Monitoring & Metering


                       Hardware Platform                      Virtualized
EC2 AMIs: Deployment Challenges

 •    The EC2 AMI is a boot image, requires substantial system
      administrator knowledge
 •    As application code changes, AMIs typically need to
      change / be re-bundled
 •    Not focused on developer productivity
                                Boot base AMI

                                                 Copy private key and
     Upload to S3                               certificate (for bundling
                                                         image)

                    Install and configure requisite
                               software
Elastic Grid (abbreviated as EG)

 •   Dynamic infrastructure for the dynamic deployment,
     activation and management of Java applications on
     virtualized hardware

 •   Technology building blocks
     •   Rio:
         •   used for provisioning of services,
         •   both EG founders are committers of the projects
     •   Typica: Elastic Grid, LLC is an active committer on this project
     •   JetS3t: the most popular Java API for using Amazon S3
     •   Jini (River)
Elastic Grid Architecture



Administrative                Application
  Console        S3            Monitor


                                             SLA Policy
                                            Enforcement



                                             Monitor &
                                              Meter

                              Application
                                Agents
Elastic Grid Architecture



Administrative                                        Application
  Console                   S3                         Monitor


                                                                      SLA Policy
                     Application Monitor                             Enforcement
   Deploys and manages applications (composed of services),
   provides failover (if service(s) fail they are re-created), and
             methods to scale and relocate services
                                                                      Monitor &
                                                                       Meter

                                                      Application
                                                        Agents
Elastic Grid Architecture



Administrative                                      Application
  Console                  S3                        Monitor


                                                                    SLA Policy
                                                                   Enforcement
                     Application Agent                                           EG AMI
  Represents the capabilities of a virtualized compute resource,
    acts as a dynamic agent instantiating application services      Monitor &
                                                                     Meter

                                                    Application
                                                      Agents
Elastic Grid EC2 AMI Stack

                            Applications


               Middleware Support, JDBC, JMS, …                 Dynamic
                                                               Application
         Enterprise Containers, JEE, Spring, ESBs, OSGi, ...


        Provisioning, Management, Monitoring & Metering        EG AMI
                        Hardware Platform                      Virtualized
EC2 AMIs: Deployment with EG AMIs

•   EG AMIs are pre-set, no need to (re-)bundle
•   As application code changes, upload to S3 and deploy
•   Focuses on developer productivity



                                    Boot EG AMIs
           Deploy                         ...


                     Upload (modified)
                         app to S3
Elastic Grid Deployment

•   Deploy application code S3
•   Run the Deploy Command         1 Upload                 S3


•   All code is dynamically served              3   As needed download
    and instantiated                                application resources

•   Application is monitored
    and managed across EC2
                                2 Deploy
    instances                                               activate


                                              Application
                                               Monitors



                                                                 Application Agents
Elastic Grid Scalability on EC2

•   Across existing EC2 Instances
           App Agent EC2 Instance                     App Monitor EC2 Instance

                                SLA
          App Service     Policy Handler

    80%                                    allocate

               Memory
               Observer     register
                                            • Allocate an Application Service
                                            • Create a SLA Policy Handler
                                              that registers for Memory
                                              utilization notifications
                                            • SLA has upper limit set to 80%
Elastic Grid Scalability on EC2

•   Across existing EC2 Instances
      App Agent AMI                                    App Monitor AMI

                                SLA
          App Service     Policy Handler   increment

    80%


               Memory
               Observer     notify
                                              • Memory utilization exceeds 80%
                                              • SLA Policy Handler is notified
                                              • App Monitor allocates another
                                              Application Service instance to
                                              appropriate App Agent Instance
Elastic Grid Scalability on EC2

•   Across existing EC2 Instances
      App Agent AMI                                    App Monitor AMI

                                SLA
          App Service     Policy Handler   increment

    80%


               Memory
               Observer     notify
                                              • Memory utilization exceeds 80%
                                              • SLA Policy Handler is notified
                                              • App Monitor allocates another
                                              Application Service instance to
                                              appropriate App Agent Instance
Elastic Grid Scalability on EC2

•   New EC2 Instance
           App Agent EC2 Instance                     App Monitor EC2 Instance

                                EC2
          App Service     Policy Handler

    80%                                    allocate
               Memory
               Observer


                                           • Allocate an Application Service
                                           • Create an EC2 Policy Handler
                                             which registers for Memory
                                             utilization notifications
                                           • SLA has upper limit set to 80%
Elastic Grid Scalability on EC2

•   New EC2 Instance
           App Agent EC2 Instance                        App Monitor AMI

                                SLA
          App Service     Policy Handler   increment

    80%

               Memory
               Observer                    App Agent EC2 Instance
                            notify
                                                 App Service            SLA
                                                                  Policy Handler




                                                       Memory
                                                       Observer
Elastic Grid Benefits
 So what EG does for the app?
   •   Ease development and deployment of Java
       applications using Amazon services
   •   Provides automated management, fault detection
       and scalability for the application
   •   To come soon: Cloud Bursting!

 Why EG should be used?
   •   Ease deployment and management of your Java
       applications
   •   The same app can work on the LAN or on the Cloud



                           19
Elastic Grid Benefits - Illustrated
 EG uses a specific DSL meaning it’s easy to write the
 deployment descriptor and deploy a J2EE app on EC2




 What EG does for you in that case?
   •   Download from S3 a regular Tomcat distribution
   •   Download your Webapp
   •   Provision Tomcat as an external service being
       monitored (if Tomcat dies, it’s (re-)provisioned!


                            20
Elastic Grid Tools
Tools Used in the Demonstration   Rio UI
IntelliJ plugin



•
Web Console
Demonstration – A real world use case
 French TV channel in need of video conversion for
 streaming of short videos on the Web
   •   for now on...
   •   VOD will come really soon
   •   ... and CatchUp TV is close too, I suppose!
 Video conversion and streaming
   •   done by a 3rd party,
   •   but there are streaming issues and some conversion glitches
 As of the beginning of April ‘08,
   •   more than 1.1K videos...
   •   ... for about 40GB of MPEG-4 data!


                                 22
Demonstration – A real world use case
 Pricing:
   •   7!/GB for streaming,
   •   300!/month for video conversion


 • This solution won’t day ...
                         scale:
   • about 30 videos per
   •   ... made of 1.5GB of MPEG-4 ...
   •   ... to process to 6 different flavors (resize, extract, etc.)
   •   being converted on 1 machine!




                                   23
Demonstration – A real world use case
 Storage should be cheap
   •   MPEG-4 videos and FLV videos should be stored on Amazon
       S3

 • Streaming should beto increasereliable bps and the QoS
                         fast and
   •  cheap CDN in order          both the
   •   being seed from our FLV videos on Amazon S3
 Flexibility of deployments for video conversion
   •   should be able to work both on a LAN
   •   ... and EC2 infrastructure!

 • Flexibility ofto wait for hours... video conversion
                  deployments for
   •  don’t want


                               24
Demonstration Architecture


                                       SQS

             send conversion
                    requests              polls


                                      Video
    Tomcat   Web App                Converter
                               reads          writes


                                  S3           S3
                               (source)      (dest)
Demonstration Iterations

 •   Approach 1 - Scalability on the LAN
     •   LAN based approach using a single computer
     •   Using automated SLA management
     •   System scales based on observed thresholds
 •   Approach 2 - Scalability on the Cloud
     •   EC2 based deployment, using EG AMIs
     •   Dynamic deployment of application to EC2 from S3
     •   Using automated SLA management
     •   System scales application instances (as opposed to EC2
         instances) based on observed thresholds
Demonstration – LAN deployment

Local/network file system for both the MPEG-4 videos and
the converted videos (FLV).
Distribution of video conversion requests:
  •   done by our “smart proxy” sending Amazon SQS messages
  •   .. with the name of the video to convert

• Video conversion done on to the MPEG-4 videos!
                                machines on the LAN
  • those machines needs access
Use of a dynamic service (with the help of the EG
framework)
  •   driving the mencoder OpenSource tool
  •   each Video Converter polls the SQS queue for requests


                                27
Demonstration – LAN deployment – Results




 Number of Services
              1       2   4   6
Demonstration – Cloud deployment
 Same as before, but this time, the cluster is hosted on
 Amazon EC2!
 The videos were previously uploaded on S3!
 Each service running on Amazon EC2:
   •   downloads the S3 video from a “bucket”,
   •   convert it to the many FLV flavors,
   •   and uploads the encoded videos to another “bucket”




                               29
Demonstration – 2nd approach - Results
Slower on a per instance
basis, but can scale to
tens, or hundreds of
instances in order to
run this in a timely fashion!




     Number of Amazon EC2 instances
                   1        2     4   6
Video Conversion for Streaming of Short
Videos
Summary

•   Elastic Grid extends EC2, enabling users to manage &
    dynamically scale application service instances and
    EC2 instances based on declarable SLAs
•   Cloud decides allocation of services
    •   QoS approach provides feedback mechanisms based on SLAs
    •   Today: Human decides/admins each machine
•   Provisioning/changing services is simple
    •   Dynamic reconfigurable systems
    •   Make it live through the network
•   Availability
        •   EG EC2 AMI is available (easy to find with the IntelliJ plugin :))
Elastic Grid and EC2
How Can Amazon EC2 Benefit from the Elastic Grid
Solution?
info@elastic-grid.com

Más contenido relacionado

Último

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
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
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
 
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
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
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
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
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
 
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
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
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
 
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
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
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
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
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
 

Último (20)

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
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
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
 
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
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
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
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
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
 
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...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
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
 
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
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
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
 

Destacado

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
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
 

Destacado (20)

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
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
 

Elastic Grid talk at JavaZone 08 (Oslo, Norway)

  • 1. Elastic Grid and EC2 How can Amazon EC2 Benefit from the Elastic Grid Solution? Jerome Bernard
  • 2. About Elastic Grid • Project initiated in early ’08 • LGPLv3 license • Part of the OW2 forge • ETA for initial Early Access version: end of Oct. ‘08 • Elastic Grid, LLC. founded in May ’08 • Dennis Reedy: Director US Operations at Elastic Grid LLC, founder of the Rio OSS project, old VP Advanced Technology at GigaSpaces, old Principal Engineer at Sun • Jerome Bernard: Director EMEA Operations at Elastic Grid LLC, committer on various OSS projects like Rio, Typica, JiBX.
  • 3. Agenda • EC2 and Amazon Web Services • Capabilities, benefits and challenges • Elastic Grid introduction • Technology, approach and benefits • Elastic Grid and EC2 • Deploying and scaling applications using Elastic Grid • Demonstration
  • 4. Cloud Computing • A way to increase capacity or add capabilities on the fly without investing in new infrastructure, training new personnel, or licensing new software • Virtualized hardware available for computation • Resources “in the cloud” • Low cost of entry, utility based model • Pay for what you use • Embraced by startups, and medium to large corporations as a way to bypass IT • Cloud Computing Providers (Utility)
  • 5. Amazon EC2 Overview In a nutshell • Provides resizable compute capacity in the cloud EC2 Amazon Machine Image (AMI) • Operating System & application “stack” • Deployed using Amazon Web Services to the “cloud” • EC2 Instances that run AMIs • Virtual machines 5
  • 6. Typical Architecture Taxonomy Applications Virtual Platform Upper Platform Lower Platform Hardware Platform
  • 7. Typical Architecture Taxonomy (more detail) Applications Middleware Support, JDBC, JMS, … Enterprise Containers, JEE, Spring, ESBs, OSGi, ... Provisioning, Management, Monitoring & Metering Hardware Platform
  • 8. EC2 AMI Stack Applications Middleware Support, JDBC, JMS, … AMI Enterprise Containers, JEE, Spring, ESBs, OSGi, ... Provisioning, Management, Monitoring & Metering Hardware Platform Virtualized
  • 9. EC2 AMIs: Deployment Challenges • The EC2 AMI is a boot image, requires substantial system administrator knowledge • As application code changes, AMIs typically need to change / be re-bundled • Not focused on developer productivity Boot base AMI Copy private key and Upload to S3 certificate (for bundling image) Install and configure requisite software
  • 10. Elastic Grid (abbreviated as EG) • Dynamic infrastructure for the dynamic deployment, activation and management of Java applications on virtualized hardware • Technology building blocks • Rio: • used for provisioning of services, • both EG founders are committers of the projects • Typica: Elastic Grid, LLC is an active committer on this project • JetS3t: the most popular Java API for using Amazon S3 • Jini (River)
  • 11. Elastic Grid Architecture Administrative Application Console S3 Monitor SLA Policy Enforcement Monitor & Meter Application Agents
  • 12. Elastic Grid Architecture Administrative Application Console S3 Monitor SLA Policy Application Monitor Enforcement Deploys and manages applications (composed of services), provides failover (if service(s) fail they are re-created), and methods to scale and relocate services Monitor & Meter Application Agents
  • 13. Elastic Grid Architecture Administrative Application Console S3 Monitor SLA Policy Enforcement Application Agent EG AMI Represents the capabilities of a virtualized compute resource, acts as a dynamic agent instantiating application services Monitor & Meter Application Agents
  • 14. Elastic Grid EC2 AMI Stack Applications Middleware Support, JDBC, JMS, … Dynamic Application Enterprise Containers, JEE, Spring, ESBs, OSGi, ... Provisioning, Management, Monitoring & Metering EG AMI Hardware Platform Virtualized
  • 15. EC2 AMIs: Deployment with EG AMIs • EG AMIs are pre-set, no need to (re-)bundle • As application code changes, upload to S3 and deploy • Focuses on developer productivity Boot EG AMIs Deploy ... Upload (modified) app to S3
  • 16. Elastic Grid Deployment • Deploy application code S3 • Run the Deploy Command 1 Upload S3 • All code is dynamically served 3 As needed download and instantiated application resources • Application is monitored and managed across EC2 2 Deploy instances activate Application Monitors Application Agents
  • 17. Elastic Grid Scalability on EC2 • Across existing EC2 Instances App Agent EC2 Instance App Monitor EC2 Instance SLA App Service Policy Handler 80% allocate Memory Observer register • Allocate an Application Service • Create a SLA Policy Handler that registers for Memory utilization notifications • SLA has upper limit set to 80%
  • 18. Elastic Grid Scalability on EC2 • Across existing EC2 Instances App Agent AMI App Monitor AMI SLA App Service Policy Handler increment 80% Memory Observer notify • Memory utilization exceeds 80% • SLA Policy Handler is notified • App Monitor allocates another Application Service instance to appropriate App Agent Instance
  • 19. Elastic Grid Scalability on EC2 • Across existing EC2 Instances App Agent AMI App Monitor AMI SLA App Service Policy Handler increment 80% Memory Observer notify • Memory utilization exceeds 80% • SLA Policy Handler is notified • App Monitor allocates another Application Service instance to appropriate App Agent Instance
  • 20. Elastic Grid Scalability on EC2 • New EC2 Instance App Agent EC2 Instance App Monitor EC2 Instance EC2 App Service Policy Handler 80% allocate Memory Observer • Allocate an Application Service • Create an EC2 Policy Handler which registers for Memory utilization notifications • SLA has upper limit set to 80%
  • 21. Elastic Grid Scalability on EC2 • New EC2 Instance App Agent EC2 Instance App Monitor AMI SLA App Service Policy Handler increment 80% Memory Observer App Agent EC2 Instance notify App Service SLA Policy Handler Memory Observer
  • 22. Elastic Grid Benefits So what EG does for the app? • Ease development and deployment of Java applications using Amazon services • Provides automated management, fault detection and scalability for the application • To come soon: Cloud Bursting! Why EG should be used? • Ease deployment and management of your Java applications • The same app can work on the LAN or on the Cloud 19
  • 23. Elastic Grid Benefits - Illustrated EG uses a specific DSL meaning it’s easy to write the deployment descriptor and deploy a J2EE app on EC2 What EG does for you in that case? • Download from S3 a regular Tomcat distribution • Download your Webapp • Provision Tomcat as an external service being monitored (if Tomcat dies, it’s (re-)provisioned! 20
  • 24. Elastic Grid Tools Tools Used in the Demonstration Rio UI IntelliJ plugin • Web Console
  • 25. Demonstration – A real world use case French TV channel in need of video conversion for streaming of short videos on the Web • for now on... • VOD will come really soon • ... and CatchUp TV is close too, I suppose! Video conversion and streaming • done by a 3rd party, • but there are streaming issues and some conversion glitches As of the beginning of April ‘08, • more than 1.1K videos... • ... for about 40GB of MPEG-4 data! 22
  • 26. Demonstration – A real world use case Pricing: • 7!/GB for streaming, • 300!/month for video conversion • This solution won’t day ... scale: • about 30 videos per • ... made of 1.5GB of MPEG-4 ... • ... to process to 6 different flavors (resize, extract, etc.) • being converted on 1 machine! 23
  • 27. Demonstration – A real world use case Storage should be cheap • MPEG-4 videos and FLV videos should be stored on Amazon S3 • Streaming should beto increasereliable bps and the QoS fast and • cheap CDN in order both the • being seed from our FLV videos on Amazon S3 Flexibility of deployments for video conversion • should be able to work both on a LAN • ... and EC2 infrastructure! • Flexibility ofto wait for hours... video conversion deployments for • don’t want 24
  • 28. Demonstration Architecture SQS send conversion requests polls Video Tomcat Web App Converter reads writes S3 S3 (source) (dest)
  • 29. Demonstration Iterations • Approach 1 - Scalability on the LAN • LAN based approach using a single computer • Using automated SLA management • System scales based on observed thresholds • Approach 2 - Scalability on the Cloud • EC2 based deployment, using EG AMIs • Dynamic deployment of application to EC2 from S3 • Using automated SLA management • System scales application instances (as opposed to EC2 instances) based on observed thresholds
  • 30. Demonstration – LAN deployment Local/network file system for both the MPEG-4 videos and the converted videos (FLV). Distribution of video conversion requests: • done by our “smart proxy” sending Amazon SQS messages • .. with the name of the video to convert • Video conversion done on to the MPEG-4 videos! machines on the LAN • those machines needs access Use of a dynamic service (with the help of the EG framework) • driving the mencoder OpenSource tool • each Video Converter polls the SQS queue for requests 27
  • 31. Demonstration – LAN deployment – Results Number of Services 1 2 4 6
  • 32. Demonstration – Cloud deployment Same as before, but this time, the cluster is hosted on Amazon EC2! The videos were previously uploaded on S3! Each service running on Amazon EC2: • downloads the S3 video from a “bucket”, • convert it to the many FLV flavors, • and uploads the encoded videos to another “bucket” 29
  • 33. Demonstration – 2nd approach - Results Slower on a per instance basis, but can scale to tens, or hundreds of instances in order to run this in a timely fashion! Number of Amazon EC2 instances 1 2 4 6
  • 34. Video Conversion for Streaming of Short Videos
  • 35. Summary • Elastic Grid extends EC2, enabling users to manage & dynamically scale application service instances and EC2 instances based on declarable SLAs • Cloud decides allocation of services • QoS approach provides feedback mechanisms based on SLAs • Today: Human decides/admins each machine • Provisioning/changing services is simple • Dynamic reconfigurable systems • Make it live through the network • Availability • EG EC2 AMI is available (easy to find with the IntelliJ plugin :))
  • 36. Elastic Grid and EC2 How Can Amazon EC2 Benefit from the Elastic Grid Solution? info@elastic-grid.com