PHP -> 猜測可能與設定有關
資料庫 -> 可能某個地方爛掉了
防砍站機制 -> 這個或許要請 kenny 兄來決定了,先暫停一、兩天看看是否情況就正常了。
辛苦了,照目前的設計,防砍站機制並不會如之前那樣容易 drop 連線:
1) 若 loading 不高,則不會抓 session。
2) 抓到 session 後,若 connection 不高,也不會抓到。
3) 若被抓到多次 (5 次中有 4 次),開始 limit。
4) 若被多次 limit (5 次中有 4 次),開始 drop。
5) 每次執行,就刪舊 limit 與 drop rules。
而目前的限制如下:
LIMIT_CNU=24 # max number of conncetion allowed at the time
LIMIT_NU=3 # max number of time allowed in the source list
DROP_NU=3 # max number of time allowed in the limit list
CL_S=10 # CPU loading for system
CL_U=75 # CPU loading for user
HC_N=300 # HTTP connection number for session
HC_U=30 # HTTP connection number for source
IPT_LTD=3 # limited number of packet in iptables rules
HTTP_PORT=80 # HTTP port number
不過,我可以在週末將此 script 停下來,讓您測試看看。
星期一我再跑好了。如何?