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
Aurora DSQLはサーバーレスアーキテクチャの常識を変えるのか
iwatatomoya
1
1.2k
AIの最新技術&テーマをつまんで紹介&フリートークするシリーズ:はじめてのローカルLLM
stanaka26
0
120
中間管理職をなくしたら何が起きたか 〜AI時代の組織変革と3つの失敗〜
staka121
PRO
1
140
品質視点から考える組織デザイン/Organizational Design from Quality
mii3king
0
220
Claude Code でアプリ開発をオートパイロットにするためのTips集 Zennの場合 / Claude Code Tips in Zenn
wadayusuke
6
3.5k
『ホットペッパービューティー』のiOSアプリをUIKitからSwiftUIへ段階的に移行するためにやったこと
recruitengineers
PRO
1
120
使いやすいプラットフォームの作り方 ー LINEヤフーのKubernetes基盤に学ぶ理論と実践
lycorptech_jp
PRO
2
200
「どこから読む?」コードとカルチャーに最速で馴染むための実践ガイド
zozotech
PRO
0
590
Rustから学ぶ 非同期処理の仕組み
skanehira
1
160
サラリーマンの小遣いで作るtoCサービス - Cloudflare Workersでスケールする開発戦略
shinaps
2
480
「全員プロダクトマネージャー」を実現する、Cursorによる仕様検討の自動運転
applism118
22
12k
開発者を支える Internal Developer Portal のイマとコレカラ / To-day and To-morrow of Internal Developer Portals: Supporting Developers
aoto
PRO
1
490
Featured
See All Featured
Done Done
chrislema
185
16k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.6k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
Being A Developer After 40
akosma
90
590k
GraphQLの誤解/rethinking-graphql
sonatard
72
11k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Six Lessons from altMBA
skipperchong
28
4k
Fireside Chat
paigeccino
39
3.6k
Music & Morning Musume
bryan
46
6.8k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.6k
Side Projects
sachag
455
43k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
31
2.2k
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