Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Mcollective Talk
Search
Stephen Johnson
March 20, 2013
Technology
76
0
Share
Mcollective Talk
A Mcollective talk i gave at Sydeney Devops
Stephen Johnson
March 20, 2013
More Decks by Stephen Johnson
See All by Stephen Johnson
Exported Configs == Better Puppet
stephenrjohnson
0
420
Introduction to Puppet
stephenrjohnson
0
97
Failing the correct way
stephenrjohnson
1
56
Love/Hate Puppet Melbourne
stephenrjohnson
2
440
Other Decks in Technology
See All in Technology
「活動」は激変する。「ベース」は変わらない ~ 4つの軸で捉える_AI時代ソフトウェア開発マネジメント
sentokun
0
140
Kiro Meetup #7 Kiro アップデート (2025/12/15〜2026/3/20)
katzueno
2
270
AIエージェント勉強会第3回 エージェンティックAIの時代がやってきた
ymiya55
0
180
ブラックボックス化したMLシステムのVertex AI移行 / mlops_community_62
visional_engineering_and_design
1
240
Oracle AI Database@Google Cloud:サービス概要のご紹介
oracle4engineer
PRO
5
1.3k
FASTでAIエージェントを作りまくろう!
yukiogawa
4
180
Zephyr(RTOS)でARMとRISC-Vのコア間通信をしてみた
iotengineer22
0
110
【AWS】CloudTrail LakeとCloudWatch Logs Insightsの使い分け方針
tsurunosd
0
130
Oracle AI Database@AWS:サービス概要のご紹介
oracle4engineer
PRO
3
2k
AI時代のIssue駆動開発のススメ
moongift
PRO
0
320
15年メンテしてきたdotfilesから開発トレンドを振り返る 2011 - 2026
giginet
PRO
2
250
会社紹介資料 / Sansan Company Profile
sansan33
PRO
16
410k
Featured
See All Featured
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
140
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
240
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.5k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
700
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
110
Google's AI Overviews - The New Search
badams
0
950
Java REST API Framework Comparison - PWX 2021
mraible
34
9.2k
We Are The Robots
honzajavorek
0
210
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
1.9k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.2k
Designing for Timeless Needs
cassininazir
0
180
30 Presentation Tips
portentint
PRO
1
260
Transcript
Marionette Collective The awesomeness that is Wednesday, 20 March 13
What is it • Framework for system management (getting stuff
done) • Orchestration • Real time interrogation Wednesday, 20 March 13
Luke Kaynes •“MCollective is like a chainsaw, taped to a
chainsaw, swinging in the air. Wednesday, 20 March 13
What can it do • System Discovery • Task execution
• Inventory Collection • Configuration / Package management (Puppet) Wednesday, 20 March 13
So why is it cool • No centralized inventory (real
time) • Super scale • Framework for creating more stuff • Asynchronous Wednesday, 20 March 13
How • One client • Provides data • executes tasks
• applies filters Wednesday, 20 March 13
Build blocks • Mcollective • Message Que • RPC •
Client • Topic • Middleware • Server • Broker • Agent Wednesday, 20 March 13
What does that mean • Sender • Receiver • Request
- message • Message transfer (Activemq) • Response - message Wednesday, 20 March 13
Example • Client(Sender) -> Middleware (ActiveMq) - > Server (Agent)
• Example • mco ping --with-fact Kernel=linux • Facter is used • All machines receive the message Wednesday, 20 March 13
What is activemq • Data store that you can write
and read from • Like email • You subscribe to a topic Wednesday, 20 March 13
Mcollective • The software than uses the middleware • Agent
performs operation based on the message Wednesday, 20 March 13
Client • Process running on your server • Has many
agents to perform commands • Send the output back to the client • Mcollective has in build filtering Wednesday, 20 March 13
Agents cont • You can write agents • SimpleRPC (Framework)
• Written in ruby Wednesday, 20 March 13
Running an agent • mco rpc (agentname) (action) --with-fact (factname)
= (value) • mco rpc nrpe runcommand command=check-load --with-fact kernel=linux Wednesday, 20 March 13
NRPE Mcollective mco rpc nrpe runcommand command=check-load --with-fact kernel=linux *
[ ============================================================> ] 3 / 3 Finished processing 3 hosts in 329.93 ms OK: 3 WARNING: 0 CRITICAL: 0 UNKNOWN: 0 }}} Wednesday, 20 March 13
By default it only shows the problems: {{{ % mco
nrpe check_disks * [ ============================================================> ] 43 / 43 your.box.net status=CRITICAL Finished processing 43 hosts in 439.98 ms OK: 42 WARNING: 0 CRITICAL: 1 UNKNOWN: 0 }}} Wednesday, 20 March 13
To see all the statusses: {{{ % mco nrpe -‐W
/dev_server/ check_load -‐v Determining the amount of hosts matching filter for 2 seconds .... 3 * [ ============================================================> ] 3 / 3 dev1.your.net status=OK OK -‐ load average: 0.00, 0.00, 0.00 dev2.your.net status=OK OK -‐ load average: 0.00, 0.00, 0.00 dev3.your.net status=OK OK -‐ load average: 0.00, 0.00, 0.00 -‐-‐-‐-‐ check_load NRPE results -‐-‐-‐-‐ Nodes: 3 Pass / Fail: 3 / 0 Start Time: Tue Dec 29 22:24:10 +0000 2009 Discovery Time: 2006.46ms Agent Time: 334.85ms Total Time: 2341.31ms Nagios Statusses: OK: 3 WARNING: 0 CRITICAL: 0 UNKNOWN: 0 Wednesday, 20 March 13
Orchestration • We want to upgrade our server to x
version of the software • If its all good then we upgrade more Wednesday, 20 March 13
Problem • Find the loadbalancers • Find the webservers in
the cluster • Make sure the loadbalancers are alive • Mark the webserver as down • Upgrade the application • Use nrpe to make sure its all good • Mark the webservers as alive • Rinse and repeat Wednesday, 20 March 13
The code Wednesday, 20 March 13