SlideShare une entreprise Scribd logo
1  sur  29
The Marionette Collective


    Middleware Concepts
            and
       Message Flow


  http://marionette-collective.org
The Marionette Collective




Connectivity
Traditional Multi-Threaded
Delegate comms to Middleware
Delegate comms to Middleware
Delegate comms to Middleware
Delegate comms to Middleware
The Marionette Collective




Types of Message
Types of Message - Queued
Types of Message - Queued
Types of Message - Broadcast
The Marionette Collective



  Components
      and
  Terminology
Nodes

Physical
servers
 being
managed




           mcollective-0.4.7.noarch.rpm
                       mcollective-common-0.4.7.noarch.rpm
Server

mcollectived

 The ruby
  based
 daemon
 on every
  node
               mcollective-0.4.7.noarch.rpm
                           mcollective-common-0.4.7.noarch.rpm
Agent

    service.rb

Small ruby classes
   that manage
services, packages,
       etc.

  Hosted by the
                      mcollective-0.4.7.noarch.rpm
     server
                                  mcollective-common-0.4.7.noarch.rpm
Client

Include MCollective::RPC


Any component
   that sends
  requests to
     servers.

                           mcollective-client-0.4.7.noarch.rpm
                                          mcollective-common-0.4.7.noarch.rpm
Collective

 Combination of
  nodes, servers,
agents, middleware
    and clients
Connectivity Plugin

Communication
     between
all components.

Many possible.

rubygem stomp
The Marionette Collective




 Anatomy of a
 RPC request
The Marionette Collective



* Discover with filter
* Send request with filter
* Wait for responses matching discovery


      mc-service -W country=za httpd status
Request - Discovery - Request ID

{:msgtime=>1280270404,
 :requestid=>"a48b4f84d66ff0c30c621d544750a081",
 :msgtarget=>"/topic/mcollective.discovery.command",
 :callerid=>"cert=rip",
 :filter=>
  {"identity"=>[],
   "fact"=>[{:fact=>"country", :value=>"za"}],
   "agent"=>[“service”],
   "cf_class"=>[]},
 :senderid=>"nephilim.ml.org",
 :body=>"ping",
 :hash=> "xxxxx"}



         mc-service -W country=za httpd status
Request - Discovery - Target

{:msgtime=>1280270404,
 :requestid=>"a48b4f84d66ff0c30c621d544750a081",
 :msgtarget=>"/topic/mcollective.discovery.command",
 :callerid=>"cert=rip",
 :filter=>
  {"identity"=>[],
   "fact"=>[{:fact=>"country", :value=>"za"}],
   "agent"=>[“service”],
   "cf_class"=>[]},
 :senderid=>"nephilim.ml.org",
 :body=>"ping",
 :hash=> "xxxxx"}



         mc-service -W country=za httpd status
Request - Discovery - Filter

{:msgtime=>1280270404,
 :requestid=>"a48b4f84d66ff0c30c621d544750a081",
 :msgtarget=>"/topic/mcollective.discovery.command",
 :callerid=>"cert=rip",
 :filter=>
  {"identity"=>[],
   "fact"=>[{:fact=>"country", :value=>"za"}],
   "agent"=>[“service”],
   "cf_class"=>[]},
 :senderid=>"nephilim.ml.org",
 :body=>"ping",
 :hash=> "xxxxx"}



         mc-service -W country=za httpd status
Request - Discovery - Body

{:msgtime=>1280270404,
 :requestid=>"a48b4f84d66ff0c30c621d544750a081",
 :msgtarget=>"/topic/mcollective.discovery.command",
 :callerid=>"cert=rip",
 :filter=>
  {"identity"=>[],
   "fact"=>[{:fact=>"country", :value=>"za"}],
   "agent"=>[“service”],
   "cf_class"=>[]},
 :senderid=>"nephilim.ml.org",
 :body=>"ping",
 :hash=> "xxxxx"}



         mc-service -W country=za httpd status
Request - Discovery - Reply

{:msgtime=>1280270802,
 :requestid=>"a48b4f84d66ff0c30c621d544750a081",
 :senderagent=>"discovery",
 :body=>"pong",
 :senderid=>"my.machine.co.za",
 :msgtarget=>"/topic/mcollective.discovery.reply",
 :hash=> "xxx"}




         mc-service -W country=za httpd status
