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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Stephen Johnson
March 20, 2013
Technology
0
75
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
55
Love/Hate Puppet Melbourne
stephenrjohnson
2
440
Other Decks in Technology
See All in Technology
Introduction to Bill One Development Engineer
sansan33
PRO
0
350
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
3.8k
Claude Codeベストプラクティスまとめ
minorun365
52
29k
Exadata Database Service ソフトウェアのアップデートとアップグレードの概要
oracle4engineer
PRO
1
1.2k
あたらしい上流工程の形。 0日導入からはじめるAI駆動PM
kumaiu
2
370
Databricks Free Edition講座 データサイエンス編
taka_aki
0
240
名刺メーカーDevグループ 紹介資料
sansan33
PRO
0
1k
漸進的過負荷の原則
sansantech
PRO
3
420
MySQLのJSON機能の活用術
ikomachi226
0
110
ReproでのicebergのStreaming Writeの検証と実運用にむけた取り組み
joker1007
0
510
変化するコーディングエージェントとの現実的な付き合い方 〜Cursor安定択説と、ツールに依存しない「資産」〜
empitsu
3
220
最速で価値を出すための プロダクトエンジニアのツッコミ術
kaacun
1
390
Featured
See All Featured
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
75
Accessibility Awareness
sabderemane
0
44
Mobile First: as difficult as doing things right
swwweet
225
10k
The agentic SEO stack - context over prompts
schlessera
0
610
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.3k
Building Adaptive Systems
keathley
44
2.9k
The Curious Case for Waylosing
cassininazir
0
230
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.6k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
170
Measuring & Analyzing Core Web Vitals
bluesmoon
9
740
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
59
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
85
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