謝謝老大的分享,受教
不過,這個 solution 應該只能用在 HTTP 的服務,一般 TCP 的服務好像沒辦法
透過 ab 去作壓力測試 ab -n 50000 -c 200
http://203.66.125.200/
效能似乎也沒甚麼影響,似乎不錯
增加前:
ap Server 1:
Complete requests: 50000
Failed requests: 5866
ap Server 2:
Complete requests: 50000
Failed requests: 5944
ap Server 3:
Complete requests: 50000
Failed requests: 6050
ap Server 4:
Complete requests: 50000
Failed requests: 5375
ap Server 5:
Complete requests: 50000
Failed requests: 5280
ap Server 6:
Complete requests: 50000
Failed requests: 5334
增加後:
ab Server 1:
Complete requests: 50000
Failed requests: 5655
ab Server 2:
Complete requests: 50000
Failed requests: 5949
ab Server 3:
Complete requests: 50000
Failed requests: 5835
ab Server 4:
Complete requests: 50000
Failed requests: 5375
ab Server 5:
Complete requests: 50000
Failed requests: 5494
ab Server 6:
Complete requests: 50000
Failed requests: 5365