Request - RPC Request - Filter
{:msgtime=>1280271069,
 :filter=>
  {"identity"=>[],
   "fact"=>[{:value=>"za", :fact=>"country"}],
   "agent"=>["service"],
   "cf_class"=>[]},
 :requestid=>"3b57f528746828c9f77d2d1956b94eb9",
 :msgtarget=>"/topic/mcollective.service.command",
 :callerid=>"cert=rip",
  :body=>
  {:agent => “service"
   :action => “status”,
   :service => “httpd”},
 :senderid=>"nephilim.ml.org",
 :hash=> "xxxx"}

         mc-service -W country=za httpd status
Request - RPC Request - Target
{:msgtime=>1280271069,
 :filter=>
  {"identity"=>[],
   "fact"=>[{:value=>"za", :fact=>"country"}],
   "agent"=>["service"],
   "cf_class"=>[]},
 :requestid=>"3b57f528746828c9f77d2d1956b94eb9",
 :msgtarget=>"/topic/mcollective.service.command",
 :callerid=>"cert=rip",
  :body=>
  {:agent => “service"
   :action => “status”,
   :service => “httpd”},
 :senderid=>"nephilim.ml.org",
 :hash=> "xxxx"}

         mc-service -W country=za httpd status
Request - RPC Request - RPC Body
{:msgtime=>1280271069,
 :filter=>
  {"identity"=>[],
   "fact"=>[{:value=>"za", :fact=>"country"}],
   "agent"=>["service"],
   "cf_class"=>[]},
 :requestid=>"3b57f528746828c9f77d2d1956b94eb9",
 :msgtarget=>"/topic/mcollective.service.command",
 :callerid=>"cert=rip",
 :body=>
  {:agent => “service"
   :action => “status”,
   :service => “httpd”},
 :senderid=>"nephilim.ml.org",
 :hash=> "xxxx"}

         mc-service -W country=za httpd status
Request - RPC Reply


