COSBench
time drift between controller and driver-driver1 is 18898997 mSec
question:
2016-06-22 11:47:56,749 [INFO] [WorkloadProcessor] - START WORK: init_create_bucket
2016-06-23 00:32:54,000 [INFO] [AbstractCommandTasklet] - time drift between controller and driver-driver1 is 18898997 mSec
2016-06-23 00:32:54,000 [WARN] [AbstractCommandTasklet] - time drift is still longer than tolerable time drift 300 mSec after 3 times of synchronization
每次启动一个测试用例,都报失败,并且测试机器的时间被有规律地修改,查看cosbench的日志发现是cosbench的controller和driver取系统时间的时区有差异导致的,
然后cosbench主动去修改了操作系统时间,但是下一次测试取时间仍然因为时区问题无法通过,下述我们通过制定java进程的时区来同步controller和driver的时间,就可以顺利测试了。
answer:
Step one:
cp /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
Step two:
vim cosbench-start.sh
#/usr/bin/nohup java -Dcosbench.tomcat.config=$TOMCAT_CONFIG -server -cp main/* org.eclipse.equinox.launcher.Main -configuration $OSGI_CONFIG -console $OSGI_CONSOLE_PORT 1> $BOOT_LOG 2>&1 &
/usr/bin/nohup java -Duser.timezone=America/Los_Angeles -Dcosbench.tomcat.config=$TOMCAT_CONFIG -server -cp main/* org.eclipse.equinox.launcher.Main -configuration $OSGI_CONFIG -console $OSGI_CONSOLE_PORT 1> $BOOT_LOG 2>&1 &
tips:
Los_Angeles 只是示例,具体时区请根据自己所在时区配置。