ipvsadm添加虛擬服務器報錯問題


命令和報錯如下:

[root@test ~]# ipvsadm -A -t 192.168.113.5:80 -s wwr
Memory allocation problem

顯示的是內存分配問題,我認為自己處理不了,就想着直接搜索引擎解決,結果按照別人博客的指引查看/var/log/message時,發現其實是調度算法寫錯了,沒有wwr這個模式。。。。

日志查看如下:

[root@test ~]# tail -f /var/log/messages 
Aug  1 16:36:56 192 chronyd[6203]: Selected source 185.255.55.20
Aug  1 16:37:30 192 systemd: Reloading.
Aug  1 16:37:30 192 yum[7888]: Installed: ipvsadm-1.27-7.el7.x86_64
Aug  1 16:39:51 192 kernel: IPVS: Registered protocols (TCP, UDP, SCTP, AH, ESP)
Aug  1 16:39:51 192 kernel: IPVS: Connection hash table configured (size=4096, memory=64Kbytes)
Aug  1 16:39:51 192 kernel: IPVS: Creating netns size=2048 id=0
Aug  1 16:39:51 192 kernel: IPVS: ipvs loaded.
Aug  1 16:39:51 192 kernel: IPVS: Scheduler module ip_vs_wwr not found
Aug  1 16:40:05 192 kernel: IPVS: Scheduler module ip_vs_wwr not found
Aug  1 16:44:26 192 kernel: IPVS: Scheduler module ip_vs_wwr not found

總結:出現問題,首先應該想到的是查看日志,如果有些服務沒有日志,就查看系統日志,如/var/log/messages


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM