SlideShare a Scribd company logo
Custom Commands in the Pet Clinic Recipe

                                                 All the services are
                                                 being installed

                                 Load Balancer
Custom Commands in the Pet Clinic Recipe

                                                      During its installation,
                                                      two custom commands
                                                      are added to the
                                      Load Balancer   Apache service.




                     addNode
                   (custom command)




                   removeNode
                   (custom command)
Custom Commands in the Pet Clinic Recipe

                                                      The ApacheLB service
                                                      is started

                                      Load Balancer




                     addNode
                   (custom command)




                   removeNode
                   (custom command)
Custom Commands in the Pet Clinic Recipe

                                                      Now the Tomcat
                                                      service can start

                                      Load Balancer




                     addNode
                   (custom command)




                   removeNode
                   (custom command)
Custom Commands in the Pet Clinic Recipe

                                                      Tomcat service
                                                      starts

                                      Load Balancer




                     addNode
                   (custom command)




                   removeNode
                   (custom command)
Custom Commands in the Pet Clinic Recipe

                                                      Tomcat postStart
                                                      lifecycle event

                                      Load Balancer




                     addNode
                   (custom command)




                   removeNode
                   (custom command)
Custom Commands in the Pet Clinic Recipe
                                                             During the postStart,
                                                             each tomcat instance
                                                             invokes the
                                             Load Balancer   apacheLB’s addNode
                                                             custom command




      Each tomcat instance invokes the
      apacheLB’s addNode
      custom command
                             addNode
                          (custom command)




                           removeNode
                          (custom command)
Custom Commands in the Pet Clinic Recipe
                                                                  The apacheLB’s
                                                                  configuration is
                                                                  modified to contain
                                             Load Balancer        the new member




                                                 Tweaking the
                                                 configuration:
                                                 Now apacheLB
      Each tomcat instance invokes the           has one more
      apacheLB’s addNode                         member
      custom command
                             addNode
                          (custom command)




                           removeNode
                          (custom command)
Custom Commands in the Pet Clinic Recipe

                                                                  Tomcat postStop
                                                                  lifecycle event

                                             Load Balancer




                                                 Tweaking the
                                                 configuration:
                                                 Now apacheLB
      Each tomcat instance invokes the           has one more
      apacheLB’s addNode                         member
      custom command
                             addNode
                          (custom command)




                           removeNode
                          (custom command)
Custom Commands in the Pet Clinic Recipe
                                                                  During the postStop,
                                                                  each tomcat instance
                                                                  invokes the
                                             Load Balancer        apacheLB’s removeNode
                                                                  custom command




                                                 Tweaking the
                                                 configuration:
                                                 Now apacheLB
      Each tomcat instance invokes the           has one more
      apacheLB’s addNode                         member
      custom command
                             addNode
                          (custom command)


      Each tomcat instance invokes the
      apacheLB’s removeNode
      custom command
                           removeNode
                          (custom command)
Custom Commands in the Pet Clinic Recipe
                                                                  The apacheLB’s
                                                                  configuration is
                                                                  modified to remove
                                             Load Balancer        the member




                                                 Tweaking the
                                                 configuration:
                                                 Now apacheLB
      Each tomcat instance invokes the           has one more
      apacheLB’s addNode                         member
      custom command
                             addNode
                          (custom command)


                                                Tweaking the
      Each tomcat instance invokes the
                                                configuration:
      apacheLB’s removeNode                     Now apacheLB
      custom command                            has one less
                           removeNode           member
                          (custom command)

More Related Content

What's hot

SHOGUN使ってみました
SHOGUN使ってみましたSHOGUN使ってみました
SHOGUN使ってみました
Yasutomo Kawanishi
 
Modules reduce reuse_recycle
Modules reduce reuse_recycleModules reduce reuse_recycle
Modules reduce reuse_recycle
Daniel Kendrick
 
OSGi and Eclipse RCP
OSGi and Eclipse RCPOSGi and Eclipse RCP
OSGi and Eclipse RCP
Eric Jain
 
Linux Du Jour
Linux Du JourLinux Du Jour
Linux Du Jour
mwedgwood
 
Internship Project (Lasindu) WSO2
Internship Project (Lasindu) WSO2Internship Project (Lasindu) WSO2
Internship Project (Lasindu) WSO2
lasinducharith
 
Groovy 2.0 update - Cloud Foundry Open Tour Moscow - Guillaume Laforge
Groovy 2.0 update - Cloud Foundry Open Tour Moscow - Guillaume LaforgeGroovy 2.0 update - Cloud Foundry Open Tour Moscow - Guillaume Laforge
Groovy 2.0 update - Cloud Foundry Open Tour Moscow - Guillaume Laforge
Guillaume Laforge
 
Kernel Recipes 2015: Introduction to Kernel Power Management
Kernel Recipes 2015: Introduction to Kernel Power ManagementKernel Recipes 2015: Introduction to Kernel Power Management
Kernel Recipes 2015: Introduction to Kernel Power Management
Anne Nicolas
 
Run commands listed below in alphabetical order
Run commands listed below in alphabetical orderRun commands listed below in alphabetical order
Run commands listed below in alphabetical orderKondareddy Settipalli
 
