Skip to content

Instantly share code, notes, and snippets.

haproxytechblog

Block or report user

Report or block haproxytechblog

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@haproxytechblog
haproxytechblog / blog20190724-01.txt
Created Aug 15, 2019
DNS for Service Discovery in HAProxy
View blog20190724-01.txt
_service._proto.name. TTL class SRV priority weight port target
@haproxytechblog
haproxytechblog / blog20190730-01.cfg
Created Jul 29, 2019
Four Examples of HAProxy Rate Limiting
View blog20190730-01.cfg
backend servers
server s1 192.168.30.10:80 check maxconn 30
server s2 192.168.31.10:80 check maxconn 30
server s3 192.168.31.10:80 check maxconn 30
@haproxytechblog
haproxytechblog / blog20190723-01.sh
Last active Jul 29, 2019
HAProxy Traffic Mirroring for Real-world Testing
View blog20190723-01.sh
$ sudo apt update
$ sudo apt install -y autoconf automake build-essential git libcurl4-openssl-dev libev-dev libpthread-stubs0-dev pkg-config
$ git clone https://github.com/haproxytech/spoa-mirror
$ cd spoa-mirror
$ ./scripts/bootstrap
$ ./configure
$ make all
$ sudo cp ./src/spoa-mirror /usr/local/bin/
View blog20171011-01.cfg
frontend www.mysite.com
bind 10.0.0.3:80
bind 10.0.0.3:443 ssl crt /etc/ssl/certs/mysite.pem
default_backend web_servers
@haproxytechblog
haproxytechblog / blog20190712-01.cfg
Last active Jul 12, 2019
HAProxy Layer 7 Retries and Chaos Engineering
View blog20190712-01.cfg
backend be_servers
balance roundrobin
server s1 server1:80 maxconn 10
server s2 server2:80 maxconn 10
server s3 server3:80 maxconn 10
@haproxytechblog
haproxytechblog / blog20190705-01.sh
Last active Jul 11, 2019
Dissecting the HAProxy Kubernetes Ingress Controller
View blog20190705-01.sh
kubectl apply -f https://raw.githubusercontent.com/haproxytech/kubernetes-ingress/master/deploy/haproxy-ingress.yaml
View blog20190628-01.sh
$ curl --get --user admin:mypassword \
http://localhost:5555/v1/services/haproxy/configuration/backends
View blog20190616-01.cfg
log stdout local0
log fd@1 local0
log stdout format raw local0
View haproxy-config-2-0.cfg
#
# This is the ultimate HAProxy 2.0 "Getting Started" config
# It demonstrates many of the features available which are now available
# While you may not need all of these things, this can serve
# as a reference for your own configurations.
#
# Have questions? Check out our community Slack:
# https://slack.haproxy.org/
#
@haproxytechblog
haproxytechblog / blog20190614-01.yaml
Last active Jun 13, 2019
Tracing Requests Through HAProxy with AWS X-Ray
View blog20190614-01.yaml
TotalBufferSizeMB: 0
Concurrency: 8
Region: "us-east-2"
Endpoint: ""
Socket:
UDPAddress: "127.0.0.1:2000"
TCPAddress: "127.0.0.1:2000"
Logging:
LogRotation: true
LogLevel: "prod"
You can’t perform that action at this time.