global
user haproxy
group haproxy
daemon
maxconn 10240
defaults
log global
mode tcp
log 127.0.0.1 local2
balance leastconn
retries 3
timeout connect 10s
timeout client 1m
timeout server 1m
listen admin_stats
bind 0.0.0.0:8888
mode http
stats uri /dbs
stats realm Global\ statistics
stats auth admin:admin
listen tidb_server
bind 0.0.0.0:4001
mode tcp
option mysql-check user haproxy-check
server tidb0 172.31.251.75:4000
server tidb1 172.31.251.78:4000
#user nobody;
worker_processes 4;
error_log /usr/local/system/logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 10240;
}
stream {
log_format basic '$remote_addr [$time_local] '
'$protocol $status $bytes_sent $bytes_received '
'$session_time';
access_log /usr/local/system/logs/access.log basic;
upstream tidb_backend {
hash $remote_addr consistent;
server 172.31.251.78:4000;
server 172.31.251.75:4000;
}
server {
listen 4001 so_keepalive=on;
proxy_pass tidb_backend;
}
}
--
You received this message because you are subscribed to the Google Groups "TiDB user group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tidb-user+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/tidb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/tidb-user/9bfd91da-2dc1-443c-8645-40c84c1afa2b%40googlegroups.com.
how can i fix the problem expect upgrade tidb? or just ignore?