NOT YOUR PARENTS’
LOADBALANCER
Chiradeep Vittal
ContainerCon 2016
About me
¨ Distinguished Engineer
at Citrix
¨ Apache CloudStack
PMC
¨ Work on Citrix
Netscaler and
containers
Load balancers are important (again)
¨ Containers and Microservices
¨ Teaching old load balancers new tricks
¨ Emerging patterns for Load Balancing
¨ Future directions
A brief history of Load balancing
Internet
W W
High Availability
Internet
W W WW
HA + Load Balancing
Internet
Webserver
A brief history of Load balancing
Internet
W WW
App 1 App 2
W WW
foo.com/app1 foo.com/app2
L7 routing
Internet
W WW
SSL Traffic
Unencrypted Traffic
Internet
W WW
App Firewall
What LB-in-the-wire enables
¨ Resilience
¨ Encryption offload
¨ Application acceleration
¨ Defend L4à L7
¨ L7 routing
¨ Application Performance Analytics
Load Balancing Form Factors
Hardware Software
VM
Virtual As-a-service Containerized
What’s Changed?
Time
Web
Digital
Social
Mobile
Things
Smart Things
RateofChange
What’s changed?
¨ DevOps + Automation
¨ Microservices /
Containers
Image by BMW Werk Leipzig - http://bmw-werk-leipzig.de, CC BY-SA 2.0 de
Containers or Microservices?
¨ Microservices ==
architecture
¨ Containers ==
implementation
¨ Containers win over
VMs for Microservices
Monoliths vs. Microservices
LB
Web
Data
Load Balancing: Traditional vs. Cloud Native
Static Applications, well
defined topology
Dynamic Microservices,
changing topology
W W W
A A A A A
W
M
M
TrafficismostlyN-S
M
M
M
M
M
M
M
M
M
Traffic is mix
of N-S and E-W
Cloud-Native
Patterns of
architecture
and
organization
that deliver
software with
speed and
reliability
¨ Auto Scale
¨ Continuous Delivery
¨ Baked-in Resilience
¨ Deep Monitoring
¨ Collaboration
Cloud Native + Containers is Network
Intensive
¨ Implications on
¤ Performance
¤ Reliability
¤ Security
¤ Routing
¤ Naming and discovery
¤ Monitoring
Cloud Native Landscape - Microservices
Microservices
APIs
Performance
Resilience
Security Visibility
Continuous
Delivery
AutoScal
e
Circuit
Breaker
Load
Balancing
Throttling
Discovery
Audit Segmentation
E2E
Encryption
Routing
Chaos
Monkey
Distributed
Debug
Back-off
Lifecycle
Management
Auth
Containers
Container
Networking
Container
Security
Integrity Isolation AuthN/Z
Container
Orchestration
Infrastructure
Orchestration
Network
Orchestration
Cloud
Orchestration
Multi-cloud
Orchestration
Private
Cloud
OrchestrationHypervisor
Orchestration
Network
Orchestration
IPAM / DNS
Overlay /
Underlay
Microservices
Lifecycle
Management
Container
Performance
Network
Perf
scheduler
Container
Storage
Storage
Orchestration
Storage
Orchestration
Cloud Native Landscape - Infrastructure
Microservices Containers
Contain
er
Networ
king
Contain
er
Security
Integr
ity
Isolati
on
Auth
N/Z
Contain
er
Orchest
ration
Infrastru
cture
Orchest
ration
Networ
k
Orchest
ration
Cloud
Orchest
ration
Multi-
cloud
Orchest
ration
Private
Cloud
Orchest
ration
Hypervi
sor
Orchest
ration
Networ
k
Orchest
ration
IPAM /
DNS
Overlay
/
Underla
y
Lifecycl
e
Manag
ement
Contain
er
Perform
ance
Netw
ork
Perf
schedul
er
Contain
er
Storage
Storage
Orchest
ration
Storage
Orchest
ration
Cloud Native Landscape
Microservi
ces
APIs
Perform
ance
Resilienc
e
Security Visibility
Continuo
us
Delivery
AutoS
cale
Circui
t
Break
er
Load
Balan
cing
Throttl
ing
Disco
very
Audit
Segment
ation
E2E
Encrypti
on
Routing
Chaos
Monk
ey
Distribut
ed
Debug
Back-
off
Lifecycle
Manage
ment
Auth
Container Managers to the rescue?
Docker Swarm Kubernetes
(from Google)
Mesosphere
DCOS
(based on Apache
Mesos)
AWS ECS
Container Cluster Managers
α1
β1
δ1
β2
α2
δ3
α3
α4
δ2
α5
α6
HostH1
HostH2
HostH3
HostH4
δ4
ClusterManager
Cluster API
Cluster Managers – Sweet Spots
¨ Infrastructure independence
¨ Scheduling
¨ Discovery
¨ Scaling (partially)
¨ Security (a little bit)
¨ Load balancing (limited)
Load Balancing for container clusters – Ingress / Edge
α5
α6
HostH4
Scale out
Internet
α1
β1
δ1
HostH1
β2
α2
δ3
HostH2
α3
α4
δ2HostH3
Public Endpoint
https://alpha:443
LB
Load Balancing – intra-cluster
α1
β1
HostH1
α2
δ3
HostH2
α4
δ2
HostH3
LB
LB per endpoint
Load Balancing – intra-cluster
α1
β1
HostH1
α2
δ3
HostH2
α4
δ2
HostH3
LBLB LB
LB per container host
• Service clients use
an LB local to
their host
• E.g., Kube-proxy,
Swarm, Mesos -
MinuteMan
Ingress vs Intra-cluster differences
¨ Performance
¨ Count
¨ Frequency of reconfiguration
¨ L4 (intra-cluster) vs L7 (ingress)
¨ Form factor
Reconfiguration of Load Balancer
α1
β1
HostH1
β2
α2
HostH2
α3
α4
HostH3
Ingress LB
α5
α6
HostH4
ClusterManager
LB
Controller
Cluster API
Container
Events Reconfigur
ation
Container
State
Container
State Query
Nitrox – Configure Citrix NetScaler for
Cluster Managers
¨ github.com/chiradeep/nitrox
¨ Apache license
¨ Support for integrating NetScaler with
¤ Kubernetes
¤ Swarm
¤ Consul
¤ Marathon
Kubernetes Ingress Controller
¨ https://github.com/chiradeep/kube-ingress-citrix-
netscaler
¨ Ingress Load Balancing for Kubernetes Clusters
Cluster Managers: Native LB support
¨ Roll-your-own
¤ Docker Swarm,
Kubernetes, Mesos
¨ AWS Application LB
¤ ECS
¨ L4
¤ Docker Swarm,
Kubernetes, Mesos
¨ L7
¤ AWS Application LB
(ECS)
¤ Linkerd
Ingress LB Intra-cluster
Emerging LB patterns
¨ Client-side LB
¨ Sophisticated routing
¨ Resilience patterns
¨ Visibility / Insights
Client-side LB
¤ Embedded into calling
application
n e.g., Netflix Ribbon
(with Eureka)
¤ Run as side-cars
(alongside each
application or one-
per-host) Eureka
M M
M
M
M
M
Client-side LB
¤ Run as side-cars, or
one-per-host
Service
Discovery
M
M
M
M
M
M
Clients
Service
LB
LB
Client-side LB Examples
¨ Netflix Prana - Hystrix as side car (deprecated)
¨ Linkerd from Buoyant.io (based on Twitter Finagle)
¨ AirBnB Smartstack/Synapse (uses HAProxy)
¨ Uber Hyperbahn
¤ Like Finagle, switched from HAProxy
¨ Kube Proxy
¤ Initially user-space, now based on IPTables
¨ Docker Swarm LB
¤ Based on IPVS
¨ Mesos LB
¤ Based on IPTables
Recap: LB-in-the-wire
¨ Resilience
¨ Encryption offload
¨ Application acceleration
¨ Defend L4à L7
¨ L7 routing
¨ Application Performance Analytics
A general-purpose L7 proxy?
M
M
M M M
M M M M M
M
A general-purpose L7 proxy?
M M
Client
Service A
M Service B
LB
LB
Host
A general-purpose L7 proxy?
M M
Client
Service A
L7 ProxyL7 Proxy
M Service B
L7 Proxy
Service
Discovery
CD
Pipeline
Policy
Engine
Zero-Downtime Deploys
¨ Canary deploys
¨ Traffic can be selected
based on source
(country), headers
M M M M
Version N
M M M M M
Version N+1
10%90%
CD
Pipeline
Zero-Downtime Deploys
¨ Blue-green deploys
M M M M
Version N
M M M M M
Version N+1
100%
CD
Pipeline
Advanced Resilience – Circuit Breaker
¨ Circuit Breaker is a
pattern that prevents
cascading failures due
to unresponsive
downstream services
¨ A load balancer can be
configured to ignore a
slow backend
Credit: http://martinfowler.com/bliki/CircuitBreaker.html
Visibility
¨ Compliance
¨ Topology
¨ Analytics
M
M
M M M
M M M M M
M
Analytics
Topology and Compliance
Policy
Violation
Future directions
¨ Multi-cloud resilience
¨ Security
¨ Protocol Insights
Multi-cloud
¨ Choose the best
location for the
microservice
¨ Automatic discovery
and resilience
¨ See Kubernetes
Federation for
example
M M M M
Cloud 1
M M M M M
Cloud 2
Further reading: http://kubernetes.io/docs/user-guide/federation/federated-services/
Security
¨ Segmentation
¨ Authorization
¨ End-to-End encryption
M M
Client A
Service A
L7 ProxyL7 Proxy
M Service B
L7 Proxy
Policy
who what
why when
?
How
Segmentation
M M
Client A
Service A
L7 ProxyL7 Proxy
M Service B
L7 Proxy
✓
Encryption
M M
Client A
Service A
L7 ProxyL7 Proxy
M Service B
L7 Proxy
Client Certificate
Further reading: https://blog.cloudflare.com/how-to-build-your-own-public-key-infrastructure/
Cryptographic Segmentation
M M
Client A
Service A
L7 ProxyL7 Proxy
M Service B
L7 Proxy
Client Certificate
Further reading: https://spiffe.io
Authorization
M M
Client A
Service A
L7 ProxyL7 Proxy
M Service B
L7 Proxy
Authorization: Bearer: xxxxx.yyyyy.zzzzz
Authorization: Bearer: aaaaa.bbbb.cccccc
Token Insertion
Token Validation
Further reading: https://github.com/coreos/jwtproxy
Protocol Insights
¨ Microservice communication patterns are
changing
¤ New protocols/formats: gRPC, Thrift, TChannel
¤ Asynchronous / Event-driven
¤ Queues and real-time streams
Wrap-up
¨ Load balancing is
different for containers /
microservices
¨ Integration with container
cluster managers is
needed
¨ Consider using the same
LB technology for ingress
and intra-cluster
¨ Emerging patterns
solidify the importance
of the load balancer
¨ LB in the wire brings
¤ Simplicity
¤ Resilience
¤ Future proofing

