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
這樣就不會有連線問題
文章標籤
全站熱搜