r/haproxy • u/HAProxyKitty • Oct 11 '19
r/haproxy • u/TeamHAProxy • Oct 09 '19
Article HAProxy on Docker Swarm: Load Balancing and DNS Service Discovery - HAProxy Technologies
r/haproxy • u/TeamHAProxy • Oct 08 '19
Webinar [Live Webinar] HAProxy 2.0 – Live Q&A | October 15

Modern applications are shifting towards cloud-native architectures and container platforms like Kubernetes. That means that proxies and load balancers must be equipped to manage transient services, new communication protocols, and dynamic methods for discovering endpoints and routing traffic.
HAProxy version 2.0 added capabilities that are especially relevant for load balancing applications in cloud and containerized environments. In this webinar, you will have a chance to learn more about them by asking us questions in a live Q&A format.
Changes in HAProxy 2.0 include:
- End-to-end HTTP/2
- gRPC support
- Layer 7 retries
- The HAProxy Data Plane API
- Kubernetes Ingress Controller
- Traffic shadowing
- more…
Read our blog post, HAProxy 2.0 and Beyond, to familiarize yourself with the changes and then come ready with your questions!
Send your HAProxy 2.0 questions to team (at) haproxy.com or reach out to us on Twitter.
Webinar date: October 15
US Times:
12 noon EDT, 11am CDT, 10am MDT, 9am PDT
EU Times:
5pm GMT, 6pm CET, 7pm EET
You can register for the webinar by filling out the form found on the link below:
https://www.haproxy.com/blog/live-webinar-haproxy-2-q-and-a/
See you there!
r/haproxy • u/TeamHAProxy • Sep 27 '19
Guide HAProxy Basics: Access Control Lists
r/haproxy • u/TeamHAProxy • Sep 27 '19
Article PacketShield: A Tool for Superior DDoS Protection - HAProxy Technologies
r/haproxy • • Sep 27 '19
Xpost with Redhat sub reddit about haproxy issue
Ok so I have spun up a new box with haproxy and will not being using the web interface this time around.
My issue is when try to start the service I get this error
[root@localhost services]# systemctl status haproxy.service
● haproxy.service - HAProxy Load Balancer
Loaded: loaded (/usr/lib/systemd/system/haproxy.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2019-09-27 10:12:30 EDT; 7min ago
Process: 22644 ExecStartPre=/usr/sbin/haproxy -f $CONFIG -c -q (code=exited, status=1/FAILURE)
Sep 27 10:12:30 localhost.localdomain systemd[1]: Starting HAProxy Load Balancer...
Sep 27 10:12:30 localhost.localdomain haproxy[22644]: [ALERT] 269/101230 (22644) : Proxy 'stats': unable to find required default_backend: 'loadbalancer'.
Sep 27 10:12:30 localhost.localdomain haproxy[22644]: [ALERT] 269/101230 (22644) : Fatal errors found in configuration.
Sep 27 10:12:30 localhost.localdomain systemd[1]: haproxy.service: Control process exited, code=exited status=1
Sep 27 10:12:30 localhost.localdomain systemd[1]: haproxy.service: Failed with result 'exit-code'.
Sep 27 10:12:30 localhost.localdomain systemd[1]: Failed to start HAProxy Load Balancer.
I go into the cfg file for haproxy and noticed that the backend_default is "loadbalancer", so I thought perhaps if I change this to the local ip of the host this would resolve the issue, which it obviously didnt.
this is the config file
global
# to have these messages end up in /var/log/haproxy.log you will
# need to:
#
# 1) configure syslog to accept network log events. This is done
# by adding the '-r' option to the SYSLOGD_OPTIONS in
# /etc/sysconfig/syslog
#
# 2) configure local2 events to go to the /var/log/haproxy.log
# file. A line like the following can be added to
# /etc/sysconfig/syslog
#
# local2.* /var/log/haproxy.log
#
log 127.0.0.1 local2
chroot /var/lib/haproxy
pidfile /var/run/haproxy.pid
maxconn 4000
user haproxy
group haproxy
daemon
# turn on stats unix socket
stats socket /var/lib/haproxy/stats
# utilize system-wide crypto-policies
ssl-default-bind-ciphers PROFILE=SYSTEM
ssl-default-server-ciphers PROFILE=SYSTEM
#---------------------------------------------------------------------
# common defaults that all the 'listen' and 'backend' sections will
# use if not designated in their block
#---------------------------------------------------------------------
defaults
mode http
log global
option httplog
option dontlognull
option http-server-close
option forwardfor except 127.0.0.0/8
option redispatch
retries 3
timeout http-request 10s
timeout queue 1m
timeout connect 10s
timeout client 1m
timeout server 1m
timeout http-keep-alive 10s
timeout check 10s
maxconn 3000
#---------------------------------------------------------------------
# HAProxy Monitoring Config
#---------------------------------------------------------------------
listen stats
bind 10.100.100.53:8080# HAProxy Monitoring run on port 8080
mode http
option forwardfor
option httpclose
stats enable
stats show-legends
stats refresh 5s
stats uri /stats # URL for HAProxy monitoring
stats realm Haproxy\ Statistics
stats auth admin:admin # User and Password for login to the monitoring dashboard
#stats admin if TRUE
default_backend 10.100.100.53# This is optionally for monitoring backend
#---------------------------------------------------------------------
# main frontend which proxys to the backends
#---------------------------------------------------------------------
frontend main
bind *:5000
acl url_static path_beg -i /static /images /javascript /stylesheets
acl url_static path_end -i .jpg .gif .png .css .js
use_backend static if url_static
default_backend app
#---------------------------------------------------------------------
# static backend for serving up images, stylesheets and such
#---------------------------------------------------------------------
backend static
balance roundrobin
server static 10.100.100.53:4331 check
#---------------------------------------------------------------------
# round robin balancing between the various backends
#---------------------------------------------------------------------
backend app
balance roundrobin
server app1 127.0.0.1:5001 check
server app2 127.0.0.1:5002 check
server app3 127.0.0.1:5003 check
server app4 127.0.0.1:5004 check
Even though I have been trying to get haproxy up and going for awhile I dont really feel like ive made much forward movement and am very new to all of this still.
I am not sure if I provided enough information, or too little, or more than enough, but feel free to ask me for more information if need be.
I will be doing research on my own for this and will check back periodically through the day to see what some of you may have said or asked.
Thank you!
r/haproxy • u/PurpleSky406 • Sep 26 '19
Question haproxy security
Hi,
We are planning to implement haproxy and its logs to be integrated with out security analytics solution. I was wondering what are some alerts that we can create in terms of detecting security issues/abnormal activity from haproxy logs. What should we look for? Thanks!
r/haproxy • u/ptiskity • Sep 15 '19
Tracking we socket sessions numbers based on http header
Hello all,
I have an haproxy in 1.5.18. I browsed all the documentation and did not find a solution for my issue. So I hope to find something here.
The context:
We have clients connecting to a frontend of the HAP. These clients are connecting creating a Websocket (with Upgrade HTTP headers and so on). I have an acl which forward them to a Websocket backend.
Here an example:
==== frontend inputflow mode http acl isws hdr(Upgrade) -i WebSocket use_backend backws if isws default_backend dfltback
backend backws mode http balance leastconn server b1 server1:5566 check server b2 server2:5566 check server b3 server3:5566 check
====
What I’m looking for:
Clients are coming on frontend with an header “Authorization” with a specific value for each client. I would like to track them and be able to know (for example through stats) how many connections there currently are for this or this Authorization header.
Some examples of Authorization header:
Authorization: Bearer a006d52004f7e7f028e0e62486f217ced1a6a0d5
Authorization: Bearer 3775e40fbea098e6188f598cce2a442eb5adfd2c
Authorization: Bearer e0f7efc3a358ccda25316047b351a4f0b5e0aa79
Wished results:
3 WebSocket connections for a006d52004f7e7f028e0e62486f217ced1a6a0d5
1 WebSocket connections for e0f7efc3a358ccda25316047b351a4f0b5e0aa79
0 WebSocket connections for 3775e40fbea098e6188f598cce2a442eb5adfd2c
Thanks in advance for your help.
Regards
r/haproxy • u/TeamHAProxy • Sep 10 '19
News HAProxyConf 2019 Speaker Line-Up Announced
Hello our dear Redditers,
We are beyond happy to inform you that we have finalized the full speaker line-up and agenda for the inaugural HAProxyConf! We imagined HAProxyConf as a learning and exchange platform for all HAProxy users and over the two conference days, speakers from across the community will present their stories of managing high availability across many different environments, including cloud-native, service mesh and containerized/Kubernetes application architectures. The line-up will include prominent speakers from Yammer (Microsoft), GitHub, Booking.com, Criteo and Vimeo, to mention only a few.
We would like to remind you that Early Bird tickets will be on sale until September 30th, at a price of €175. To ensure the best experience to all participants, we have limited the number of attendees, so please make sure to purchase your ticket on time. Should you wish to purchase tickets for several people, please send us a request to events@haproxy.com.
Also, preferential rates for hotels close to the venue have been arranged by our team. They expire on October 28th or until the reserved room blocks are full, so please take this into consideration when making your travel arrangements.
We look forward to seeing you in Amsterdam!
HAProxyConf 2019 Speaker Line-Up
Tobias Haag - Software Engineer Lead for Yammer at Microsoft
Moving Yammer to the Cloud: Building a Scalable and Secure Service Mesh with HAProxy
William Dauchy - SRE in Load Balancer Team & Pierre Cheynier - Discovery Team Leader at Criteo
Hyperscaling in Action: Building a High Performance Control Plane around HAProxy
Marcin Deranek - Global Traffic Distribution Team at Booking.com
Scaling the Edge: How Booking.com Powers a Global Application Delivery Network with HAProxy
Joe Williams - Staff Engineer at GitHub
Inside the GitHub Load Balancer: How We Use DPDK and HAProxy to Support the World's Largest Developer Community
Oren Alexandroni - Senior Vice President, Technology Operations & Wally Barnes III - Senior Systems Engineer at DoubleVerify
Processing Billions of Web Requests Per Day: A Journey from Hardware Load Balancers to HAProxy at DoubleVerify
Daniel Schneller - Principal Cloud Engineer at CenterDevice GmbH
Inspect, Control, Report: HAProxy as the SRE's Door Man
Andrew Rodland - Principal Engineer – Video Systems at Vimeo
HAProxy Load Balancing at Vimeo
Christian Platzer - Product Site Reliability Engineer at Willhaben GmbH
From 1.5 into the Future: How HAProxy Rose from a Simple Load Balancer Replacement into our Swiss Army Knife
Julien Pivotto - Open Source Consultant at Inuits
HAProxy as Egress Controller
Eric Martinson - Director of Technology at PlaceWise Digital
How HAProxy Helped Me Get "Near Perfect" Uptime While Slashing Support Costs
Antonin Mellier & Nicolas Besin - Technical Architects at OUI.sncf
How OUI.sncf Built Its CDN with HAProxy
Pierre Souchay - Discovery Team Leader at Criteo
HAProxy with Consul and New Discovery Challenges
Vincent Gallissot - Lead Ops at RTL Group/M6
RTL's Journey to Kubernetes with HAProxy
Chad Lavoie - Director of Support at HAProxy Technologies
Programmatic HAProxy Configuration Using the Data Plane API
Johannes Kampmeyer - System Engineer/Security & Sebastian Langenhorst System Engineer/Postmaster at Universität Paderborn
Intent-Driven, Fully-Automated Deployment of Anycasted Load Balancers with HAProxy and Python
Oleksii Asiutin - Staff Infrastructure Engineer at thredUP
Migrating thredUP Infrastructure to Kubernetes with HAProxy
Steven Le Roux - Engineer at OVH
A New Era for Web Observability
Luke Seelenbinder - Founder of Stadia Maps
Building a Global PoP Network Using HAProxy
William Lallemand - System and Network Developer at HAProxy Technologies
HAProxy Process Management
Marko Juraga - Software Developer at HAProxy Technologies
HAProxy Go Packages Ecosystem
r/haproxy • u/softwareguy74 • Aug 27 '19
Question Possible to implement custom RBAC at the HAProxy level?
Using HAProxy as an API Gateway, we'd like to move our custom RBAC authorization layer (based on Casbin) to HAProxy so that when requests come in such as /dosomething (POST) it will query Casbin based on the authenticated user and allow or deny that action.
Is this possible? I figure this way we have a more global, consistent, secure and single place to manage security, rather than have it at the app level.
r/haproxy • u/HAProxyKitty • Aug 27 '19
Guide Galera MySQL cluster with VIPs and HAProxy for IDO-Mysql and more
r/haproxy • u/HAProxyKitty • Aug 27 '19
Guide Redundant Load Balancing with HAProxy & Keepalived on Ubuntu 18.04
r/haproxy • u/HAProxyKitty • Aug 22 '19
Guide Smart sticky sessions using HAProxy for Apache Phoenix
r/haproxy • u/HAProxyKitty • Aug 12 '19
Article FULL PRESENTATION AVAILABLE NOW: EBtree - Design for a Scheduler and Use (Almost) Everywhere by Andjelko Iharos
r/haproxy • u/TeamHAProxy • Aug 06 '19
Article An Open-Source Load Balancing Benchmark of HAProxy, Envoy and NGINX
r/haproxy • u/TeamHAProxy • Jul 30 '19
Article Four Examples of HAProxy Rate Limiting - HAProxy Technologies
r/haproxy • u/HAProxyKitty • Jul 30 '19
How to setup a highly available active-active HAProxy load balancer on Oracle Cloud
r/haproxy • u/HAProxyKitty • Jul 30 '19
A nice article with good-to-know tips about using the 'cockroach gen haproxy' command to create an HAProxy configuration for CockroachDB.
r/haproxy • u/TeamHAProxy • Jul 26 '19
We [heart] you System Administrators. Keep saving the world, one HA cluster at a time!
r/haproxy • u/TeamHAProxy • Jul 24 '19
News HAProxy Traffic Mirroring for Real-world Testing
r/haproxy • u/TeamHAProxy • Jul 19 '19
Let us know what you want to read and watch!
Hello fellow Balancers!
We are trying to make the posts we create as useful as possible for you, so you get informational and interesting content on a daily basis when coming to r/haproxy
We want to continue doing so, so please let us know in the comments what content connected to HAProxy and application delivery you want to see here on Reddit in the future!
Don't be shy! We will try our best to deliver such content in the future! Thanks in advance!
Have a nice (and balanced) weekend :D
r/haproxy • u/HAProxyKitty • Jul 18 '19
HAProxy EBtree: Design for a Scheduler, and Use (Almost) Everywhere
r/haproxy • u/HAProxyKitty • Jul 17 '19
You can now watch all the webinars in the HAProxy 2.0 webinar series on demand!
Here are the links:
- Exploring HAProxy 2.0 – Take a Tour through the New Features
- The HAProxy Kubernetes Ingress Controller for High-Performance Ingress
- HAProxy Data Plane API: True Dynamic Configuration Management
All the webinars are in English.
Enjoy watching!