Top Banner
STUPS A Cloud Infrastructure for Autonomous Teams [email protected] / @try_except_ AWS Ireland Meet Up #9
35

STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015

Jan 18, 2017

Download

Technology

Henning Jacobs
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015

STUPSA Cloud Infrastructure for Autonomous [email protected] / @try_except_AWS Ireland Meet Up #9

Page 2: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015

Henning Jacobs

● STUPS Hacker

● Twitter: @try_except_

[email protected]

Page 3: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015

15 countries3 fulfillment centers15+ million active customers2.2+ billion € revenue 2014130+ million visits per month8.000+ employees

ONE OF EUROPE’S LARGEST ONLINE FASHION RETAILERS

Page 4: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015
Page 5: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015

A BRIEF HISTORY OF ZALANDOTECHNOLOGY

Page 6: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015
Page 7: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015
Page 8: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015

RADICAL AGILITY

Page 9: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015

Autonomy

Page 10: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015

Compliance Innovation

Page 11: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015

AWS

STUPS

DOCKERDEPLOY

SSH ACCESS

AUDIT REPORTS

FULL AWS ACCESS

STUPS: A PLATFORM ON TOP OF AMAZON WEB SERVICES

Page 12: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015

Internet

*.abc.example.org *.xyz.example.org

Team ABC Team XYZ

ISOLATED AWS ACCOUNTS

EC2EC2

ELBELB

EC2

Page 13: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015

DEPLOYMENT

Page 14: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015

IMMUTABLE STACKS

ELB myapp-1

myapp.example.org

EC2+ Docker

EC2+ Docker

EC2+ Docker

Page 15: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015

IMMUTABLE STACKS

ELB myapp-1

EC2+ Docker

EC2+ Docker

EC2+ Docker

ELB myapp-2

EC2+ Docker

EC2+ Docker

myapp.example.org

Page 16: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015

AWS

DEPLOYMENT WITH SENZA

Senza CLI

Pier One

docker pull

docker push

Taupage

Page 17: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015

https://asciinema.org/a/25668

DEPLOYMENT

Page 18: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015

SENZA: DEFINITION YAML

SenzaInfo:

StackName: hello-world

Parameters:

- ImageVersion:

Description: "Docker image version of Hello World."

SenzaComponents:

- Configuration:

Type: Senza::StupsAutoConfiguration # auto-detect network setup

- AppServer: # will create a launch configuration and ASG with scaling triggers

Type: Senza::TaupageAutoScalingGroup

InstanceType: t2.micro

SecurityGroups: [app-hello-world]

ElasticLoadBalancer: AppLoadBalancer

TaupageConfig:

runtime: Docker

source: "stups/hello-world:{{Arguments.ImageVersion}}"

ports:

8080: 8080

Page 19: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015

SENZA: STACK DEPLOYMENT

$ senza create hello-world.yaml 1 0.2

Generating Cloud Formation template.. OK

Creating Cloud Formation stack hello-world-1.. OK

$ senza events hello-world.yaml 1Stack Name│Ver.│Resource Type │Resource ID │Status │Status Reason │Event Time

hello-world 1 CloudFormation::Stack hello-world-1 CREATE_IN_PROGRESS User Initiated 10m ago

...

hello-world 1 CloudFormation::Stack hello-world-1 CREATE_COMPLETE 6m ago

Page 20: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015

SENZA: MANAGE STACKS

Page 21: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015

LOGGING

Page 22: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015
Page 23: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015

SSH ACCESS

Page 24: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015

https://asciinema.org/a/25671

SSH ACCESS

Page 25: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015

SSH ACCESS: TIME-LIMITED ACCESS TO ANY TEAM SERVER

Page 26: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015

MONITORING

Page 27: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015

TODO: Screenshot

ZMON

Page 28: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015

ZMON APPLIANCE

*.foo.example.org *.bar.example.org

Team “Foo” Team “Bar”

EC2Instance

EC2InstanceEC2

InstanceEC2

Instance

ZMON Appliance

ZMON Appliance

KairosDB

EC2Instance

EC2Instance

ZMONController

ELB ELB

Page 29: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015

● Immutable AMI● YAML user data● Docker runtime● Application logging:

LogEntries, Scalyr, CloudWatch Logs

● KMS encrypted env vars

TAUPAGE AMI

Page 30: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015

● 800+ in Zalando Tech

● 90+ AWS Accounts

● 160+ Applications

SOME NUMBERS..

Page 31: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015

● Taupage AMI with Docker runtime

● Senza to manage Cloud Formation

● Pier One Docker Registry with S3

http://docs.stups.io/en/latest/user-guide/standalone-deployment.html

WHAT YOU MIGHT FIND VALUABLE..

Page 32: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015

Questions?STUPS Frontpagestups.ioGitHub Repositoriesgithub.com/zalando-stups

tech.zalando.com@try_except_

Page 33: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015

BACKUP

Page 34: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015

Docker Registry

build

approved

EC2 Instance

Docker Container

Ticket System

Application Registry

SCM

Docker ImageTicket

Commit

TRACEABILITY

Application Version

Page 35: STUPS by Zalando @ AWS User Group Ireland Meet Up September 2015

STUPS COMPONENTS