1. 程式人生 > 其它 >netty系列之:EventExecutor,EventExecutorGroup和netty中的實現

netty系列之:EventExecutor,EventExecutorGroup和netty中的實現

安裝nignx
優化
ngx_http_stub_status_module
gx_http_rewrite_module

ngx_http_upstream_module

upstream {
  server 10.10.10.1:80 ;
  server 10.10.10.1:800 weight 2;
  server 10.10.10.1:8000 weight 2 max_fails 2 fail_timeout 5s;
  server 10.10.10.1:90 weight 2 max_fails 2 fail_timeout 5s backup ;
  server 10.10.10.1:9000 weight 2 max_fails 2 fail_timeout 5s down;
  rr;
  wrr;
  ip_hash;
  fair;
  url_hash;
  least_conn
  
}

ngx_stream_upstream_module

stream {
        upstream kube-apiserver {
                server 10.4.7.21:6443     max_fails=3 fail_timeout=30s;
                server 10.4.7.22:6443     max_fails=3 fail_timeout=30s;
  }
    server {
                listen 6443;
        proxy_connect_timeout 2s;
        proxy_timeout 900s;
        proxy_pass kube-apiserver;
  }
}

ngx_http_proxy_module


location / {
proxy_set_header 
    proxy_set_header Host       $http_host;  $hody $remote_addr
    proxy_set_header x-forwarded-for $proxy_add_x_forwarded_for;
client_body_buffer_size 
proxy_connect
proxy_send_timeout
proxy_read_timeout
proxy_buffer_size

proxy_buffers 8 4k;
proxy_busy_buffer_size
proxy_temp_file_write_size 
client_body_buffer_size
}

ngx_http_log_module

core

location
if

$http_user_agent
$host
$http_host