Voxxed Days Thessaloniki 2016 - Microservices in production

Preview:

Citation preview

Microservices inProduction

by Timo Derstappen CTO & Founder at Giant Swarm

Managed Microservice infrastructure

Fully-managed Kubernetes Datacenter Agnostic Enterprise Ready

Overview Microservices Container Infrastructures Why Metrics First? Metrics in Kubernetes Packaging up your apps Build to Evolve

Microservices Not a holy grail More a practice than an architecture

Mindset Use the right tool for the job Polyglot Automate Build, measure, learn

Benefits Separation of concerns Lock-free development between teams Independent technology decisions Iterate faster

Drawbacks No free lunch Complexity doesn't go away

Resilient, globally distributed services

Architectural Decisions REST vs MQ Reads, Writes, Throughput Latency, Availability MTTR, MTTF

Overview Microservices Container Infrastructures Why Metrics First? Metrics in Kubernetes Packaging up your apps Build to Evolve

APIs everywhere Software defined Everything Everything is code

Intent-driven Policy-based infrastructure Primitives over Frameworks

Kubernetes

Prometheus

pull metrics

HDD /SSD

Pushgateway

Short-livedjobs

Jobs /Exporters

StorageRetrieval PromQL

PrometheusServer

Node

ServiceDiscovery

             find                  targets

PrometheusServer

Alertmanager

push alerts         

Web UI

PromDash

Grafana

API clients

PagerDuty Email

DNSKubernetesConsul...Custom integration

              notify

...

API

Cluster Service

Certificate Service

ConfigurationService

KubernetesService

userd tokend companyd clusterd

etcd

G8s APIG8s Scheduler

G8s ControllerManager

etcd

G8s SchedulerG8s Scheduler

G8s Kubelets

K8s Masters

K8s Workers

Quobyte

etcd

Vault

K8s API IngressK8s Masters

K8s Masters

K8s WorkersK8s Workers

Cluster Admin

Customer CD

Developer

Ingress Controller INTERNET

G8s

K8s

Mayu

MGMT

Secret Service

Domain Validation

Calico

Flannel

FlannelFlannel

Flannel

Chicken & Egg Infrastructures itself are Microservices Same principles for underlying platform

The SRE was born

Overview Microservices Container Infrastructures Why Metrics First? Metrics in Kubernetes Packaging up your apps Build to Evolve

Data-driven

"You build it, you run it"

How to own something youhaven't build?

Excursus: HomeOpsHeating Dashboard

 

Ownership3rd party software without an owner

=> Legacy from day one

With Metrics youwork on the right thingswork on the important thingswhich improves quality and speed

AirbnbValuation: $30b$900m revenue last year500 experiments per week on the platform (=Software updates)2000 metrics tracked to improve bookings andconversion rate

Overview Microservices Container Infrastructures Why Metrics First? Metrics in Kubernetes Packaging up your apps Build to Evolve

Metrics in K8sMany tools and productsIntegrated into service discoveryCluster drill downFiltering via labels

 

Overview Microservices Container Infrastructures Why Metrics First? Metrics in Kubernetes Packaging up your apps Build to Evolve

All Batteries included?Container imageService definitionMetrics endpointDashboardsLabels

StandardsCNCF creates recommendations - not standardslabel-schema.orgKubernetes SIG AppsEstablish your conventions for labels & metrics

Overview Microservices Container Infrastructures Why Metrics First? Metrics in Kubernetes Packaging up your apps Build to Evolve

It's 2016! Agile Test driven Clean code

EncourageEvaluate & ExperimentMeasure & LearnRetrospective & PostmortemsTechnical Wealth

CollaborateArchitecture ReviewsLet the team find their goalsDraw together

CELEBRATEMORE!

Thanks for listening!Timo Derstappen

@teemow