-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG/MEDIUM: fix add server endpoint for other resources than backend.
Moreover, the convertion to the socket param (ie was always failling because ras was nil. Though runtime socket, servers can only be added on backend. Signed-off-by: Vincent Gramer <[email protected]>
- Loading branch information
Showing
4 changed files
with
121 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
global | ||
chroot /var/lib/haproxy | ||
user haproxy | ||
group haproxy | ||
maxconn 4000 | ||
pidfile /var/run/haproxy.pid | ||
stats socket /var/lib/haproxy/stats level admin | ||
log 127.0.0.1 local2 | ||
|
||
defaults | ||
mode http | ||
maxconn 3000 | ||
log global | ||
option httplog | ||
option redispatch | ||
option dontlognull | ||
option http-server-close | ||
option forwardfor except 127.0.0.0/8 | ||
timeout http-request 10s | ||
timeout check 10s | ||
timeout connect 10s | ||
timeout client 1m | ||
timeout queue 1m | ||
timeout server 1m | ||
timeout http-keep-alive 10s | ||
retries 3 | ||
|
||
peers fusion | ||
peer peer1 127.0.0.1:5108 | ||
|
||
ring logbuffer | ||
description "buffer for logs" | ||
format rfc5424 | ||
maxlen 1500 | ||
size 65536 | ||
timeout connect 10s | ||
timeout server 20s | ||
|
||
# Sends outgoing messages via TCP | ||
server logserver 192.168.1.100:514 | ||
|
||
backend test_backend | ||
mode http | ||
balance roundrobin | ||
option forwardfor | ||
server server_01 10.1.1.1:8080 check weight 80 | ||
server server_02 10.1.1.2:8080 check weight 80 | ||
server server_03 10.1.1.2:8080 check weight 80 | ||
server server_ipv6 [fd00:6:48:c85:deb:f:62:4]:80 check | ||
server server_04 192.168.1.1:80 check resolve-opts allow-dup-ip,ignore-weight resolve-net 10.0.0.0/8,10.200.200.0/12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters