Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

34
Build a reverse proxy for modern immutable infrastructure Quentin ADAM - @waxzce

Transcript of Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

Page 1: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

Build a reverse proxy for modern immutable

infrastructure

Quentin ADAM - @waxzce

Page 2: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

Who am I ?Quentin ADAM from the Clever Cloud

@waxzce on twitter – github- soundcloud – instagram ….

Page 3: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

My day to day work : , the IT automation company

Page 4: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

Keep your apps online. made with node.js,scala, java, ruby, php, python, go…

Cloud & on premise

Page 5: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

And learn a lot of things about your code, apps, and good/bad design…

Page 6: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

Give back to the community

NEVER GONNA LET YOU DOWN

clever-cloud.com

Page 7: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

Automate infrastructure

Page 8: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

Immutable infrastructureFR : https://www.youtube.com/watch?v=WrZCbgQsPVU

EN : https://www.infoq.com/presentations/server-cloud

Page 9: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

Ephemeral instances

Page 10: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

Proxy needs

Page 11: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

Canary

• Using a sticky session mechanism

Page 12: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

Whatever routing

Page 13: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

Blue green

Page 14: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

Change configuration while running

Page 15: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

There is a problem

Page 16: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

Enter sozu

https://www.sozu.io/

Page 17: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

Rust

Page 18: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

Process architecture

Sozu http

Proxy controller

(optionnal sozutcp)

WAN

Backends

Page 19: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

Zero copy

Page 20: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

Predictable performances

Page 21: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

Change configuration at runtime

Page 22: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

Hot reloading VS hot conf change

Zoom in

Page 23: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

haproxy

Let’s go to the code & demo

https://github.com/waxzce/code-sample-talk-sozu

Page 24: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

haproxy

Let’s go to the code & demo

https://github.com/waxzce/code-sample-talk-sozu

Page 25: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

Traefik

https://github.com/waxzce/code-sample-talk-sozu

Page 26: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

Traefik

https://github.com/waxzce/code-sample-talk-sozu

Page 27: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

Envoy…

Page 28: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

No packet loss

Page 29: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

Using sozuSeveral managers :

- CLI sozu controller

- From file

- Tube cheese: get the configuration from traefic

Page 31: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

Thinking about http/2

Page 32: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

Next steps – more talksTechniques modernes pour l'écriture de serveurs performants (Geoffroy Couprie) 🇫🇷

https://www.youtube.com/watch?v=Cl_fqWZTYUA

Geoffroy Couprie - Sōzu, a hot reconfigurable reverse HTTP proxy 🇬🇧

https://www.youtube.com/watch?v=y4NdVW9sHtU

Page 33: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

Play with ithttps://www.sozu.io/

https://github.com/sozu-proxy

Page 34: Build a reverse proxy for modern immutable infrastructure - Sozu - Devops D Day 2017

Thank you

find me on twitter

@waxzce

Gift coupon for clever-cloud.com:

sgbbl2017