{"id":541857,"date":"2021-10-01T13:29:27","date_gmt":"2021-10-01T05:29:27","guid":{"rendered":"http:\/\/4563.org\/?p=541857"},"modified":"2021-10-01T13:29:27","modified_gmt":"2021-10-01T05:29:27","slug":"%e5%88%86%e4%ba%ab%e4%b8%aahaproxy%e4%b8%ad%e8%bd%ac%e4%bb%a3%e7%a0%81%e5%90%a7","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=541857","title":{"rendered":"\u5206\u4eab\u4e2ahaproxy\u4e2d\u8f6c\u4ee3\u7801\u5427"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>tianky<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u5206\u4eab\u4e2ahaproxy\u4e2d\u8f6c\u4ee3\u7801\u5427<\/h3>\n<p>  \t\t\u6211\u662f\u4e2d\u8f6ccf\u7684\u6d41\u91cf\u7528\u7684\uff0c\u6548\u679c\u5f88\u4e0d\u9519 \u5fb7\u9e21\u4e5f\u80fd\u4e0a2w<\/p>\n<p>  global<br \/>  ulimit-n51200<\/p>\n<p>  defaults<br \/>  log global<br \/>  mode&nbsp; &nbsp; tcp<br \/>  optiondontlognull<br \/>  timeout connect 1000ms<br \/>  timeout client 150000ms<br \/>  timeout server 150000ms<\/p>\n<p>  frontend hi-in<br \/>  bind :::{listenPort} ##\u76d1\u542c\u7aef\u53e3 {listenPort}<br \/>  acl hdr_connection_upgrade hdr(Connection)-i upgrade<br \/>  acl hdr_upgrade_websockethdr(Upgrade)&nbsp; &nbsp;-i websocket<br \/>  use_backend hi-out if hdr_connection_upgrade hdr_upgrade_websocket<br \/>  default_backend hi-out<\/p>\n<p>  default_backend hi-out<br \/>  backend hi-out<br \/>  server server1 {remoteIp}:443 maxconn 20480##\u4e2d\u8f6c\u7684\u8fdc\u7a0bIP {remoteIp}<\/p>\n<p>  \t\t\t\t\t<strong>adcen<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tresolvers dns<br \/>  parse-resolv-conf<br \/>  resolve_retries 3<br \/>  timeout retry 2s<br \/>  hold valid 60s<\/p>\n<p>  listen TCP<br \/>  bind :1234<br \/>  mode tcp<br \/>  server srv1 address:port check resolvers dns<\/p>\n<p>  \u90fdtcp\u4e86\uff0c\u76f4\u63a5\u8f6c\u53d1\u5c31\u884c\uff0c\u8fd9\u6837\u8fd8\u652f\u6301ddns\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>optimism<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5206\u4eab\u5e2e\u9876&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5468\u6da6\u53d1<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\thaproxy \u4e0d\u5403BBR \u4e0d\u597d\u7528\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>tianky \u5927\u4f6c\u6709\u8bdd\u8bf4 : \u5206\u4eab&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/541857"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=541857"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/541857\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=541857"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=541857"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=541857"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}