Geoff Ballinger
System Architect
The Load Balancer:
War Stories with HAProxy
Agenda
● Software Engineer & Live Ops
● Technical scaling of startups
● Entertainment, Mobile and
Connected Systems
● How real people interact with
technology
Geoff
AgendaDeltaDNA
Agenda
● DeltaDNA has been providing fast
and powerful analytics tools and
insight to the games sector’s leading
publishers and developers since
2010
● Including Take-Two Interactive,
Square Enix Montreal, Wargaming
and Bandai Namco Entertainment
Europe.
DeltaDNA
AgendaThe Load Balancer in devops
● Why am I talking about Load
Balancers at a devops
conference?
Agenda
● Assemble your individual
(micro)services into a coherent
whole
● Individual and appropriate
configuration of connectivity to all
your services in one place.
The Load Balancer in devops
AgendaThe Load Balancer in devops
● Analyse activity at the all traffic
level and drop traffic from
problematic sources
Agenda
• L7 edge proxy for APIs + small webapp
• Keepalived (VRRP) to manage VIPs over multiple instances for availability
HAProxy (v1.5-v1.7) at deltaDNA
AgendaHAProxy (v1.5-v1.7) at deltaDNA
• Compose multiple groups of paths requiring different properties to our customer portal
webapp
AgendaHAProxy (v1.5-v1.7) at deltaDNA
• 10k/s++ hits to our data collection and campaign APIs running 24/7/365
• Block unintentional DDOS from problem clients
AgendaProblems
• Fundamentally single threaded by
design
• vs modern multi-core servers!
AgendaProblems
• Can be multi-process but state
tables, reporting, and health
checks are local per-process so
not very practical
Agenda
• Steady traffic growth
• Increasing proportion of compute
intensive HTTPS API traffic
• Need to scale!
Problems
Agenda
• Cascade 2 layers of HAproxy
processes
• n-1 in outer layer accept SSL traffic
from the VIPs and sends to inner
using proxy protocol
• 1 in inner layer does the load
balancing
A solution!
AgendaA solution!
• Single core doing health checks,
state, and reporting
• The rest handle the SSL overhead
• Great utilisation of a modern multi-
core server
Agenda
• BUT HAProxy v1.8 has an
“EXPERIMENTAL” multi-threaded
mode…
A (better) solution!
Agenda
● Deploy in docker
● Kubernettes ingress controller
● API driven
The “Modern Devops Load Balancer”
Agenda
● Where your systems meet the world,
your “front door”
● The place to merge and optimise your
services into a coherent whole
● Worth understanding in detail
To wrap up the Load Balancer is...
Agenda
● Where your systems meet the world,
your “front door”
● The place to merge and optimise your
services into a coherent whole
● Worth understanding in detail
● Worth keeping up to date with!
To wrap up the Load Balancer is...
Geoff Ballinger
System Architect
Thank you!
(We are hiring...)
info@deltadna.comwww.deltadna.com

More Related Content

