본문 바로가기
반응형

TCP3

OS TCP Parameters 튜닝 리눅스 서버의 TCP 네트워크 성능을 조정하는 커널 파라미터 net.ipv4.tcp_max_syn_backlog net.core.somaxconn net.core.netdev_max_backlog [Default 값] net.core.netdev_max_backlog = 1000 net.ipv4.tcp_max_syn_backlog = 256 net.core.somaxconn = 128 [net.core.netdev_max_backlog] 네트워크 장치 별로 커널이 처리하도록 쌓아두는 Queue의 크기를 설정합니다. 커널의 패킷 처리속도가 Queue에 인입되는 속도보다 떨어진다면, Queue에 들어가지 못하는 패킷은 버려지게 됩니다. Default는 1000으로 설정되어 있어, 1G 환경에서는 괜찮을것으로.. 2023. 8. 25.
HAProxy with SSL Termination / SSL Pass-Through [HAProxy with SSL Termination] /etc/haproxy/haproxy.cfg 예시 ... frontend localhost # http, https connection 모두 허용 bind *:80 bind *:443 ssl crt /etc/haproxy/ssl/cert.pem # SSL Termination 수행 redirect scheme https if !{ ssl_fc } # http 요청시 https로 redirect 하기 위한 설정 mode http default_backend nodes backend nodes # backend server에 http request 전달 mode http balance roundrobin option forwardfor server we.. 2023. 8. 10.
Customize HAProxy Log format(Mode TCP / HTTP) Customizing the HAProxy Logs There are plenty of reasons why you might want to customize the fields captured by the HAProxy logs. For example: the default log format is giving you more information that you need you’re missing an important piece of information with the default log format you need to structure the fields in a way that an external tool can read them you rely on a standard log forma.. 2023. 8. 10.
반응형