More Related Content

PDF
gita.pdf
PPTX
Religious condition during 6th Cen. BCE
PDF
Primitive religion pdf
PDF
IVC religion .pdf
PPTX
Database Project management
PPTX
OAuth2 + API Security
PPTX
प्रयाग तीर्थ
PPTX
सैन्धव अर्थव्यवस्था .pptx
gita.pdf
Religious condition during 6th Cen. BCE
Primitive religion pdf
IVC religion .pdf
Database Project management
OAuth2 + API Security
प्रयाग तीर्थ
सैन्धव अर्थव्यवस्था .pptx

What's hot (20)

PDF
Tunnel vs VPN on Mikrotik
PPTX
OpenID Connect: An Overview
PPTX
vedic farming
PDF
Vedic economy : वैदिक अर्थव्यवस्था
PPTX
पुष्यभूति वंश .pptx
PDF
Yadavas of devgiri pdf
PDF
Modern Security with OAuth 2.0 and JWT and Spring by Dmitry Buzdin
PPTX
Mobile Ad hoc Networks
PDF
Political History of Gupta Dynasty
PDF
HISTORY OF AGRICULTURAL DEVELOPMENT IN ANCIENT INDIA, AGRICULTURE IN CIVILIZA...
PDF
Kong API Gateway.pdf
PDF
Vaartaa.pdf
PPT
Domain Name System
PPTX
MULTICAST BY SAIKIRAN PANJALA
PDF
Panchdevopasana
PDF
Vedic Agriculture
PDF
Implementing OAuth
PPTX
Buddhist Councils
PPTX
Dynamic routing
PPT
Virtual Private Network
Tunnel vs VPN on Mikrotik
OpenID Connect: An Overview
vedic farming
Vedic economy : वैदिक अर्थव्यवस्था
पुष्यभूति वंश .pptx
Yadavas of devgiri pdf
Modern Security with OAuth 2.0 and JWT and Spring by Dmitry Buzdin
Mobile Ad hoc Networks
Political History of Gupta Dynasty
HISTORY OF AGRICULTURAL DEVELOPMENT IN ANCIENT INDIA, AGRICULTURE IN CIVILIZA...
Kong API Gateway.pdf
Vaartaa.pdf
Domain Name System
MULTICAST BY SAIKIRAN PANJALA
Panchdevopasana
Vedic Agriculture
Implementing OAuth
Buddhist Councils
Dynamic routing
Virtual Private Network
Ad