PDF
A Functional Approach to Architecture - Kafka & Kafka Streams - Kevin Mas Rui...
PPTX
Lieven Vandegaer from MEDIAGENIX - Orchestrating a video-on-demand pipeline w...
PDF
Kafka Summit SF 2017 - Worldwide Scalable and Resilient Messaging Services wi...
PDF
Why Kafka Works the Way It Does (And Not Some Other Way) | Tim Berglund, Conf...
PDF
The Many Faces of Apache Kafka: Leveraging Real-time Data at Scale
PDF
Building Information Systems using Event Modeling (Bobby Calderwood, Evident ...
PPTX
Kafka Retry and DLQ
PPTX
Building a Codeless Log Pipeline w/ Confluent Sink Connector | Pollyanna Vale...
A Functional Approach to Architecture - Kafka & Kafka Streams - Kevin Mas Rui...
Lieven Vandegaer from MEDIAGENIX - Orchestrating a video-on-demand pipeline w...
Kafka Summit SF 2017 - Worldwide Scalable and Resilient Messaging Services wi...
Why Kafka Works the Way It Does (And Not Some Other Way) | Tim Berglund, Conf...
The Many Faces of Apache Kafka: Leveraging Real-time Data at Scale
Building Information Systems using Event Modeling (Bobby Calderwood, Evident ...
Kafka Retry and DLQ
Building a Codeless Log Pipeline w/ Confluent Sink Connector | Pollyanna Vale...

What's hot (20)

PPTX
Kubernetes + netflix oss
PDF
How to Discover, Visualize, Catalog, Share and Reuse your Kafka Streams (Jona...
PPTX
Monoliths to Microservices: App Transformation - Jacksonville Workshop Slides
PPTX
K2 for blockchain
PDF
Kubernetes: The evolution of distributed systems | DevNation Tech Talk
PDF
Should we manage events like APIs? | Alan Chatt and Kim Clark, IBM
PDF
Disaster Recovery for Multi-Region Apache Kafka Ecosystems at Uber
PDF
Hadoop summit - Scaling Uber’s Real-Time Infra for Trillion Events per Day
PDF
Agile integration cloud native developement
PPTX
How to move from Monolith to Microservice
PDF
Best Practices for Streaming IoT Data with MQTT and Apache Kafka®
PDF
Kafka Streams
PDF
Building Streaming Data Pipelines with Google Cloud Dataflow and Confluent Cl...
PDF
Serverless integration anatomy
PPTX
Kafka Summit NYC 2017 - Achieving Predictability and Compliance with BNY Mell...
PPTX
Growing into a proactive Data Platform
PDF
Kafka for connected vehicle research | Pavle Bujanovic, Federal Highway Admin...
PPTX
Key alias dev standard final
PDF
How Apache Kafka helps to create Data Culture – How to Cross the Kafka Chasm
PDF
Stateful Interaction In Serverless Architecture With Redis: Pyounguk Cho
Kubernetes + netflix oss
How to Discover, Visualize, Catalog, Share and Reuse your Kafka Streams (Jona...
Monoliths to Microservices: App Transformation - Jacksonville Workshop Slides
K2 for blockchain
Kubernetes: The evolution of distributed systems | DevNation Tech Talk
Should we manage events like APIs? | Alan Chatt and Kim Clark, IBM
Disaster Recovery for Multi-Region Apache Kafka Ecosystems at Uber
Hadoop summit - Scaling Uber’s Real-Time Infra for Trillion Events per Day
Agile integration cloud native developement
How to move from Monolith to Microservice
Best Practices for Streaming IoT Data with MQTT and Apache Kafka®
Kafka Streams
Building Streaming Data Pipelines with Google Cloud Dataflow and Confluent Cl...
Serverless integration anatomy
Kafka Summit NYC 2017 - Achieving Predictability and Compliance with BNY Mell...
Growing into a proactive Data Platform
Kafka for connected vehicle research | Pavle Bujanovic, Federal Highway Admin...
Key alias dev standard final
How Apache Kafka helps to create Data Culture – How to Cross the Kafka Chasm
Stateful Interaction In Serverless Architecture With Redis: Pyounguk Cho
Ad

Similar to The Load Balancer: War Stories with HAProxy (20)

PDF
HOP! Airlines Jets to Real Time
PPTX
Micro Services Architecture
PDF
Building high performance microservices in finance with Apache Thrift
PPSX
Building Modern Digital Services on Scalable Private Government Infrastructur...
PDF
Jelastic DevOps Platform Product Overview for ISVs
PPTX
Modernizing your Application Architecture with Microservices
PDF
Vert.X and MSA - DevOps
PDF
Stream Processing using Apache Flink in Zalando's World of Microservices - Re...
PDF
ETL as a Platform: Pandora Plays Nicely Everywhere with Real-Time Data Pipelines
PDF
Day in the life event-driven workshop
PDF
Jelastic DevOps Platform Product Overview for Service Providers
PDF
Modern Cloud-Native Streaming Platforms: Event Streaming Microservices with K...
PDF
PortoTechHub - Hail Hydrate! From Stream to Lake with Apache Pulsar and Friends
PPTX
Moving to microservices – a technology and organisation transformational journey
PPTX
Modern Cloud-Native Streaming Platforms: Event Streaming Microservices with A...
PPTX
Best Practices for Building Hybrid-Cloud Architectures | Hans Jespersen
PDF
SOA Latam 2015
PDF
OSDC 2018 | From Monolith to Microservices by Paul Puschmann_
PDF
The Crown Jewels: Is Enterprise Data Ready for the Cloud?
PDF
Primavera gateway SAP provider - Oracle Primavera P6 Collaborate 14
HOP! Airlines Jets to Real Time
Micro Services Architecture
Building high performance microservices in finance with Apache Thrift
Building Modern Digital Services on Scalable Private Government Infrastructur...
Jelastic DevOps Platform Product Overview for ISVs
Modernizing your Application Architecture with Microservices
Vert.X and MSA - DevOps
Stream Processing using Apache Flink in Zalando's World of Microservices - Re...
ETL as a Platform: Pandora Plays Nicely Everywhere with Real-Time Data Pipelines
Day in the life event-driven workshop
Jelastic DevOps Platform Product Overview for Service Providers
Modern Cloud-Native Streaming Platforms: Event Streaming Microservices with K...
PortoTechHub - Hail Hydrate! From Stream to Lake with Apache Pulsar and Friends
Moving to microservices – a technology and organisation transformational journey
Modern Cloud-Native Streaming Platforms: Event Streaming Microservices with A...
Best Practices for Building Hybrid-Cloud Architectures | Hans Jespersen
SOA Latam 2015
OSDC 2018 | From Monolith to Microservices by Paul Puschmann_
The Crown Jewels: Is Enterprise Data Ready for the Cloud?
Primavera gateway SAP provider - Oracle Primavera P6 Collaborate 14
Ad

More from Geoff Ballinger (17)

PPTX
Highly Accurate Alignment of Data from Measurement Trains:

 the Challenges o...
PPTX
The Internet Of (very big) Things
PPTX
Docker in Embedded Systems
PPTX
The Power of Conversation
PPTX
Mobile in 2016?
PPTX
The Buzz from Barcelona: MWC16
PPTX
MoMoGPW: IoT's turn for the Kool-Aid?
PPTX
The “other side” of MWC: IoT’s turn for the Kool-Aid?
PPTX
MVP: Minimum Viable apP?
PPTX
Mobile as an Entrepreneurial Opportunity
PPTX
Sharding and Load Balancing in Scala - Twitter's Finagle
ODP
Mobile Platforms Redux
PPTX
Connecting the real world with your mobile - or how to ask "What's that?"
PPTX
Barcamp Glasgow 2010 - Mobile
PPTX
MWC2010 Overview
PPTX
Visual Interactivity
PPTX
BarCampScotland: What Is Visual Interactivity?
Highly Accurate Alignment of Data from Measurement Trains:

 the Challenges o...
The Internet Of (very big) Things
Docker in Embedded Systems
The Power of Conversation
Mobile in 2016?
The Buzz from Barcelona: MWC16
MoMoGPW: IoT's turn for the Kool-Aid?
The “other side” of MWC: IoT’s turn for the Kool-Aid?
MVP: Minimum Viable apP?
Mobile as an Entrepreneurial Opportunity
Sharding and Load Balancing in Scala - Twitter's Finagle
Mobile Platforms Redux
Connecting the real world with your mobile - or how to ask "What's that?"
Barcamp Glasgow 2010 - Mobile
MWC2010 Overview
Visual Interactivity
BarCampScotland: What Is Visual Interactivity?

Recently uploaded (20)

PDF
Enhancing plagiarism detection using data pre-processing and machine learning...
PDF
sustainability-14-14877-v2.pddhzftheheeeee
PDF
Lung cancer patients survival prediction using outlier detection and optimize...
PDF
Consumable AI The What, Why & How for Small Teams.pdf
PPTX
GROUP4NURSINGINFORMATICSREPORT-2 PRESENTATION
PPTX
Training Program for knowledge in solar cell and solar industry
DOCX
search engine optimization ppt fir known well about this
PDF
sbt 2.0: go big (Scala Days 2025 edition)
PPTX
Microsoft User Copilot Training Slide Deck
PDF
Transform-Your-Streaming-Platform-with-AI-Driven-Quality-Engineering.pdf
PDF
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
PDF
Flame analysis and combustion estimation using large language and vision assi...
PDF
giants, standing on the shoulders of - by Daniel Stenberg
PDF
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
PPTX
AI-driven Assurance Across Your End-to-end Network With ThousandEyes
PPTX
Custom Battery Pack Design Considerations for Performance and Safety
PDF
Improvisation in detection of pomegranate leaf disease using transfer learni...
PDF
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PDF
Early detection and classification of bone marrow changes in lumbar vertebrae...
Enhancing plagiarism detection using data pre-processing and machine learning...
sustainability-14-14877-v2.pddhzftheheeeee
Lung cancer patients survival prediction using outlier detection and optimize...
Consumable AI The What, Why & How for Small Teams.pdf
GROUP4NURSINGINFORMATICSREPORT-2 PRESENTATION
Training Program for knowledge in solar cell and solar industry
search engine optimization ppt fir known well about this
sbt 2.0: go big (Scala Days 2025 edition)
Microsoft User Copilot Training Slide Deck
Transform-Your-Streaming-Platform-with-AI-Driven-Quality-Engineering.pdf
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
Flame analysis and combustion estimation using large language and vision assi...
giants, standing on the shoulders of - by Daniel Stenberg
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
AI-driven Assurance Across Your End-to-end Network With ThousandEyes
Custom Battery Pack Design Considerations for Performance and Safety
Improvisation in detection of pomegranate leaf disease using transfer learni...
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
Taming the Chaos: How to Turn Unstructured Data into Decisions
Early detection and classification of bone marrow changes in lumbar vertebrae...

The Load Balancer: War Stories with HAProxy

  • 1. Geoff Ballinger System Architect The Load Balancer: War Stories with HAProxy
  • 2. Agenda ● Software Engineer & Live Ops ● Technical scaling of startups ● Entertainment, Mobile and Connected Systems ● How real people interact with technology Geoff
  • 4. Agenda ● DeltaDNA has been providing fast and powerful analytics tools and insight to the games sector’s leading publishers and developers since 2010 ● Including Take-Two Interactive, Square Enix Montreal, Wargaming and Bandai Namco Entertainment Europe. DeltaDNA
  • 5. AgendaThe Load Balancer in devops ● Why am I talking about Load Balancers at a devops conference?
  • 6. Agenda ● Assemble your individual (micro)services into a coherent whole ● Individual and appropriate configuration of connectivity to all your services in one place. The Load Balancer in devops
  • 7. AgendaThe Load Balancer in devops ● Analyse activity at the all traffic level and drop traffic from problematic sources
  • 8. Agenda • L7 edge proxy for APIs + small webapp • Keepalived (VRRP) to manage VIPs over multiple instances for availability HAProxy (v1.5-v1.7) at deltaDNA
  • 9. AgendaHAProxy (v1.5-v1.7) at deltaDNA • Compose multiple groups of paths requiring different properties to our customer portal webapp
  • 10. AgendaHAProxy (v1.5-v1.7) at deltaDNA • 10k/s++ hits to our data collection and campaign APIs running 24/7/365 • Block unintentional DDOS from problem clients
  • 11. AgendaProblems • Fundamentally single threaded by design • vs modern multi-core servers!
  • 12. AgendaProblems • Can be multi-process but state tables, reporting, and health checks are local per-process so not very practical
  • 13. Agenda • Steady traffic growth • Increasing proportion of compute intensive HTTPS API traffic • Need to scale! Problems
  • 14. Agenda • Cascade 2 layers of HAproxy processes • n-1 in outer layer accept SSL traffic from the VIPs and sends to inner using proxy protocol • 1 in inner layer does the load balancing A solution!
  • 15. AgendaA solution! • Single core doing health checks, state, and reporting • The rest handle the SSL overhead • Great utilisation of a modern multi- core server
  • 16. Agenda • BUT HAProxy v1.8 has an “EXPERIMENTAL” multi-threaded mode… A (better) solution!
  • 17. Agenda ● Deploy in docker ● Kubernettes ingress controller ● API driven The “Modern Devops Load Balancer”
  • 18. Agenda ● Where your systems meet the world, your “front door” ● The place to merge and optimise your services into a coherent whole ● Worth understanding in detail To wrap up the Load Balancer is...
  • 19. Agenda ● Where your systems meet the world, your “front door” ● The place to merge and optimise your services into a coherent whole ● Worth understanding in detail ● Worth keeping up to date with! To wrap up the Load Balancer is...