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
0
74
Mcollective Talk
A Mcollective talk i gave at Sydeney Devops
Stephen Johnson
March 20, 2013
Tweet
Share
More Decks by Stephen Johnson
See All by Stephen Johnson
Exported Configs == Better Puppet
stephenrjohnson
0
410
Introduction to Puppet
stephenrjohnson
0
95
Failing the correct way
stephenrjohnson
1
54
Love/Hate Puppet Melbourne
stephenrjohnson
2
430
Other Decks in Technology
See All in Technology
20251219 OpenIDファウンデーション・ジャパン紹介 / OpenID Foundation Japan Intro
oidfj
0
510
20251222_サンフランシスコサバイバル術
ponponmikankan
2
140
AWS運用を効率化する!AWS Organizationsを軸にした一元管理の実践/nikkei-tech-talk-202512
nikkei_engineer_recruiting
0
170
AIBuildersDay_track_A_iidaxs
iidaxs
4
1.4k
[2025-12-12]あの日僕が見た胡蝶の夢 〜人の夢は終わらねェ AIによるパフォーマンスチューニングのすゝめ〜
tosite
0
190
Strands AgentsとNova 2 SonicでS2Sを実践してみた
yama3133
1
1.9k
NIKKEI Tech Talk #41: セキュア・バイ・デザインからクラウド管理を考える
sekido
PRO
0
220
「もしもデータ基盤開発で『強くてニューゲーム』ができたなら今の僕はどんなデータ基盤を作っただろう」
aeonpeople
0
250
アプリにAIを正しく組み込むための アーキテクチャ── 国産LLMの現実と実践
kohju
0
230
Amazon Quick Suite で始める手軽な AI エージェント
shimy
2
1.9k
ハッカソンから社内プロダクトへ AIエージェント ko☆shi 開発で学んだ4つの重要要素
leveragestech
0
240
2025-12-18_AI駆動開発推進プロジェクト運営について / AIDD-Promotion project management
yayoi_dd
0
160
Featured
See All Featured
Art, The Web, and Tiny UX
lynnandtonic
304
21k
Deep Space Network (abreviated)
tonyrice
0
22
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
720
Agile that works and the tools we love
rasmusluckow
331
21k
The World Runs on Bad Software
bkeepers
PRO
72
12k
Leo the Paperboy
mayatellez
0
1.3k
Prompt Engineering for Job Search
mfonobong
0
130
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
6.7k
Exploring anti-patterns in Rails
aemeredith
2
210
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.1k
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