功能特点
跨平台、分级管理、实时监控、及时报警、远程操作、可扩展性、在线升级、安全可靠。
开发周期:1个月
开发工具:wxpython+socket+func+certmaster+cfengine+mysql
支持系统:Windows XP、Windows2000、Windows2003、Linux(2.6内核)
开发IDE:Komodo IDE 5+XML Copy Editor
框架图

系统截图

[登录窗口]
跨平台、分级管理、实时监控、及时报警、远程操作、可扩展性、在线升级、安全可靠。
开发周期:1个月
开发工具:wxpython+socket+func+certmaster+cfengine+mysql
支持系统:Windows XP、Windows2000、Windows2003、Linux(2.6内核)
开发IDE:Komodo IDE 5+XML Copy Editor
框架图
系统截图
[登录窗口]
本人新博客开张啦
,希望与大家多多交流,一起学习,共同进步。另:原BLOG:http://lts98.blog.tianya.cn将停止更新,标志一下
。
,希望与大家多多交流,一起学习,共同进步。另:原BLOG:http://lts98.blog.tianya.cn将停止更新,标志一下
。
为了更好管理、维护LVS平台,本人基于Django+certmaster+func开发了一套管理平台,主要功能模块分为性能图表、数据中心、虚拟IP池、主机管理、监控模块等功能,基本上是按F5-LTM管理平台思路来设计,下面只要对这几大块功能进行说明。
1、性能图表
功能说明:以小时、日、星期、月、年的图表展示LVS SERVER、VIP、SERVER等流量情况,效果图如下:
1、性能图表
功能说明:以小时、日、星期、月、年的图表展示LVS SERVER、VIP、SERVER等流量情况,效果图如下:

A brand new Rails/Merb app you put together over a weekend, a pack of Mongrels, a reverse proxy (like Nginx), and you're up and running. Well, almost, what about that one request that tends to run forever, often forcing the user to double check their internet connection? Response time is king, and you always want to make sure that your site feel snappy to the user. Did you know that Flickr optimizes all of their pages to render in sub 250ms?
When you're fighting with response times, the worst thing you can possibly do is queue up another request behind an already long running process. Not only does the first request take forever, but everyone else must wait in line for it to finish as well! To mitigate the problem HAProxy goes beyond a simple round-robin scheduler, and implements a very handy feature: intelligent request queuing!

