Servers Are Software

Post on 05-Dec-2014

467 views 0 download

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

Transcript of Servers Are Software

Cloud Developer Camp Berlin, 2013-07-14

Thomas Witt <thomas.witt@infopark.de>

Cloud Architecture

Servers are Software

http://www.flickr.com/photos/threemilesdwn/376943774

Cloud is astate of mind

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?…

Integration Testing

Automatization

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