Loadrunner Controller cannot create Vusers

1.Loadrunner agent 不启动。
解决:开始-Lr-tools-lr-agent run-time setting进行设置。
2.提示:Loadrunner Controller cannot create Vusers.
Ensure that your load generators are available and that your scrīpt are valid。
解决:打开:Virtual User Generator -tools - Create Controller Scenario 将 Load Generator 设置 为 localhost 就可以了。
—-其实本来Vuser G里就默认的是localhost了。出现此情况的原因可能是因为脚本是从别的机器拷过来的,不是本地创建的。如果直接在controller中加载,则会没法创建用户。
解决办法:...

Memcached 集群架构问题归纳

集群架构方面的问题
o memcached是怎么工作的?
o memcached最大的优势是什么?
o memcached和MySQL的query cache相比,有什么优缺点?
o memcached和服务器的local cache(比如PHP的APC、mmap文件等)相比,有什么优缺点?
o memcached的cache机制是怎样的?
o memcached如何实现冗余机制? �
o memcached如何处理容错的?
o 如何将memcached中item批量导入导出?
o 但是我确实需要把memcached中的item都dump出来,确实需要把数据load到memcached中,怎么办?
o memcached是如何做...

memcache一致性 hash 算法(consistent hashing)

consistent hashing 算法早在 1997 年就在论文 Consistent hashing and random trees 中被提出,目前在 cache 系统中应用越来越广泛;
1 基本场景
比如你有 N 个 cache 服务器(后面简称 cache ),那么如何将一个对象 object 映射到 N 个 cache 上呢,你很可能会采用类似下面的通用方法计算 object 的 hash 值,然后均匀的映射到到 N 个 cache ;
hash(object)%N
一切都运行正常,再考虑如下的两种情况;
1 一个 cache 服务器 m down 掉了(在实际应用中必须要考虑这种情况),这样所有映射到 cache m 的...

shell中的一个类似substr的用法

原来在shell中如果遇到要截取字符串的情况,就调用awk中的substr来实现。
今天了解到一种新的方法,原来shell中本身就支持这种用法。
如,有一字符串”12345678″,现在要截取第三个到第六个字符的字符串区间。
则可以:
[xok.la ~]$ export str="123456789"[xok.la ~]$ echo ${str:3:(6-3)}456[xok.la ~]$ unset str
从以上第二个表达式可以看出这个用法,即:${str:3:(6-3)}
可以归纳为:${str:begin:len},且支持表达式,如:6-3。
补充一下从网上找到一些其他的用法:
...

require: no such file to load mkmf (LoadError)

# gem install mysqlBuilding native extensions. This could take a while…ERROR: Error installing mysql:ERROR: Failed to build gem native extension./usr/bin/ruby1.8 extconf.rbextconf.rb:10:in `require’: no such file to load — mkmf (LoadError)from extconf.rb:10Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/mysql-2.8.1 for inspection.Results logged to /usr/lib/ruby/gems/1.8/gems/mysql-2.8.1/ext/mysql_api/gem_make.out
解决
aptitude install ruby build-essential libopenssl-ruby ruby1.8-dev

...

linux shell 中”2>&1″含义

脚本是:
nohup /mnt/Nand3/H2000G  >/dev/null  2>&1  &
对于& 1 更准确的说应该是文件描述符 1,而1 一般代表的就是STDOUT_FILENO,实际上这个操作就是一个dup2(2)调用.他标准输出到all_result ,然后复制标准输出到文件描述符2(STDERR_FILENO),其后果就是文件描述符1和2指向同一个文件表项,也可以说错误的输出被合并了.其中0表示键盘输入 1表示屏幕输出 2表示错误输出.把标准出错重定向到标准输出,然后扔到/DEV/NULL下面去。通俗的说,就是把所有标准输出和标准出错都扔到...

SSL-DNS,encryption

Intro
Inspired by the HTTPS-DNS project I started to look for another approach for doing encrypted dns-requests. The following solution should work with nearly all unixoid operatingsystems ( for Microsoft Windows see below ) and can easily be applied. It works absolutly transparently for the clients and servers.
Encrypting DNS-requests is usefull, because it
prevents manipulation […]

...

PPTP、L2TP、IPSec和SSLVPN(典型应用OpenVPN)的区别

VPN
(虚拟专用网)发展至今已经不在是一个单纯的经过加密的访问隧道了,它已经融合了访问控制、传输管理、加密、路由选择、可用性管理等多种功能,并在全球的 信息安全体系中发挥着重要的作用。也在网络上,有关各种VPN协议优缺点的比较是仁者见仁,智者见智,很多技术人员由于出于使用目的考虑,包括访问控制、 安全和用户简单易用,灵活扩展等各方面,权衡利弊,难以取舍;尤其在VOIP语音环境中,网络安全显得尤为重要,因此现在越来越多的网络电话和语音网关支...

|