Slide 1

Slide 1 text

@errordeveloper Time Traveling in the Universe of Microservices and Orchestration

Slide 2

Slide 2 text

outline: 1. my journey in software

Slide 3

Slide 3 text

outline: 2. where are we today

Slide 4

Slide 4 text

containers?

Slide 5

Slide 5 text

1. packages

Slide 6

Slide 6 text

2. resources

Slide 7

Slide 7 text

university life

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

root #

Slide 10

Slide 10 text

root # chroot /mnt/gentoo /bin/bash

Slide 11

Slide 11 text

root # chroot /mnt/gentoo /bin/bash root # source /etc/profile

Slide 12

Slide 12 text

root # chroot /mnt/gentoo /bin/bash root # source /etc/profile root #

Slide 13

Slide 13 text

root # chroot /mnt/gentoo /bin/bash root # source /etc/profile root # export PS1="(chroot) $PS1"

Slide 14

Slide 14 text

root # chroot /mnt/gentoo /bin/bash root # source /etc/profile root # export PS1="(chroot) $PS1" (chroot) root #

Slide 15

Slide 15 text

root # chroot /mnt/gentoo /bin/bash root # source /etc/profile root # export PS1="(chroot) $PS1" (chroot) root # emerge \ --ask \ --update \ --deep \ --newuse \ @world

Slide 16

Slide 16 text

root # man nice

Slide 17

Slide 17 text

>

Slide 18

Slide 18 text

> ./configure \ --prefix=/opt/${PN}-${PV} \ --with--path=… > make && make install

Slide 19

Slide 19 text

>

Slide 20

Slide 20 text

> make CC=

Slide 21

Slide 21 text

> make CC=arm-none-eabi-gcc

Slide 22

Slide 22 text

> make CC=arm-none-eabi-gcc \ LD=arm-none-eabi-ld

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

> module load gcc/6.1.1 > which gcc /usr/local/gcc/6.1.1/linux-x86_64/bin/gcc > module unload gcc > which gcc gcc: Command not found. http://modules.sourceforge.net

Slide 25

Slide 25 text

http://modules.sourceforge.net

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

work life

Slide 29

Slide 29 text

shared hosting

Slide 30

Slide 30 text

shared hosting

Slide 31

Slide 31 text

devops hammer

Slide 32

Slide 32 text

#!/bin/bash -eu git clone $repo $dir cd $dir puppet apply manifest.pp

Slide 33

Slide 33 text

# add this to your profile [[ -s $HOME/.rvm/scripts/rvm ]] \ && source $HOME/.rvm/scripts/rvm # you will get $PATH modified on chdir cd(){ builtin cd $* source after_cd_hooks }

Slide 34

Slide 34 text

> sudo apt-get install rubygems > sudo gem install bundler > cd /opt/$myapp > bundle install

Slide 35

Slide 35 text

> sudo apt-get install python-pip > sudo pip install --upgrade pip > cd /opt/$myapp > pip install -r requirements.txt

Slide 36

Slide 36 text

> sudo apt-get install nodejs > cd /opt/$myapp > npm install

Slide 37

Slide 37 text

> cap deploy:production

Slide 38

Slide 38 text

> cap break:production

Slide 39

Slide 39 text

No content

Slide 40

Slide 40 text

> my_vm="$(vm take)” > vm ssh “${my_vm}”

Slide 41

Slide 41 text

> my_vm="$(vm take)” > vm ssh “${my_vm}” vm-012345> # do work

Slide 42

Slide 42 text

> my_vm="$(vm take)” > vm ssh “${my_vm}” vm-012345> # do work > vm kill "${my_vm}"

Slide 43

Slide 43 text

docker goes viral

Slide 44

Slide 44 text

today

Slide 45

Slide 45 text

Weave Net app overlay network

Slide 46

Slide 46 text

host2 host1 8083 8083 8081 8082

Slide 47

Slide 47 text

host2 host1 8081 8082 8083 8083 8081 8082

Slide 48

Slide 48 text

host2 host1 8081 8082 8083 8083 8081 8082 9083 9081 9082

Slide 49

Slide 49 text

host2 host1 8081 8082 8083 8083 8081 8082 9083 9081 9081 8084 8084

Slide 50

Slide 50 text

$ORIGIN example.com $TTL 86400 @ IN SOA dns1.example.com. hostmaster.example.com. ( 2001062501 ; serial 21600 ; refresh after 6 hours 3600 ; retry after 1 hour 604800 ; expire after 1 week 86400 ) ; minimum TTL of 1 day IN NS dns1.example.com. IN NS dns2.example.com. IN MX 10 mail.example.com. IN MX 20 mail2.example.com. IN A 10.0.1.5 server1 IN A 10.0.1.5 server2 IN A 10.0.1.7 dns1 IN A 10.0.1.2 dns2 IN A 10.0.1.3 ftp IN CNAME server1 mail IN CNAME server1 mail2 IN CNAME server2 www IN CNAME server2

Slide 51

Slide 51 text

$ORIGIN example.com $TTL 86400 @ IN SOA dns1.example.com. hostmaster.example.com. ( 2001062501 ; serial 21600 ; refresh after 6 hours 3600 ; retry after 1 hour 604800 ; expire after 1 week 86400 ) ; minimum TTL of 1 day IN NS dns1.example.com. IN NS dns2.example.com. IN MX 10 mail.example.com. IN MX 20 mail2.example.com. IN A 10.0.1.5 server1 IN A 10.0.1.5 server2 IN A 10.0.1.7 dns1 IN A 10.0.1.2 dns2 IN A 10.0.1.3 ftp IN CNAME server1 mail IN CNAME server1 mail2 IN CNAME server2 www IN CNAME server2 642 pages

Slide 52

Slide 52 text

host2 host1 8080 8080 8080 8080 8080 8080 8080 8080 8080 8080 8080 Weave Net

Slide 53

Slide 53 text

host2 host1 8080 8080 8080 8080 8080 8080 8080 8080 8080 8080 8080 denied! NetworkPolicy

Slide 54

Slide 54 text

Weave Scope distributed observability

Slide 55

Slide 55 text

No content

Slide 56

Slide 56 text

No content

Slide 57

Slide 57 text

No content

Slide 58

Slide 58 text

app runtime metadata and APIs

Slide 59

Slide 59 text

> ps -ef | grep java java -jar /opt/myapp-v2.jar > stat -c %y /opt/myapp-v2.jar 2005-06-25 17:52:40.000000000

Slide 60

Slide 60 text

filter containers by image & sort by count

Slide 61

Slide 61 text

examine relationship between containers e.g. front-end & load-test

Slide 62

Slide 62 text

examine memory usage of related microservices and time travel!

Slide 63

Slide 63 text

here’s what it did last night!

Slide 64

Slide 64 text

easily check if a container works correctly e.g. load-test is still running without errors

Slide 65

Slide 65 text

GitOps API-driven deployments

Slide 66

Slide 66 text

every deploy action is checked in git

Slide 67

Slide 67 text

every deploy action is checked in git e.g. locking a service stores an annotation

Slide 68

Slide 68 text

every deploy action is checked in git e.g. locking a service stores an annotation

Slide 69

Slide 69 text

correlate metrics with deployments

Slide 70

Slide 70 text

find changes that affected the metrics

Slide 71

Slide 71 text

live demo: using Weave Cloud with DC/OS & Kubernetes

Slide 72

Slide 72 text

cloud.weave.works

Slide 73

Slide 73 text

[email protected] slack.weave.works

Slide 74

Slide 74 text

meetup.com/pro/Weave