Viewers also liked (20)

PDF
Load Balancing for Containers and Cloud Native Architecture
PDF
Loadbalancers: The fabric for your micro services
PDF
Microservices: State of the Union
PDF
KubeCon EU 2016: Kubernetes meets Finagle for Resilient Microservices
PPTX
Cloud Solution Day 2016: Service Mesh for Kubernetes
PPT
Els peixos p3 a
PPTX
JMeter Intro
PPTX
Performance and Load Testing
PDF
Performance Testing - Apache Benchmark, JMeter
PDF
Distributed Tracing
PPTX
CoreOS Overview and Current Status
PDF
Load Testing with JMeter
PPTX
The 3 Models in the NGINX Microservices Reference Architecture
PDF
Cloud Native Landscape (CNCF and OCI)
PDF
Jmeter Performance Testing
PPT
Performance testing jmeter
PPTX
Service Discovery using etcd, Consul and Kubernetes
PDF
gRPC: The Story of Microservices at Square
PPTX
OpenShift Enterprise 3.1 vs kubernetes
PPTX
Eight Miles High: Build Cloud-native and Cloud-aware Systems
Load Balancing for Containers and Cloud Native Architecture
Loadbalancers: The fabric for your micro services
Microservices: State of the Union
KubeCon EU 2016: Kubernetes meets Finagle for Resilient Microservices
Cloud Solution Day 2016: Service Mesh for Kubernetes
Els peixos p3 a
JMeter Intro
Performance and Load Testing
Performance Testing - Apache Benchmark, JMeter
Distributed Tracing
CoreOS Overview and Current Status
Load Testing with JMeter
The 3 Models in the NGINX Microservices Reference Architecture
Cloud Native Landscape (CNCF and OCI)
Jmeter Performance Testing
Performance testing jmeter
Service Discovery using etcd, Consul and Kubernetes
gRPC: The Story of Microservices at Square
OpenShift Enterprise 3.1 vs kubernetes
Eight Miles High: Build Cloud-native and Cloud-aware Systems
Ad