{:msgtime=>1280272138,
 :requestid=>"3b57f528746828c9f77d2d1956b94eb9",
 :body=> {:statuscode => 0,
           :statusmsg => “OK”,
           :data{:status => “running"}}
 :senderagent=>"service",
 :senderid=>"my.machine.co.za",
 :hash=> "xxxxx",
 :msgtarget=>"/topic/mcollective.service.reply"}




        mc-service -W country=za httpd status

Contenu connexe

Dernier

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Dernier (20)

Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
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
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
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
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 

En vedette

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
Kurio // The Social Media Age(ncy)
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software
 

En vedette (20)

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...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 

Architecture, Flow and Terminology

  • 1. The Marionette Collective Middleware Concepts and Message Flow http://marionette-collective.org
  • 4. Delegate comms to Middleware
  • 5. Delegate comms to Middleware
  • 6. Delegate comms to Middleware
  • 7. Delegate comms to Middleware
  • 9. Types of Message - Queued
  • 10. Types of Message - Queued
  • 11. Types of Message - Broadcast
  • 12. The Marionette Collective Components and Terminology
  • 13. Nodes Physical servers being managed mcollective-0.4.7.noarch.rpm mcollective-common-0.4.7.noarch.rpm
  • 14. Server mcollectived The ruby based daemon on every node mcollective-0.4.7.noarch.rpm mcollective-common-0.4.7.noarch.rpm
  • 15. Agent service.rb Small ruby classes that manage services, packages, etc. Hosted by the mcollective-0.4.7.noarch.rpm server mcollective-common-0.4.7.noarch.rpm
  • 16. Client Include MCollective::RPC Any component that sends requests to servers. mcollective-client-0.4.7.noarch.rpm mcollective-common-0.4.7.noarch.rpm
  • 17. Collective Combination of nodes, servers, agents, middleware and clients
  • 18. Connectivity Plugin Communication between all components. Many possible. rubygem stomp
  • 19. The Marionette Collective Anatomy of a RPC request
  • 20. The Marionette Collective * Discover with filter * Send request with filter * Wait for responses matching discovery mc-service -W country=za httpd status
  • 21. Request - Discovery - Request ID {:msgtime=>1280270404, :requestid=>"a48b4f84d66ff0c30c621d544750a081", :msgtarget=>"/topic/mcollective.discovery.command", :callerid=>"cert=rip", :filter=> {"identity"=>[], "fact"=>[{:fact=>"country", :value=>"za"}], "agent"=>[“service”], "cf_class"=>[]}, :senderid=>"nephilim.ml.org", :body=>"ping", :hash=> "xxxxx"} mc-service -W country=za httpd status
  • 22. Request - Discovery - Target {:msgtime=>1280270404, :requestid=>"a48b4f84d66ff0c30c621d544750a081", :msgtarget=>"/topic/mcollective.discovery.command", :callerid=>"cert=rip", :filter=> {"identity"=>[], "fact"=>[{:fact=>"country", :value=>"za"}], "agent"=>[“service”], "cf_class"=>[]}, :senderid=>"nephilim.ml.org", :body=>"ping", :hash=> "xxxxx"} mc-service -W country=za httpd status
  • 23. Request - Discovery - Filter {:msgtime=>1280270404, :requestid=>"a48b4f84d66ff0c30c621d544750a081", :msgtarget=>"/topic/mcollective.discovery.command", :callerid=>"cert=rip", :filter=> {"identity"=>[], "fact"=>[{:fact=>"country", :value=>"za"}], "agent"=>[“service”], "cf_class"=>[]}, :senderid=>"nephilim.ml.org", :body=>"ping", :hash=> "xxxxx"} mc-service -W country=za httpd status
  • 24. Request - Discovery - Body {:msgtime=>1280270404, :requestid=>"a48b4f84d66ff0c30c621d544750a081", :msgtarget=>"/topic/mcollective.discovery.command", :callerid=>"cert=rip", :filter=> {"identity"=>[], "fact"=>[{:fact=>"country", :value=>"za"}], "agent"=>[“service”], "cf_class"=>[]}, :senderid=>"nephilim.ml.org", :body=>"ping", :hash=> "xxxxx"} mc-service -W country=za httpd status
  • 25. Request - Discovery - Reply {:msgtime=>1280270802, :requestid=>"a48b4f84d66ff0c30c621d544750a081", :senderagent=>"discovery", :body=>"pong", :senderid=>"my.machine.co.za", :msgtarget=>"/topic/mcollective.discovery.reply", :hash=> "xxx"} mc-service -W country=za httpd status
  • 26. Request - RPC Request - Filter {:msgtime=>1280271069, :filter=> {"identity"=>[], "fact"=>[{:value=>"za", :fact=>"country"}], "agent"=>["service"], "cf_class"=>[]}, :requestid=>"3b57f528746828c9f77d2d1956b94eb9", :msgtarget=>"/topic/mcollective.service.command", :callerid=>"cert=rip", :body=> {:agent => “service" :action => “status”, :service => “httpd”}, :senderid=>"nephilim.ml.org", :hash=> "xxxx"} mc-service -W country=za httpd status
  • 27. Request - RPC Request - Target {:msgtime=>1280271069, :filter=> {"identity"=>[], "fact"=>[{:value=>"za", :fact=>"country"}], "agent"=>["service"], "cf_class"=>[]}, :requestid=>"3b57f528746828c9f77d2d1956b94eb9", :msgtarget=>"/topic/mcollective.service.command", :callerid=>"cert=rip", :body=> {:agent => “service" :action => “status”, :service => “httpd”}, :senderid=>"nephilim.ml.org", :hash=> "xxxx"} mc-service -W country=za httpd status
  • 28. Request - RPC Request - RPC Body {:msgtime=>1280271069, :filter=> {"identity"=>[], "fact"=>[{:value=>"za", :fact=>"country"}], "agent"=>["service"], "cf_class"=>[]}, :requestid=>"3b57f528746828c9f77d2d1956b94eb9", :msgtarget=>"/topic/mcollective.service.command", :callerid=>"cert=rip", :body=> {:agent => “service" :action => “status”, :service => “httpd”}, :senderid=>"nephilim.ml.org", :hash=> "xxxx"} mc-service -W country=za httpd status
  • 29. Request - RPC Reply {:msgtime=>1280272138, :requestid=>"3b57f528746828c9f77d2d1956b94eb9", :body=> {:statuscode => 0, :statusmsg => “OK”, :data{:status => “running"}} :senderagent=>"service", :senderid=>"my.machine.co.za", :hash=> "xxxxx", :msgtarget=>"/topic/mcollective.service.reply"} mc-service -W country=za httpd status

Notes de l'éditeur