Q4.11: Sched_mc on dual / quad cores
Q4.11: Sched_mc on dual / quad coresQ4.11: Sched_mc on dual / quad cores
Q4.11: Sched_mc on dual / quad cores
Linaro
 
Groovy 1.8 et 2.0 au BreizhC@mp 2012
Groovy 1.8 et 2.0 au BreizhC@mp 2012Groovy 1.8 et 2.0 au BreizhC@mp 2012
Groovy 1.8 et 2.0 au BreizhC@mp 2012Guillaume Laforge
 

What's hot (11)

SHOGUN使ってみました
SHOGUN使ってみましたSHOGUN使ってみました
SHOGUN使ってみました
 
Modules reduce reuse_recycle
Modules reduce reuse_recycleModules reduce reuse_recycle
Modules reduce reuse_recycle
 
OSGi and Eclipse RCP
OSGi and Eclipse RCPOSGi and Eclipse RCP
OSGi and Eclipse RCP
 
Linux Du Jour
Linux Du JourLinux Du Jour
Linux Du Jour
 
Yum (Linux)
Yum (Linux) Yum (Linux)
Yum (Linux)
 
Internship Project (Lasindu) WSO2
Internship Project (Lasindu) WSO2Internship Project (Lasindu) WSO2
Internship Project (Lasindu) WSO2
 
Groovy 2.0 update - Cloud Foundry Open Tour Moscow - Guillaume Laforge
Groovy 2.0 update - Cloud Foundry Open Tour Moscow - Guillaume LaforgeGroovy 2.0 update - Cloud Foundry Open Tour Moscow - Guillaume Laforge
Groovy 2.0 update - Cloud Foundry Open Tour Moscow - Guillaume Laforge
 
Kernel Recipes 2015: Introduction to Kernel Power Management
Kernel Recipes 2015: Introduction to Kernel Power ManagementKernel Recipes 2015: Introduction to Kernel Power Management
Kernel Recipes 2015: Introduction to Kernel Power Management
 
Run commands listed below in alphabetical order
Run commands listed below in alphabetical orderRun commands listed below in alphabetical order
Run commands listed below in alphabetical order
 
Q4.11: Sched_mc on dual / quad cores
Q4.11: Sched_mc on dual / quad coresQ4.11: Sched_mc on dual / quad cores
Q4.11: Sched_mc on dual / quad cores
 
Groovy 1.8 et 2.0 au BreizhC@mp 2012
Groovy 1.8 et 2.0 au BreizhC@mp 2012Groovy 1.8 et 2.0 au BreizhC@mp 2012
Groovy 1.8 et 2.0 au BreizhC@mp 2012
 

Recently uploaded

Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
James Anderson
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 

Recently uploaded (20)

Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 

Automate Your Application on the Cloud

  • 1. Custom Commands in the Pet Clinic Recipe All the services are being installed Load Balancer
  • 2. Custom Commands in the Pet Clinic Recipe During its installation, two custom commands are added to the Load Balancer Apache service. addNode (custom command) removeNode (custom command)
  • 3. Custom Commands in the Pet Clinic Recipe The ApacheLB service is started Load Balancer addNode (custom command) removeNode (custom command)
  • 4. Custom Commands in the Pet Clinic Recipe Now the Tomcat service can start Load Balancer addNode (custom command) removeNode (custom command)
  • 5. Custom Commands in the Pet Clinic Recipe Tomcat service starts Load Balancer addNode (custom command) removeNode (custom command)
  • 6. Custom Commands in the Pet Clinic Recipe Tomcat postStart lifecycle event Load Balancer addNode (custom command) removeNode (custom command)
  • 7. Custom Commands in the Pet Clinic Recipe During the postStart, each tomcat instance invokes the Load Balancer apacheLB’s addNode custom command Each tomcat instance invokes the apacheLB’s addNode custom command addNode (custom command) removeNode (custom command)
  • 8. Custom Commands in the Pet Clinic Recipe The apacheLB’s configuration is modified to contain Load Balancer the new member Tweaking the configuration: Now apacheLB Each tomcat instance invokes the has one more apacheLB’s addNode member custom command addNode (custom command) removeNode (custom command)
  • 9. Custom Commands in the Pet Clinic Recipe Tomcat postStop lifecycle event Load Balancer Tweaking the configuration: Now apacheLB Each tomcat instance invokes the has one more apacheLB’s addNode member custom command addNode (custom command) removeNode (custom command)
  • 10. Custom Commands in the Pet Clinic Recipe During the postStop, each tomcat instance invokes the Load Balancer apacheLB’s removeNode custom command Tweaking the configuration: Now apacheLB Each tomcat instance invokes the has one more apacheLB’s addNode member custom command addNode (custom command) Each tomcat instance invokes the apacheLB’s removeNode custom command removeNode (custom command)
  • 11. Custom Commands in the Pet Clinic Recipe The apacheLB’s configuration is modified to remove Load Balancer the member Tweaking the configuration: Now apacheLB Each tomcat instance invokes the has one more apacheLB’s addNode member custom command addNode (custom command) Tweaking the Each tomcat instance invokes the configuration: apacheLB’s removeNode Now apacheLB custom command has one less removeNode member (custom command)