More Related Content
Similar to Sysops cu Chef
Similar to Sysops cu Chef (20)
Sysops cu Chef
- 2. Intro
1. Chef: ce problema rezolva si cum o
rezolva
2. Un mod usor de a incerca Chef
3. Folosire Chef la infrastructura
pentru inceput
- 8. Rails app
• Nginx • Solr
• Unicorn • Monit
• Rails • Cron
• MySQL • Amazon EC2
• Redis • Ubuntu
• Memcache • Sysadmin: Gigel
- 17. Take #3
Load balancer
App 1 App 2 App 3 App 4
Cache 1 Cache 2
Index 1 DB Master Redis Master
Cache 3
Slave 1 Slave 2 Slave
- 19. Chef server
Node. Role:
LB
Node. Role: App Node. Role: App Node. Role: App Node. Role: App
Cache 1 Cache 2
Index 1 DB Master Redis Master
Cache 3
Slave 1 Slave 2 Slave
- 20. Cookbooks
Chef Server
Roles
Data Bags
Cookbooks Nodes
Nodes
Data Bags
Roles
Node
(chef-client)
Commands
Node Node
knife (chef-client) (chef-client)
(chef-client)
- 21. Chef Server
• HTTP API
‣ knife
‣ chef-solo
• CouchDB
‣ cookbooks: libraries, attributes, definitions, recipes
‣ nodes
‣ roles
‣ data bags
• RabbitMQ
• Solr
• Web UI
- 22. chef-client run
• Convergence
‣ Build, Register, and Authenticate the Node
‣ Synchronize Cookbooks
• Compile
‣ Assemble Libraries, Attributes, Definitions, Recipes
• Execute
‣ Converge
‣ Save node
‣ Run notifications
- 30. Vagrant
Apache
MySQL
Memcache
Redis
`pwd` /vagrant
Guest OS (VirtualBox): Linux
Host OS: Windows, OSX, Linux
Editor's Notes
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n