puppet camp tokyo 2014: puppet is most of your documentation

Post on 10-May-2015

383 Views

Category:

Software

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

"Puppet Is Most of Your Documentation" presented at Puppet Camp Tokyo 2014 by David Mytton, Server Density.

TRANSCRIPT

36 point日本語(にほんご)

48 point white on black

Puppet is most of your documentation!

David MyttonPuppet Camp Tokyo - May 2014

blog.serverdensity.jp

David Mytton

ウェブサイト及びサーバー監

視の プレミアム製品

Server Density Architecture

● ~100 servers - Ubuntu 12.04

● 50:50 virtual/dedicated

● Softlayer > Google Cloud

● Nginx, Python, MongoDB

● 30TB/m incoming data

How we use Puppet

● Infrastructure

● Config

● Failover

● Deploys

How we use Puppet

Puppet is the source of truth

It knows all our servers, where they are, their health status, how they are configured

and what is installed.

How we use Puppet

● Infrastructure

● Config

● Failover

● Deploys

Infrastructure

Infrastructure

gce_instance { 'totoro-1':

ensure => present,

machine_type => 'n1-standard-1',

zone => 'asia-east1-a',

network => 'default',

image => 'backports-debian-7-wheezy',

}

Infrastructure

● gce_instance

● gce_firewall

● gce_httphealthcheck

● gce_targetpool

● ...

Infrastructure

Infrastructure

● Why?

● Defined in code

● All under version control

● Changes applied consistently

● Easy for others to understand

Config

● Packages

● Versions (pinning)

● Config files

● Tweaks, fixes, patches

Config

Versions (pinning)

Config

Tweaks, fixes, patches

Config

● Why?

● Defined in code

● All under version control

● Changes applied consistently

● Easy for others to understand

Failover

● Nginx load balancer pools

● IPs stored in Puppet

● Console rake API

Failover

● Why?

● Defined in PuppetDB

● GET/SET via API or UI

● Changes applied consistently

● Easy for others to understand

Deploys

Deploys

Deploys

Deploys

/opt/puppet/bin/mco puppetd runonce -I <host>

How we use Puppet

● Infrastructure

● Config

● Failover

● Deploys

} The Docs

ご興味がありましたら、新たに開設した日本語のブログもご覧下さい。

● GoogleコンピュートエンジンでのMongoDBー -ヒ

ントとベンチマーク評価

● 当社の時系列グラフを支える技術 – 一日に20億、月に30TBに及ぶドキュメント

blog.serverdensity.jp

日本語のツイッターのアカウントもフォローして

下さい。

@serverdensityjp

どもありがとうございます

@davidmytton

david@serverdensity.com

blog.serverdensity.jp

top related