.................................
更多http://www.igvita.com/2008/05/13/load-balancing-qos-with-haproxy/
故障现象
在数据库帐号密码没有问题,但应用死活连不上MSSQL数据库,日志报校验错误。
处理步骤
1、更换了MS官方的驱动换成开源的jtds-1.2.jar包问题依旧。
2、写了一个简单的jsp测试文件能正常连接数据库,晕。可以确定帐号、密码、MSSQL服务没有问题。
3、查看连接池配置,发现密码域串含有"&"号,在XML中是属于转义符,更个密码,连接成功:)
注:在XML中“&”号需要转成“&;”
在数据库帐号密码没有问题,但应用死活连不上MSSQL数据库,日志报校验错误。
处理步骤
1、更换了MS官方的驱动换成开源的jtds-1.2.jar包问题依旧。
2、写了一个简单的jsp测试文件能正常连接数据库,晕。可以确定帐号、密码、MSSQL服务没有问题。
3、查看连接池配置,发现密码域串含有"&"号,在XML中是属于转义符,更个密码,连接成功:)
注:在XML中“&”号需要转成“&;”
1、安装jdk
sudo apt-get install sun-java6-jdk
2、安装Eclipse
sudo apt-get install eclipse
3、安装pydev
下载:http://downloads.sourceforge.net/project/pydev/pydev/Pydev%201.5.0/org.python.pydev.feature-1.5.0.1251989166.zip?use_mirror=ncu并解压
运行Eclipse->Help->software update->Find and install->search for new features to install->new local site..->选择解压目录,搞定。
4、sudo apt-get install eclipse-cdt
新建一个C++工程:
file-->new-->project-->C++-->managed make C++ project (选这个不用自己写make file)
代码提示:
启动Eclipse.进入:Windows-->Preferences-->C/C++找到Environment。增加两个变量:
CPLUS_INCLUDE_PATH: /usr/include/c++/4.3.3
C_INCLUDE_PATH: /usr/include
sudo apt-get install sun-java6-jdk
2、安装Eclipse
sudo apt-get install eclipse
3、安装pydev
下载:http://downloads.sourceforge.net/project/pydev/pydev/Pydev%201.5.0/org.python.pydev.feature-1.5.0.1251989166.zip?use_mirror=ncu并解压
运行Eclipse->Help->software update->Find and install->search for new features to install->new local site..->选择解压目录,搞定。
4、sudo apt-get install eclipse-cdt
新建一个C++工程:
file-->new-->project-->C++-->managed make C++ project (选这个不用自己写make file)
代码提示:
启动Eclipse.进入:Windows-->Preferences-->C/C++找到Environment。增加两个变量:
CPLUS_INCLUDE_PATH: /usr/include/c++/4.3.3
C_INCLUDE_PATH: /usr/include
大多数的jar包的创建、更新都在Eclipse中去完成了,今天在Linux没有Eclipase的环境,还是乖乖用命令行了。
jar文件:/home/resin.jar
需更新包中com/caucho/server/port/Port.class类文件
方法1
jar uf resin.jar com/caucho/server/port/Port.class
要求是必须知道jar包的结构要非常熟悉,可以使用:jar tf resin.jar来查看。
方法2
解压resin.jar->覆盖相应类文件->再打包(jar cvf resin.jar com)
jar详细用法
用法:jar {ctxu}[vfm0Mi] [jar-文件] [manifest-文件] [-C 目录] 文件名 ...
选项:
-c 创建新的存档
-t 列出存档内容的列表
-x 展开存档中的命名的(或所有的〕文件
-u 更新已存在的存档
-v 生成详细输出到标准输出上
-f 指定存档文件名
-m 包含来自标明文件的标明信息
-0 只存储方式;未用ZIP压缩格式
-M 不产生所有项的清单(manifest〕文件
-i 为指定的jar文件产生索引信息
-C 改变到指定的目录,并且包含下列文件:
jar文件:/home/resin.jar
需更新包中com/caucho/server/port/Port.class类文件
方法1
jar uf resin.jar com/caucho/server/port/Port.class
要求是必须知道jar包的结构要非常熟悉,可以使用:jar tf resin.jar来查看。
方法2
解压resin.jar->覆盖相应类文件->再打包(jar cvf resin.jar com)
jar详细用法
用法:jar {ctxu}[vfm0Mi] [jar-文件] [manifest-文件] [-C 目录] 文件名 ...
选项:
-c 创建新的存档
-t 列出存档内容的列表
-x 展开存档中的命名的(或所有的〕文件
-u 更新已存在的存档
-v 生成详细输出到标准输出上
-f 指定存档文件名
-m 包含来自标明文件的标明信息
-0 只存储方式;未用ZIP压缩格式
-M 不产生所有项的清单(manifest〕文件
-i 为指定的jar文件产生索引信息
-C 改变到指定的目录,并且包含下列文件:
原因
服务器提供的递归查询的最大数量,导致不能提供DNS解析服务。
解决方法
在/etc/named.conf文件中的“options”中加入下面一行信息:
recursive-clients 1000000;
然后重新启动named即可
DNS and Bind的相关的内容
Limiting the number of clientsBIND 9 gives you the ability to restrict the number of clients your name server will serve concurrently. You can apply a limit to the number of recursive clients (resolvers plus name servers using your name server as a forwarder) with the recursive-clients substatement:
options {
recursive-clients 10;
};
The default limit is 1000. If you find your name server refusing recursive queries and logging, as shown by an error message like this one:
Sep 22 02:26:11 terminator named[13979]: client 192.249.249.151#1677: no more
recursive clients: quota reached
you may want to increase the limit. Conversely, if you find your name server struggling to keep up with the deluge of recursive queries it receives, you could lower the limit.
You can also apply a limit to the number of concurrent TCP connections your name server will process (for zone transfers and TCP-based queries) with the tcp-clients substatement. TCP connections consume considerably more resources than UDP because the host needs to track the state of the TCP connection. The default limit is 100.
服务器提供的递归查询的最大数量,导致不能提供DNS解析服务。
解决方法
在/etc/named.conf文件中的“options”中加入下面一行信息:
recursive-clients 1000000;
然后重新启动named即可
DNS and Bind的相关的内容
Limiting the number of clientsBIND 9 gives you the ability to restrict the number of clients your name server will serve concurrently. You can apply a limit to the number of recursive clients (resolvers plus name servers using your name server as a forwarder) with the recursive-clients substatement:
options {
recursive-clients 10;
};
The default limit is 1000. If you find your name server refusing recursive queries and logging, as shown by an error message like this one:
Sep 22 02:26:11 terminator named[13979]: client 192.249.249.151#1677: no more
recursive clients: quota reached
you may want to increase the limit. Conversely, if you find your name server struggling to keep up with the deluge of recursive queries it receives, you could lower the limit.
You can also apply a limit to the number of concurrent TCP connections your name server will process (for zone transfers and TCP-based queries) with the tcp-clients substatement. TCP connections consume considerably more resources than UDP because the host needs to track the state of the TCP connection. The default limit is 100.
