Similar to Load Balancing for Containers and Cloud Native Architecture (20)

PPTX
Load balancing in cloud computing.pptx
PDF
AWS Certified Cloud Practitioner Course S7-S10
PDF
E VALUATION OF T WO - L EVEL G LOBAL L OAD B ALANCING F RAMEWORK IN C L...
PDF
The Simply Complex Task of Implementing Kubernetes Ingress - Velocity NYC
PDF
Cloudflare Load Balancing for Monitoring Origin Server Health and Automatic F...
PDF
How_to_choose_the_right_load_balancer_for_your_AWS_workloads_NET202.pdf
PDF
ACE - Comcore
PPT
What is load balancer in aws and types of load balancers
PDF
Meetup #4: AWS ELB Deep dive & Best practices
PDF
Kubernetes Networking 101 kubecon EU 2022
PPTX
LOAD BALANCING ALGORITHMS
PDF
Banv meetup 04162014
PDF
IPVS for Docker Containers
PDF
[En] IPVS for Docker Containers
PDF
Cilium - API-aware Networking and Security for Containers based on BPF
PPTX
OpenStack Summit Fall 2018: LBaaS
PDF
Banv meetup-contrail
PPTX
AWS fault tolerant architecture
PDF
Load Balancing in the Cloud using Nginx & Kubernetes
PDF
Kubernetes Networking - Sreenivas Makam - Google - CC18
Load balancing in cloud computing.pptx
AWS Certified Cloud Practitioner Course S7-S10
E VALUATION OF T WO - L EVEL G LOBAL L OAD B ALANCING F RAMEWORK IN C L...
The Simply Complex Task of Implementing Kubernetes Ingress - Velocity NYC
Cloudflare Load Balancing for Monitoring Origin Server Health and Automatic F...
How_to_choose_the_right_load_balancer_for_your_AWS_workloads_NET202.pdf
ACE - Comcore
What is load balancer in aws and types of load balancers
Meetup #4: AWS ELB Deep dive & Best practices
Kubernetes Networking 101 kubecon EU 2022
LOAD BALANCING ALGORITHMS
Banv meetup 04162014
IPVS for Docker Containers
[En] IPVS for Docker Containers
Cilium - API-aware Networking and Security for Containers based on BPF
OpenStack Summit Fall 2018: LBaaS
Banv meetup-contrail
AWS fault tolerant architecture
Load Balancing in the Cloud using Nginx & Kubernetes
Kubernetes Networking - Sreenivas Makam - Google - CC18

