SlideShare a Scribd company logo
1 of 69
Scaling Bedrock video
delivery to 50 million
users with HAProxy
HAProxyConf 2022 Paris, France
Vincent GALLISSOT
Bedrock Streaming
Lead Cloud Architect
@vgallissot
HAProxyConf 2019
RTL's Journey to Kubernetes with HAProxy
Bedrock Streaming
50 million active users on our customers' platforms
HYBRID
Netherlands
SVOD
France
France
AVOD
Belgium
HYBRID
Hungary
HYBRID
Launched in 2020 Migrated to
in 2022
32 years of episodes 870 episodes aired
Multiple CDNs for each customer
Origin of CDNs
● Performant
● Resilient
● Cost effective
VOD Origin: between storage and CDNs
Packaging: gives control to the player
Packaging: cutting one video into small chunks
Just in Time Packaging with USP Origin
Old days: On Premise VOD Origin
Video storage
Cache to absorb
the load
Just In Time
Packaging
No auto-
scaling
No customer
isolation
Issues during lockdown
July 2020
Let’s migrate to AWS
V1 on AWS: a NLB & an ASG
Video storage
Single TLS
endpoint
Auto scaling
(CPU &
Bandwidth)
Load tests
Photo by Andrew Wulf on Unsplash
Performances and scaling not prod ready
5500 GET/S
Scales well
Scales well
Load test:
2000 GET/S
Why do we reach this
limit?
How can we push this
limit?
Under the hood: metadata
65KB 15B
Metadata can be cached locally
1000 hours of
video = 70GB
of cache
NLB: no advanced load balancing algorithms
Local cache
RR & LOR
The cache is ineffective with Round Robin or Least
Outstanding Requests
The more we scale up, the worse it gets
Consistent Hashing to the rescue
Consistent Hashing + scaling = ♥
V2: Add HAProxy with Consistent Hashing
Local cache
Consistent
Hashing
Two levels of load balancing
Same list of
backends
Haproxy Service Discovery Orchestrator
HSDO: Server list stored in DynamoDB
HSDO client: Using the runtime API
def sendHaproxyCommand(self, command):
command = command + "n"
haproxySock = socket.socket(socket.AF_UNIX,
socket.SOCK_STREAM)
try:
haproxySock.connect(self.socketPath)
haproxySock.send(command.encode("utf-8"))
https://github.com/BedrockStreaming/hsdo
HSDO client: Using the runtime API
https://github.com/BedrockStreaming/hsdo
commands.append(
"set server %s/%s addr %s port %s"
% (
backendName,
serverName,
server.IPAddress,
self.backendServerPort
)
)
HSDO client: Using the runtime API
https://github.com/BedrockStreaming/hsdo
commands.append(
"set server %s/%s weight %s"
% (
backendName,
serverName,
server.weight
)
)
HSDO client: Makes sure the running configuration
respects the desired state
https://github.com/BedrockStreaming/hsdo
def checkBackendConf(self):
stat = self.sendHaproxyCommand("show stat")
check = self.backendConfReady(stat)
Simple backend definition
backend usp-origin
balance hdr(X-VIDEO-ID)
hash-type consistent sdbm avalanche
option httpchk HEAD /status
server-template usp-origin
${AUTO_SCALING_GROUP_MAX_SIZE}
127.0.0.1:80
check
disabled
V2: >60% fewer calls to S3 storage
Sudden
cache drop
Gradual ramping up controlled by HSDO Server
Further optimizations
Consistent Hashing unwanted behavior
Scaling policies are averages
HAProxyConf 2019 - Andrew Rodland
Consistent Hashing with Bounded Loads
Consistent overflow
hash-balance-factor = 140
Improve resilience
Too much traffic for a single server
Packets Per Second limit
Micro Bursts
Failover mechanisms: server throttles
timeout
connect 20ms
Failover mechanisms: bad HTTP codes
retry-on
502-504
502-504
Highlights of our HAProxy configuration
defaults
timeout connect 20ms
timeout server 2s
retries 2
retry-on 502 503 504 
conn-failure empty-response response-timeout
option redispatch
default-server inter 1s fall 1 rise 10 observe layer7
Redispatch happens all the time
We migrated all
onprem video traffic
to this V2 in
September 2020
V2 is too expensive
Inter-AZ traffic: the financial abyss
V3: remove inter-AZ traffic
V3: remove inter-AZ traffic
Single AZ
HSDO client
sticks to its
own AZ
servers
V3: more resilient to an AZ failure
V3: cheaper
V3: fallback backend
V3: fallback backend
frontend fe_main
acl not-enough-ready-servers-in-AZ nbsrv(usp-origin) lt
${HAPROXY_BACKEND_SERVERS_MIN_SIZE}
use_backend fallback-usp-origin if not-enough-ready-servers-in-AZ
use_backend usp-origin
100% EC2 Spot instances
15%
Running a Load Balancer on EC2 Spot instances
● Use at least 12 different instance types
● Mix instance families (C, M, R, etc.)
● Prefer many small servers rather than a few large ones
● Take care to the “UP to” vs “baseline” bandwidths
EC2 “Up to” bandwidth
Source: https://aws.amazon.com/ec2/instance-types/#Compute_Optimized
EC2 “Up to” bandwidth
Source: https://aws.amazon.com/ec2/instance-types/#Compute_Optimized
EC2 baseline bandwidth
Source: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/compute-
optimized-instances.html#compute-network-performance
Time for V4 ?
V4: remove Network Load Balancer
V3 has a 100% uptime
over the past
22 months
Using HAProxy on AWS is not complex
Thank you
Vincent GALLISSOT
Bedrock Streaming
Lead Cloud Architect
@vgallissot

