使用netstat -lntp来看看有侦听在网络某端口的进程。当然,也可以使用 lsof。

esrally离线使用,有没有绕开git的方法?

Elasticsearch | 作者 zmc | 发布于2022年01月05日 | 阅读数:1234

想使用esrally对ES进行性能测试;
生产机器无法连接git,但是esrally似乎必须连git
 
各种类似于 Could not checkout [master]. Do you have uncommitted changes?', None 的报错;
请教下各位使用的时候怎么绕过去的,需要改什么配置嘛~
已邀请:

Ombres

赞同来自:

你的运行参数方便发一下么。我一般使用的时候都是指定 --track-path 

zqc0512 - andy zhou

赞同来自:

esrally  --track=http_logs --challenge=append-index-only-with-ingest-pipeline  --car="24gheap" --track-repository=zqc --offline --target-hosts=xxx:9201,xxx:9201,xxx7:9201,xxx:9201,xxx:9201:19200,xx0:9201,xx:9201:19200 --pipeline=benchmark-only --client-options="timeout:80000,request_timeout:80000,use_ssl:true,verify_certs:false,basic_auth_user:'elastic',basic_auth_password:'Abcd1234'" --report-file=/root/testrallyfile.csv --report-format=csv
 
把需要的那些json文件下载来下搞到指定目录就行了。用esrally --help查看。

just_finy - 一个simple的运维

赞同来自:

离线得先找台机器和生产环境一样的系统一样的python版本,一样的用户和home目录  然后安装虚拟环境, 下载tracks数据, 然后打包虚拟环境和  用户home目录 ~/.rally 
 
#centos7系统参考   # yum install python3 python3-pip
pip3 install virtualenv

virtualenv es_test
source es_test/bin/activate
python3 -m pip install esrally

安装git 1.9

tar xvf git-1.9.5.tar.gz
cd git-1.9.5
yum install perl install perl-ExtUtils-MakeMaker openssl-devel libcurl-devel -y
make prefix=/home/test/git19 all
make prefix=/home/test/git19 install
mkdir ~/bin
ln -s /home/test/git19/bin/* ~/bin/

esrally list tracks # 目前所有的 tracks

# 离线测试数据
curl -O raw.githubusercontent.com/elastic/rally-tracks/master/download.sh
chmod u+x download.sh
# download all data for the geonames track
./download.sh geonames # 下载 geonames track rally-track-data-geonames.tar 解压到运行的用户home 不能使用root用户 cd ~;tar -xf rally-track-data-geonames.tar

打包 es_test 目录和~/.rally 到生产 解压 source ~/es_test/bin/activate #开始使用

wajika

赞同来自:

能分享下如何压测的吗? 想了解下思路
我感觉这个命令 运行一下 然后拿到结果,完全没理解 发生了什么

要回复问题请先登录注册