app server upgrade# Programming - 葵花宝典
z*n
1 楼
目前的方法是:
1)半夜切断 load balancer to cut off traffic
2) back up DB
3)更新apps server
4) smoke test to verify everything work
5) turn on load balancer to get in traffic
我觉得不需要半夜更新,
1) 白天直接spawn extra apps server with +1 version.
2) perform smoke test on new apps server
3) switch load balancer from old apps server to new apps server
但是team有异议,依据是如果step 2) new apps server 有问题,写入的数据有问题
或者screw db, 同时live traffic 也写入db, 就没有一个完美的 clean db endpoint
to rollback.
大家讨论一下?
1)半夜切断 load balancer to cut off traffic
2) back up DB
3)更新apps server
4) smoke test to verify everything work
5) turn on load balancer to get in traffic
我觉得不需要半夜更新,
1) 白天直接spawn extra apps server with +1 version.
2) perform smoke test on new apps server
3) switch load balancer from old apps server to new apps server
但是team有异议,依据是如果step 2) new apps server 有问题,写入的数据有问题
或者screw db, 同时live traffic 也写入db, 就没有一个完美的 clean db endpoint
to rollback.
大家讨论一下?