More Related Content

Similar to HAProxyConf22: Scaling Bedrock Video Delivery to 50 Million Users with HAProxy

Hybrid Infrastructure Integration
Hybrid Infrastructure IntegrationHybrid Infrastructure Integration
Hybrid Infrastructure IntegrationAmazon Web Services
 
Connectivity Options for VMware Cloud on AWS Software Defined Data Centers (S...
Connectivity Options for VMware Cloud on AWS Software Defined Data Centers (S...Connectivity Options for VMware Cloud on AWS Software Defined Data Centers (S...
Connectivity Options for VMware Cloud on AWS Software Defined Data Centers (S...Amazon Web Services
 
Monitoring CloudStack and components
Monitoring CloudStack and componentsMonitoring CloudStack and components
Monitoring CloudStack and componentsShapeBlue
 
VMworld 2013: vCloud Hybrid Service 101: The Basics
VMworld 2013: vCloud Hybrid Service 101: The Basics VMworld 2013: vCloud Hybrid Service 101: The Basics
VMworld 2013: vCloud Hybrid Service 101: The Basics VMworld
 
Hybrid Infrastructure Integration
Hybrid Infrastructure IntegrationHybrid Infrastructure Integration
Hybrid Infrastructure IntegrationAmazon Web Services
 
Hybrid Infrastructure Integration
Hybrid Infrastructure IntegrationHybrid Infrastructure Integration
Hybrid Infrastructure IntegrationAmazon Web Services
 
Arquitetura Hibrida - Integrando seu Data Center com a Nuvem da AWS
Arquitetura Hibrida - Integrando seu Data Center com a Nuvem da AWSArquitetura Hibrida - Integrando seu Data Center com a Nuvem da AWS
Arquitetura Hibrida - Integrando seu Data Center com a Nuvem da AWSAmazon Web Services LATAM
 
高度規模化、可信賴的混合雲網路 (Level 300-400)
高度規模化、可信賴的混合雲網路 (Level 300-400)高度規模化、可信賴的混合雲網路 (Level 300-400)
高度規模化、可信賴的混合雲網路 (Level 300-400)Amazon Web Services
 
PLNOG 17 - Tomasz Stachlewski - Infrastruktura sieciowa w chmurze AWS
PLNOG 17 - Tomasz Stachlewski - Infrastruktura sieciowa w chmurze AWSPLNOG 17 - Tomasz Stachlewski - Infrastruktura sieciowa w chmurze AWS
PLNOG 17 - Tomasz Stachlewski - Infrastruktura sieciowa w chmurze AWSPROIDEA
 
Sysctr Track: The Capable & Scalable Cloud OS
Sysctr Track: The Capable & Scalable Cloud OSSysctr Track: The Capable & Scalable Cloud OS
Sysctr Track: The Capable & Scalable Cloud OSITProceed
 
Proč je vSAN č. 1 v software defined storage a HCI
Proč je vSAN č. 1 v software defined storage a HCIProč je vSAN č. 1 v software defined storage a HCI
Proč je vSAN č. 1 v software defined storage a HCIMarketingArrowECS_CZ
 
Building Highly Scalable Immersive Media Solutions on AWS
Building Highly Scalable Immersive Media Solutions on AWSBuilding Highly Scalable Immersive Media Solutions on AWS
Building Highly Scalable Immersive Media Solutions on AWSETCenter
 
AWS Direct Connect & VPN's - Pop-up Loft Tel Aviv
AWS Direct Connect & VPN's - Pop-up Loft Tel AvivAWS Direct Connect & VPN's - Pop-up Loft Tel Aviv
AWS Direct Connect & VPN's - Pop-up Loft Tel AvivAmazon Web Services
 
Static partitioning virtualization on RISC-V
Static partitioning virtualization on RISC-VStatic partitioning virtualization on RISC-V
Static partitioning virtualization on RISC-VRISC-V International
 
(NET406) Deep Dive: AWS Direct Connect and VPNs
(NET406) Deep Dive: AWS Direct Connect and VPNs(NET406) Deep Dive: AWS Direct Connect and VPNs
(NET406) Deep Dive: AWS Direct Connect and VPNsAmazon Web Services
 
VMworld 2013: vCloud Powered HPC is Better and Outperforming Physical
VMworld 2013: vCloud Powered HPC is Better and Outperforming PhysicalVMworld 2013: vCloud Powered HPC is Better and Outperforming Physical
VMworld 2013: vCloud Powered HPC is Better and Outperforming PhysicalVMworld
 
AWS Community Day 2022 Dhiraj Mahapatro_AWS Lambda under the hood _ Best Prac...
AWS Community Day 2022 Dhiraj Mahapatro_AWS Lambda under the hood _ Best Prac...AWS Community Day 2022 Dhiraj Mahapatro_AWS Lambda under the hood _ Best Prac...
AWS Community Day 2022 Dhiraj Mahapatro_AWS Lambda under the hood _ Best Prac...AWS Chicago
 
High Availability - Brett Thurber - ManageIQ Design Summit 2016
High Availability - Brett Thurber - ManageIQ Design Summit 2016High Availability - Brett Thurber - ManageIQ Design Summit 2016
High Availability - Brett Thurber - ManageIQ Design Summit 2016ManageIQ
 

Similar to HAProxyConf22: Scaling Bedrock Video Delivery to 50 Million Users with HAProxy (20)

Hybrid Infrastructure Integration
Hybrid Infrastructure IntegrationHybrid Infrastructure Integration
Hybrid Infrastructure Integration
 
Connectivity Options for VMware Cloud on AWS Software Defined Data Centers (S...
Connectivity Options for VMware Cloud on AWS Software Defined Data Centers (S...Connectivity Options for VMware Cloud on AWS Software Defined Data Centers (S...
Connectivity Options for VMware Cloud on AWS Software Defined Data Centers (S...
 
Monitoring CloudStack and components
Monitoring CloudStack and componentsMonitoring CloudStack and components
Monitoring CloudStack and components
 
VMworld 2013: vCloud Hybrid Service 101: The Basics
VMworld 2013: vCloud Hybrid Service 101: The Basics VMworld 2013: vCloud Hybrid Service 101: The Basics
VMworld 2013: vCloud Hybrid Service 101: The Basics
 
Hybrid Infrastructure Integration
Hybrid Infrastructure IntegrationHybrid Infrastructure Integration
Hybrid Infrastructure Integration
 
Hybrid Infrastructure Integration
Hybrid Infrastructure IntegrationHybrid Infrastructure Integration
Hybrid Infrastructure Integration
 
VMWare on AWS
VMWare on AWSVMWare on AWS
VMWare on AWS
 
Arquitetura Hibrida - Integrando seu Data Center com a Nuvem da AWS
Arquitetura Hibrida - Integrando seu Data Center com a Nuvem da AWSArquitetura Hibrida - Integrando seu Data Center com a Nuvem da AWS
Arquitetura Hibrida - Integrando seu Data Center com a Nuvem da AWS
 
TechTalkThai-CiscoHyperFlex
TechTalkThai-CiscoHyperFlexTechTalkThai-CiscoHyperFlex
TechTalkThai-CiscoHyperFlex
 
高度規模化、可信賴的混合雲網路 (Level 300-400)
高度規模化、可信賴的混合雲網路 (Level 300-400)高度規模化、可信賴的混合雲網路 (Level 300-400)
高度規模化、可信賴的混合雲網路 (Level 300-400)
 
PLNOG 17 - Tomasz Stachlewski - Infrastruktura sieciowa w chmurze AWS
PLNOG 17 - Tomasz Stachlewski - Infrastruktura sieciowa w chmurze AWSPLNOG 17 - Tomasz Stachlewski - Infrastruktura sieciowa w chmurze AWS
PLNOG 17 - Tomasz Stachlewski - Infrastruktura sieciowa w chmurze AWS
 
Sysctr Track: The Capable & Scalable Cloud OS
Sysctr Track: The Capable & Scalable Cloud OSSysctr Track: The Capable & Scalable Cloud OS
Sysctr Track: The Capable & Scalable Cloud OS
 
Proč je vSAN č. 1 v software defined storage a HCI
Proč je vSAN č. 1 v software defined storage a HCIProč je vSAN č. 1 v software defined storage a HCI
Proč je vSAN č. 1 v software defined storage a HCI
 
Building Highly Scalable Immersive Media Solutions on AWS
Building Highly Scalable Immersive Media Solutions on AWSBuilding Highly Scalable Immersive Media Solutions on AWS
Building Highly Scalable Immersive Media Solutions on AWS
 
AWS Direct Connect & VPN's - Pop-up Loft Tel Aviv
AWS Direct Connect & VPN's - Pop-up Loft Tel AvivAWS Direct Connect & VPN's - Pop-up Loft Tel Aviv
AWS Direct Connect & VPN's - Pop-up Loft Tel Aviv
 
Static partitioning virtualization on RISC-V
Static partitioning virtualization on RISC-VStatic partitioning virtualization on RISC-V
Static partitioning virtualization on RISC-V
 
(NET406) Deep Dive: AWS Direct Connect and VPNs
(NET406) Deep Dive: AWS Direct Connect and VPNs(NET406) Deep Dive: AWS Direct Connect and VPNs
(NET406) Deep Dive: AWS Direct Connect and VPNs
 
VMworld 2013: vCloud Powered HPC is Better and Outperforming Physical
VMworld 2013: vCloud Powered HPC is Better and Outperforming PhysicalVMworld 2013: vCloud Powered HPC is Better and Outperforming Physical
VMworld 2013: vCloud Powered HPC is Better and Outperforming Physical
 
AWS Community Day 2022 Dhiraj Mahapatro_AWS Lambda under the hood _ Best Prac...
AWS Community Day 2022 Dhiraj Mahapatro_AWS Lambda under the hood _ Best Prac...AWS Community Day 2022 Dhiraj Mahapatro_AWS Lambda under the hood _ Best Prac...
AWS Community Day 2022 Dhiraj Mahapatro_AWS Lambda under the hood _ Best Prac...
 
High Availability - Brett Thurber - ManageIQ Design Summit 2016
High Availability - Brett Thurber - ManageIQ Design Summit 2016High Availability - Brett Thurber - ManageIQ Design Summit 2016
High Availability - Brett Thurber - ManageIQ Design Summit 2016
 

Recently uploaded

Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night StandHot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Standkumarajju5765
 
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...Neha Pandey
 
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call GirlVIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girladitipandeya
 
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...tanu pandey
 
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersMoving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersDamian Radcliffe
 
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Russian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl ServiceRussian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl Servicegwenoracqe6
 
horny (9316020077 ) Goa Call Girls Service by VIP Call Girls in Goa
horny (9316020077 ) Goa  Call Girls Service by VIP Call Girls in Goahorny (9316020077 ) Goa  Call Girls Service by VIP Call Girls in Goa
horny (9316020077 ) Goa Call Girls Service by VIP Call Girls in Goasexy call girls service in goa
 
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Russian Call girls in Dubai +971563133746 Dubai Call girls
Russian  Call girls in Dubai +971563133746 Dubai  Call girlsRussian  Call girls in Dubai +971563133746 Dubai  Call girls
Russian Call girls in Dubai +971563133746 Dubai Call girlsstephieert
 
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.soniya singh
 
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...SofiyaSharma5
 
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024APNIC
 
VIP 7001035870 Find & Meet Hyderabad Call Girls Dilsukhnagar high-profile Cal...
VIP 7001035870 Find & Meet Hyderabad Call Girls Dilsukhnagar high-profile Cal...VIP 7001035870 Find & Meet Hyderabad Call Girls Dilsukhnagar high-profile Cal...
VIP 7001035870 Find & Meet Hyderabad Call Girls Dilsukhnagar high-profile Cal...aditipandeya
 
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxAWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxellan12
 

Recently uploaded (20)

Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night StandHot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
 
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
 
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call GirlVIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
 
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
 
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersMoving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
 
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
 
Russian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl ServiceRussian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl Service
 
horny (9316020077 ) Goa Call Girls Service by VIP Call Girls in Goa
horny (9316020077 ) Goa  Call Girls Service by VIP Call Girls in Goahorny (9316020077 ) Goa  Call Girls Service by VIP Call Girls in Goa
horny (9316020077 ) Goa Call Girls Service by VIP Call Girls in Goa
 
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
 
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
Russian Call girls in Dubai +971563133746 Dubai Call girls
Russian  Call girls in Dubai +971563133746 Dubai  Call girlsRussian  Call girls in Dubai +971563133746 Dubai  Call girls
Russian Call girls in Dubai +971563133746 Dubai Call girls
 
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
 
Call Girls In Noida 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
Call Girls In Noida 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICECall Girls In Noida 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
Call Girls In Noida 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
 
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
 
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
 
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
 
VIP 7001035870 Find & Meet Hyderabad Call Girls Dilsukhnagar high-profile Cal...
VIP 7001035870 Find & Meet Hyderabad Call Girls Dilsukhnagar high-profile Cal...VIP 7001035870 Find & Meet Hyderabad Call Girls Dilsukhnagar high-profile Cal...
VIP 7001035870 Find & Meet Hyderabad Call Girls Dilsukhnagar high-profile Cal...
 
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxAWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
 

HAProxyConf22: Scaling Bedrock Video Delivery to 50 Million Users with HAProxy

Editor's Notes

  1. about Kubernetes and cloud, Load balancing algorithms & streaming
  2. tech company basically B2B2C
  3. 50 million Advertised, Subscribed VOD or Hybrid
  4. We face several challenges Sometimes we help existing platform Video Cache layers will be empty
  5. Customer want to publish lot of contents all at once Remove technical barriers
  6. Respecting our customers’ partnerships Improve user experience
  7. Static file CDN cache
  8. Packaging gives control First download a manifest
  9. 6s duration Manifest follow playlist Adapt video quality to the user’s bandwidth
  10. Store entire file manifest alongside the video Compute when needed CDN to cache Advantage of both the cache and doing things dynamically
  11. Worked well for 10 years Follow Bedrock business model Customer A customer B
  12. COVID Consumed lot of streaming Stability issues
  13. Use managed services as much as possible TLS endpoint Scaling CPU bandwidth Skeleton
  14. Load tests before migration Do 20 times more than on-prem
  15. S3 bucket scales after some time handle the load while it scales
  16. 7mn
  17. Player asks for chunk metadata shared for the same video
  18. Cache metadata locally Between USP and S3 bucket TCP Keepalive Nginx 1 request, then queue Increase performance
  19. Increase cache efficiency advanced load balancing Round Robin Least Outstanding Requests
  20. no cache specification Video request: cache1, cache2, cache1, cache2 each server is a duplicate of the cache
  21. Each cache server is less likely to have the answer in its cache and will proxy the request to S3 instead Ineffective cache means bad performances, higher costs and maybe, S3 rate-limiting we pay more for a worse service
  22. the traffic of a video is always sent to the same cache Metadata of a video is specific to a single cacher server
  23. The more servers there are, the more specific and optimized the cache is Scaling becomes more efficient
  24. NLB = single TLS Abstract HAProxy scaling Health checks
  25. NLB = single TLS Servers in the same order Populate backend server list
  26. No file management
  27. Server handle all backend servers info: ID’s, weights, etc.
  28. Runtime API connect through Unix socket Last line we send a command
  29. Modify servers Enable disable
  30. weight
  31. Client Keeps track of the desired state from DynamoDB Compares to running config
  32. HSDO controls backend configuration server-template as many backend servers No create/delete server, only modify disabled by default: no traffic
  33. good CHR: 60% fewer calls Good perfs, effective costs Scale-up = sudden cache drop -> time needed for a new server to populate its cache
  34. We limit the impact of Cache Hit Ratio drops HSDO server to ensure consistency Increase weight every X secs Keep good performances when we scale-up Scaling by design Haproxy slowstart
  35. 19mn
  36. not all contents are equally popular few loaded servers Most servers doing nothing
  37. Averages means no scaling if only 1 server is loaded
  38. Andrew from vimeo Gave us the idea to do the same
  39. Too many requests Overflow traffic harmonize the load
  40. overflow We still optimize the cache even in case of overflow
  41. 40% more connections than the average Load is smoothed on all servers we can scale up & use consistent hashing
  42. 22 mn
  43. Network limits on AWS Bandwidth is throttled
  44. Limit on packets per second Queued or dropped
  45. very short duration increases latency Reduces overall bandwidth Impacts performances
  46. New TCP connection needs < 1ms Server in bad shape, fail quickly
  47. S3 or USP can answer badly No retry on 500
  48. Redispatch respects consistent hashing Like bounded loads → By design At a very low rate No impact on performances
  49. 25 mn
  50. Most expensive cost is inter-AZ EC2-Other : Inter-AZ traffic
  51. HAProxy uses all AZ by design
  52. Splitting traffic forced us to duplicate EC2 servers → to keep resiliency
  53. easy to do Duplicate all AutoScalingGroups Dedicate each of them to a single AZ HSDO Client sticks
  54. keep cache and good performances
  55. Deployed V3 in november Still migrating onprem to cloud traffic All bars are increasing EC2-other drops to almost 0
  56. We kept a fallback backend, multi-AZ, that we can use when we don’t have enough ready servers in the primary backend. It’s populated with HSDO, so this secondary backend is the exact same for all HAProxy servers on every AZs, to try to optimize as much as possible, even in a degraded state.
  57. any available server in the fallback-backend pay more to provide the service at any cost
  58. multi-AZ fallback
  59. Compute = 15% of costs Spot instances Reclaim notification = launch new server NLB more expensive than the whole compute
  60. Avoid mass reclaims
  61. The “Up to” traffic in the overall doc
  62. Burst is not guaranteed, not even for 1s Baseline capacity is guaranteed
  63. 24 times less
  64. 33mn
  65. single TLS endpoint for dozens of haproxy cost optimization -> won’t increase performances or resiliency
  66. no rush for V4
  67. Easy to run HAProxy on AWS -> APIs Provide VOD to 50 million users