close

目前在 Kubernetes 上找不到 session drain 的功能

聽說可以透過 nginx 的 upstream 的模組實現

我親自進行了實驗

 

nginx.conf

    upstream lb {

        server 406503101.ap-northeast-1.elb.amazonaws.com;

        server 63383460.ap-northeast-1.elb.amazonaws.com;

    }

 

server {

location / {

            proxy_pass http://lb;

        }

}

 

更改設定後使用

systemctl reload nginx

這樣就不會有連線問題

 

 

arrow
arrow
    文章標籤
    AWS nginx
    全站熱搜

    johnchen6927 發表在 痞客邦 留言(0) 人氣()