More from Chiradeep Vittal (13)

PDF
Directions for CloudStack Networking
PDF
Private cloud networking_cloudstack_days_austin
PDF
StackWatch: A prototype CloudWatch service for CloudStack
PDF
Network Functions Virtualization and CloudStack
PDF
CloudStack Networking Deepdive CCCEU13
PPTX
StackMate - CloudFormation for CloudStack
PDF
SDN in Apache CloudStack (ApacheCon NA 2013)
PDF
Scalable Object Storage with Apache CloudStack and Apache Hadoop
PDF
Networking in the Cloud Age (LISA 2012 Tutorial)
PDF
The Future of Apache CloudStack (Not So Cloudy) (Collab 2012)
PDF
Evolution of CloudStack Architecture (Collab 2012)
PPT
Scalable networking in Apache CloudStack
PPTX
CloudStack + SDN
Directions for CloudStack Networking
Private cloud networking_cloudstack_days_austin
StackWatch: A prototype CloudWatch service for CloudStack
Network Functions Virtualization and CloudStack
CloudStack Networking Deepdive CCCEU13
StackMate - CloudFormation for CloudStack
SDN in Apache CloudStack (ApacheCon NA 2013)
Scalable Object Storage with Apache CloudStack and Apache Hadoop
Networking in the Cloud Age (LISA 2012 Tutorial)
The Future of Apache CloudStack (Not So Cloudy) (Collab 2012)
Evolution of CloudStack Architecture (Collab 2012)
Scalable networking in Apache CloudStack
CloudStack + SDN

Recently uploaded (20)

PPTX
Build Your First AI Agent with UiPath.pptx
PDF
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
PPTX
Training Program for knowledge in solar cell and solar industry
PDF
Transform-Your-Streaming-Platform-with-AI-Driven-Quality-Engineering.pdf
PDF
OpenACC and Open Hackathons Monthly Highlights July 2025
PPTX
Configure Apache Mutual Authentication
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PDF
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
PDF
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
PDF
Comparative analysis of machine learning models for fake news detection in so...
PDF
A review of recent deep learning applications in wood surface defect identifi...
PPT
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
PDF
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
PPT
Geologic Time for studying geology for geologist
PDF
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
PDF
The influence of sentiment analysis in enhancing early warning system model f...
PDF
4 layer Arch & Reference Arch of IoT.pdf
PPTX
Microsoft Excel 365/2024 Beginner's training
PPTX
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
PDF
Flame analysis and combustion estimation using large language and vision assi...
Build Your First AI Agent with UiPath.pptx
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
Training Program for knowledge in solar cell and solar industry
Transform-Your-Streaming-Platform-with-AI-Driven-Quality-Engineering.pdf
OpenACC and Open Hackathons Monthly Highlights July 2025
Configure Apache Mutual Authentication
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
Comparative analysis of machine learning models for fake news detection in so...
A review of recent deep learning applications in wood surface defect identifi...
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
Geologic Time for studying geology for geologist
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
The influence of sentiment analysis in enhancing early warning system model f...
4 layer Arch & Reference Arch of IoT.pdf
Microsoft Excel 365/2024 Beginner's training
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
Flame analysis and combustion estimation using large language and vision assi...

Load Balancing for Containers and Cloud Native Architecture