LINUX减少TIME_WAIT
作者:anotherbug 日期:2010-03-03
vi /usr/src/linux/include/net/tcp.h
#define TCP_TIMEWAIT_LEN (60*HZ)
改为
#define TCP_TIMEWAIT_LEN (10*HZ)
重新编译内核
两台生产环境下的机器进行对比
使用默认设置的
# netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'
LAST_ACK 3
SYN_RECV 21
CLOSE_WAIT 41
ESTABLISHED 608
FIN_WAIT1 42
FIN...
#define TCP_TIMEWAIT_LEN (60*HZ)
改为
#define TCP_TIMEWAIT_LEN (10*HZ)
重新编译内核
两台生产环境下的机器进行对比
使用默认设置的
# netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'
LAST_ACK 3
SYN_RECV 21
CLOSE_WAIT 41
ESTABLISHED 608
FIN_WAIT1 42
FIN...
SUSE LINUX Enterprise Server 11
作者:anotherbug 日期:2009-04-11
Introducing SUSE Linux Enterprise 11
Welcome to the evolution.
The enterprise as we know it is evolving. It's becoming a place where everyone and everything must work together. That's why we made SUSE Linux Enterprise even more interoperable, more adaptable, and more reliable than ever before.
...
libGL.so.1
作者:anotherbug 日期:2009-04-03
减少TCP CLOSE_WAIT
作者:anotherbug 日期:2009-02-23
32位汇编移植到64位
作者:anotherbug 日期:2008-06-27
Too many open files解决方法
作者:anotherbug 日期:2008-05-14
CODE:
vi /etc/security/limits.conf
[code]
#Each line describes a limit for a user in the form:
#
#<domain> <type> <item> <value>
#
#Where:
#<domain> can be:
# - an user name
# - a group name, with @group syntax
# - t...
Starfish分布式文件系统详细安装
作者:anotherbug 日期:2008-03-04
安装内核Source
安装FUSE 2.7.3
安装Python-devel 2.5
[code]
# rpm -ivh tcl-8.4.14-11....
CODE:
# rpm -ivh kernel-source-2.6.18.2-34.i586.rpm
安装FUSE 2.7.3
CODE:
# tar -zvxf fuse-2.7.3.tar.gz
# cd fuse-2.7.3/
# ./configure --prefix=/usr --enable-kernel-module
# make install
# ldconfig
安装Python-devel 2.5
[code]
# rpm -ivh tcl-8.4.14-11....
another GlusterFS HA specification
作者:anotherbug 日期:2008-03-01
Yet another GlusterFS HA specification
Hi everyone,
Here is a template for a HA storage configuration with GlusterFS.
Configuration is :
2 nodes on a network A (or2 and or3)
1 node on a network B (op1)
We want to provide HA services for both networks A & B
In this example, we also p...
Hi everyone,
Here is a template for a HA storage configuration with GlusterFS.
Configuration is :
2 nodes on a network A (or2 and or3)
1 node on a network B (op1)
We want to provide HA services for both networks A & B
In this example, we also p...
[Gluster-devel] AFR documentation
作者:anotherbug 日期:2008-02-29
[Gluster-devel] AFR documentation
Krishna Srinivas
Wed, 17 Oct 2007 23:10:25 -0700
Hi All,
There has been lot of mails in the recent times on AFR and HA, I
guess the reason was lack of documentation on self-heal which
has been pending for long. In case any user thinks that his mail
was no...
Krishna Srinivas
Wed, 17 Oct 2007 23:10:25 -0700
Hi All,
There has been lot of mails in the recent times on AFR and HA, I
guess the reason was lack of documentation on self-heal which
has been pending for long. In case any user thinks that his mail
was no...
Setup Round robin DNS - 设置DNS轮询
作者:anotherbug 日期:2008-02-29
Round robin DNS is a technique in which load balancing is performed by a DNS server instead of a strictly dedicated machine. A DNS record has more than one value IP address.
When a request is made to the DNS server which serves this record, the answer it gives alternates for each request. For ins...
When a request is made to the DNS server which serves this record, the answer it gives alternates for each request. For ins...
标签: Round-robin DNS 轮询
GlusterFS安装/配置/测试
作者:anotherbug 日期:2008-02-28
操作系统 OpenSuse 10.2
1.下载
1) 下载GlusterFS
http://ftp.zresearch.com/pub/gluster/glusterfs/1.3/
http://europe.gluster.org/glusterfs/1.3/
2) 下载Fuse补丁
http://ftp.zresearch.com/pub/gluster/glusterfs/fuse/
http://europe.gluster.org/glusterfs/fuse/
2.安装
1) 安装Fuse
先安装kernel-source...
1.下载
1) 下载GlusterFS
http://ftp.zresearch.com/pub/gluster/glusterfs/1.3/
http://europe.gluster.org/glusterfs/1.3/
2) 下载Fuse补丁
http://ftp.zresearch.com/pub/gluster/glusterfs/fuse/
http://europe.gluster.org/glusterfs/fuse/
2.安装
1) 安装Fuse
先安装kernel-source...
checking kernel source version... Not found
作者:anotherbug 日期:2008-02-28
=== configuring in kernel (/root/glusterfs/fuse-2.7.2glfs8/kernel)
configure: running /bin/sh ./configure '--prefix=/usr' '--enable-kernel-module' --cache-file=/dev/null --srcdir=.
checking for a BSD-compatible install... /usr/bin/install -c
checking kernel source directory... /usr/src/linux-2.6...
configure: running /bin/sh ./configure '--prefix=/usr' '--enable-kernel-module' --cache-file=/dev/null --srcdir=.
checking for a BSD-compatible install... /usr/bin/install -c
checking kernel source directory... /usr/src/linux-2.6...
升级MYSQL
作者:anotherbug 日期:2008-02-27
[code]
linux-web-db-1:~/wyq # rpm -e MySQL-server-community-5.0.45-0.sles10
mysql 0:off 1:off 2:off 3:off 4:off 5:off 6:off
linux-web-db-1:~/wyq # rpm -ivh MySQL-server-community-5.0.51a-0.sles10.x86_64.rpm
Preparing... ###################################...
linux-web-db-1:~/wyq # rpm -e MySQL-server-community-5.0.45-0.sles10
mysql 0:off 1:off 2:off 3:off 4:off 5:off 6:off
linux-web-db-1:~/wyq # rpm -ivh MySQL-server-community-5.0.51a-0.sles10.x86_64.rpm
Preparing... ###################################...
200 Terabytes Served in 81 Days = 2.47TB per day!
作者:anotherbug 日期:2008-02-23
We interrupt our regular programming with a bit of geek braggery. What? We don’t have regular programming here? Sheesh, what kind of blog is this? It’s not a blog? It’s a “Web Log”? Whatever… back to the topic at hand…
A year and a half ago the company where I was contracting decided to build a v...
A year and a half ago the company where I was contracting decided to build a v...
标签: HAProxy






