Upload
thomas-witt
View
467
Download
0
Embed Size (px)
DESCRIPTION
My Talk at the Cloud Developer Camp Berlin about «Servers Are Software» - how to architect cloud infrastructures by regarding servers as disposable commodities, written in code. See the talk live: http://www.youtube.com/watch?v=5zcofv8v9A4
Citation preview
Servers are Software
http://www.flickr.com/photos/threemilesdwn/376943774
Cloud is astate of mind
http://www.flickr.com/photos/atomische/4620927275
What do you associate with„The Cloud™“?
EC2
It‘s not onlyabout elastic
Servers are Software
A service commodity, disposable at your will
Deployment
Dev > Test > Production… in the good old days
“How many servers do we need?Which OS?Other installed software?Which database?Which version?…
http://www.flickr.com/photos/reuvenim/8630996804
http://www.flickr.com/photos/hjmediastudios/7883634326
Integration Testing
http://www.flickr.com/photos/davedehetre/5355394857
Automatization
http://www.flickr.com/photos/tracer/97406346
Sysadmin = root
Installation documentation =Know what‘s on your hard drive
Servers are software
written in code and checked in
Welcome to DevOps.
Images and EBSElastic Block Storage
package("monit")
cookbook_file("/etc/default/monit") do source("monit.default") owner("root") group("root") mode(0644)end
service("monit") do action(:start) enabled(true) supports([:start, :restart, :stop])end
require_recipe "apache2"
remote_directory "/usr/local/build/mod_xsendfile" do source "mod_xsendfile"end
execute "build and install mod_xsendfile" do command "cd /usr/local/build/mod_xsendfile && apxs2 -ci mod_xsendfile.c" not_if { File.exists?("/usr/lib/apache2/modules/mod_xsendfile.so") }end
template "/etc/apache2/mods-available/xsendfile.load" do source "xsendfile.load.erb"end
apache_module "xsendfile"
/var/log/apache2/*.log { <%= node[:apache][:logrotate][:schedule] %> missingok rotate <%= node[:apache][:logrotate][:rotate] %> compress <% if node[:apache][:logrotate][:delaycompress] -%> delaycompress <% end -%> copytruncate notifempty create <%= node[:apache][:logrotate][:mode] %> <%= node[:apache][:logrotate][:owner] %> <%= node[:apache][:logrotate][:group] %>}
OpsWorks
Coded with Chef
Administered by Developers
Lifetime: One Deployment, maybe
Servers are Software
http://www.flickr.com/photos/elidr/6625760939
Cloud != Hosting
New Dev ApproachFaster and more elastic development