puppet camp tokyo 2014: puppet is most of your documentation

28
36 point 日本語(にほんご) 48 point white on black

Upload: puppet-labs

Post on 10-May-2015

383 views

Category:

Software


0 download

DESCRIPTION

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

TRANSCRIPT

Page 1: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation

36 point日本語(にほんご)

48 point white on black

Page 2: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation

Puppet is most of your documentation!

David MyttonPuppet Camp Tokyo - May 2014

blog.serverdensity.jp

Page 3: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation

David Mytton

Page 4: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation

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

視の プレミアム製品

Page 5: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation

Server Density Architecture

● ~100 servers - Ubuntu 12.04

● 50:50 virtual/dedicated

● Softlayer > Google Cloud

● Nginx, Python, MongoDB

● 30TB/m incoming data

Page 6: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation

How we use Puppet

● Infrastructure

● Config

● Failover

● Deploys

Page 7: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation

How we use Puppet

Page 8: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation

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.

Page 9: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation

How we use Puppet

● Infrastructure

● Config

● Failover

● Deploys

Page 10: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation

Infrastructure

Page 11: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation

Infrastructure

gce_instance { 'totoro-1':

ensure => present,

machine_type => 'n1-standard-1',

zone => 'asia-east1-a',

network => 'default',

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

}

Page 12: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation

Infrastructure

● gce_instance

● gce_firewall

● gce_httphealthcheck

● gce_targetpool

● ...

Page 13: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation

Infrastructure

Page 14: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation

Infrastructure

● Why?

● Defined in code

● All under version control

● Changes applied consistently

● Easy for others to understand

Page 15: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation

Config

● Packages

● Versions (pinning)

● Config files

● Tweaks, fixes, patches

Page 16: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation

Config

Versions (pinning)

Page 17: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation

Config

Tweaks, fixes, patches

Page 18: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation

Config

● Why?

● Defined in code

● All under version control

● Changes applied consistently

● Easy for others to understand

Page 19: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation

Failover

● Nginx load balancer pools

● IPs stored in Puppet

● Console rake API

Page 20: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation

Failover

● Why?

● Defined in PuppetDB

● GET/SET via API or UI

● Changes applied consistently

● Easy for others to understand

Page 21: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation

Deploys

Page 22: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation

Deploys

Page 23: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation

Deploys

Page 24: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation

Deploys

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

Page 25: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation

How we use Puppet

● Infrastructure

● Config

● Failover

● Deploys

} The Docs

Page 26: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation

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

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

ントとベンチマーク評価

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

blog.serverdensity.jp

Page 27: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation

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

下さい。

@serverdensityjp

Page 28: Puppet Camp Tokyo 2014: Puppet Is Most of Your Documentation

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

@davidmytton

[email protected]

blog.serverdensity.jp