C# KeepAlive的相关设置网上有很多相关KeepAlive的内容,终于找到了有关C#的这方面资料,设置了下,有行可靠! TcpListener myListener = new TcpListener(IPAddress.Any, port);//绑定端口IP信息 myListener......
系统版本:D2.6.32-431.el6.x86_64虚拟机:四台环境准备:关闭selinux;关闭iptables;其中两台nginx+keepalive已安装且正常;另外两台的节点web工作正常;#为了更好的测试,web1:www.22web2:www.23;nginx安装:yuminstallpcre*-yyuminstallopensslopenssl-devel-yuseradd-s/..
分类:
其他好文 时间:
2015-11-02 06:48:28
阅读次数:
318
首先分析一下有哪些原因可能会导致负载不均:1、lvs自身的汇话保持(persistent10)可能会导致负载不均;2、调度算法的设置可能会导致;例如rr、wrr、wlc、lc算法;3、后端RS节点的汇报保持参数,例如apache的keepalive参数;4、访问量比较少的情况,不均衡的现象更加明显;5、..
分类:
其他好文 时间:
2015-11-02 06:46:48
阅读次数:
223
配置keepalived:1、使用DR模式:环境说明:192.168.2.205node1.sky.comkeepalived+lvs服务器DIP192.168.2.206node2.sky.comkeepalived+lvs服务器DIP192.168.2.220lvsVIP192.168.2.207web1.sky.comapache服务器192.168.2.208web2.sky.comapache服务器192.168.2.100window客户端..
分类:
其他好文 时间:
2015-11-01 19:39:48
阅读次数:
327
#!/bin/bashwhile:do###processcountNGINX_COUNT=`ps-Cnginx--no-header|wc-l`KEEPALIVED_COUNT=`ps-Ckeepalived--no-header|wc-l`#if[$NGINX_COUNT-eq0]&&[$KEEPALIVED_COUNT-eq0];then#/etc/init.d/nginxrestart&&/etc/init.d/keepalivedrestartif[$NGINX_CO..
分类:
其他好文 时间:
2015-10-31 01:49:32
阅读次数:
256
加入nginx宕了,keepalive也跟着自杀#!/bin/bashwhile:donginxpid=`ps-Cnginx--no-header|wc-l`if[$nginxpid-eq0];then/etc/init.d/nginxrestartsleep5nginxpid=`ps-Cnginx--no-header|wc-l`if[$nginxpid-eq0];then/etc/init.d/keepalivedstopfifisleep5done
分类:
其他好文 时间:
2015-10-31 01:48:56
阅读次数:
208
#!/bin/bashtar-zvxfkeepalived-1\[1\].1.17.tar.gzyum-yinstallkernel-develln-s/usr/src/kernels/2.6.18-164.el5-i686//usr/src/linuxcdkeepalived-1.1.17/yuminstallopenssl-*-y./configure--prefix=/usr/local/keepalivedmakemakeinstallcp/usr/local/keepalived/etc/rc.d/..
分类:
其他好文 时间:
2015-10-31 01:48:07
阅读次数:
248
1.网络相关 netstat -anp | grep TIME_WAIT?? 查看timewait状态的socket lsof -p xx | grep ":9920" 查看进程中连接涉及9920端口的fd netstat -n | awk ‘/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}’...
分类:
系统相关 时间:
2015-10-29 22:01:15
阅读次数:
215
背景要求不考虑session会话保持通过域名来访问不同的虚拟主机。nginx_proxy配置[root@mysqlconf]#catnginx.conf
worker_processes1;
events{
worker_connections1024;
}
http{
includemime.types;
default_typeapplication/octet-stream;
sendfileon;
keepalive_timeout65;
ups..
分类:
其他好文 时间:
2015-10-23 00:18:11
阅读次数:
237
今天机器的日志有下面的报错:Oct2215:22:19web1kernel:TCP:timewaitbuckettableoverflowOct2215:22:19web1kernel:TCP:timewaitbuckettableoverflowOct2215:22:19web1kernel:TCP:timewaitbuckettableoverflowOct2215:22:19web1kernel:TCP:timewaitbuckettableoverflowOct2215:2..
分类:
其他好文 时间:
2015-10-22 17:34:17
阅读次数:
328