PART Ⅰ : 容器云OPENSHIFT
- 安装
- 数据持久化
- 集群管理
- 数据持久化
- 管理
- 网络
- 安全审计
- 工具应用部署
PART Ⅱ:容器云 KUBERNETES
- 基础
- 原理
- 系统应用/网络CNI/TRaefik
- 安装
- 集群管理
- 用户认证ServiceAccount与授权策略RBAC
- K8S应用管理工具Helm
- 问题
- 辅助工具
- Doing:K8S 多集群管理与网络互联
- VM On K8S
PART Ⅲ:持续集成与持续部署
- CICD优化总结
- Jenkins
- Gitlab
- Drone
- Nexus
- 配置
- 使用OrientDB Console在DB层面修改配置
- [设置SMTP邮件服务](https://www.wenjiangs.com/doc/krrcu7ebin9hh
- 仓库管理
- 数据备份恢复
- API
- Jenkins相关插件
- 配置
- SonarQube静态代码扫描分析
- LDAP
- Apollo
- 项目管理工具
- Jira
- Redmine
- Harbor
- Vault
- Alfred
- Web IDE: VSCode
- DolphinScheduler
PART Ⅴ:日志/监控/告警
- Logging
- Kafka/Zookeeper
- Filebeat
- Metrics
- Tracing
- Sentry日志聚合告警平台
PART Ⅵ:基础
- Docker
- Shell脚本
- Mave
- git
- 正则表达式
- SSL/TLS
- Ceph
- 性能压力测试
- PXE+Kickstart
- netboot.xyz
- Tool
- Windows
- MacOS小技巧
- Linux
- Linux排错优化
- iptables详解
- MySQL
- Redis
- 负载均衡与代理
- 代理服务器
- Nginx
- GitBook
- Telegram机器人
- OpenVPN Server
- iDRAC
- vSphere
- Raspberry Pi树莓派
- 钉钉机器人
- Aliyun CLI
- 音、视频处理工具:fffmpeg
- 图片处理工具:Imagemagick
- PDF处理工具:Ghostscript
- Nvidia
- Virtualbox 虚拟机管理
- 阿里云产品使用总结
- RustDesk:可自建远程控制软件
- Poste:自建邮件服务器
- 使用 Jlink构建最小化依赖的 JRE 环境
- Aria2
- Asuswrt-Merlin
- Trap:Shell脚本信号跟踪
- 零散知识汇总
- BarkServer通知
- Synology
PART Ⅶ:数据存储、处理
PART VIII:CODE
- Python学习笔记
- 基础语法
- statik 将静态资源文件打包到二进制文件中
- HTML/CSS 学习笔记
- JavaScript学习笔记
PART X:HACKINTOSH
PART XI:安全
文章来源于网络收集而来,版权归原创者所有,如有侵权请及时联系!
elasticsearch性能测试
ElasticSearch性能测试esrally
官方文档:https://esrally.readthedocs.io/en/stable/
GitHub:https://github.com/elastic/rally
1、安装esrally
pip3 install esrally
brew install pbzip2
2、配置
1、命令格式
esrally [-h] [--version] {race,list,info,create-track,generate,compare,download,install,start,stop}
可选参数:
-h, --help show this help message and exit
--version show program's version number and exit
子命令:
{race,list,info,create-track,generate,compare,download,install,start,stop}
race Run a benchmark
list List configuration options
info Show info about a track
create-track Create a Rally track from existing data
generate Generate artifacts
compare Compare two races
download Downloads an artifact
install Installs an Elasticsearch node locally
start Starts an Elasticsearch node locally
stop Stops an Elasticsearch node locally
Find out more about Rally at https://esrally.readthedocs.io/en/2.2.0/
2、子命令
①列出内置的测试数据
$ esrally list tracks
测试数据 | 测试数据描述 | 文档个数 | 压缩后大小 | 未压缩大小 | Default Challenge | All Challenges |
---|---|---|---|---|---|---|
geonames | POIs from Geonames | 11,396,503 | 252.9 MB | 3.3 GB | append-no-conflicts | append-no-conflicts,append-no-conflicts-index-only,append-sorted-no-conflicts,append-fast-with-conflicts,significant-text |
percolator | Percolator benchmark based on AOL queries | 2,000,000 | 121.1 kB | 104.9 MB | append-no-conflicts | append-no-conflicts |
http_logs | HTTP server log data | 247,249,096 | 1.2 GB | 31.1 GB | append-no-conflicts | append-no-conflicts,runtime-fields,append-no-conflicts-index-only,append-sorted-no-conflicts,append-index-only-with-ingest-pipeline,update,append-no-conflicts-index-reindex-only |
geoshape | Shapes from PlanetOSM | 60,523,283 | 13.4 GB | 45.4 GB | append-no-conflicts | append-no-conflicts |
metricbeat | Metricbeat data | 1,079,600 | 87.7 MB | 1.2 GB | append-no-conflicts | append-no-conflicts |
geopoint | Point coordinates from PlanetOSM | 60,844,404 | 482.1 MB | 2.3 GB | append-no-conflicts | append-no-conflicts,append-no-conflicts-index-only,append-fast-with-conflicts |
nyc_taxis | Taxi rides in New York in 2015 | 165,346,692 | 4.5 GB | 74.3 GB | append-no-conflicts | append-no-conflicts,append-no-conflicts-index-only,append-sorted-no-conflicts-index-only,update,append-ml,date-histogram |
geopointshape | Point coordinates from PlanetOSM indexed as geoshapes | 60,844,404 | 470.8 MB | 2.6 GB | append-no-conflicts | append-no-conflicts,append-no-conflicts-index-only,append-fast-with-conflicts |
so | Indexing benchmark using up to questions and answers from StackOverflow | 36,062,278 | 8.9 GB | 33.1 GB | append-no-conflicts | append-no-conflicts |
eventdata | This benchmark indexes HTTP access logs generated based sample logs from the elastic.co website using the generator available in https://github.com/elastic/rally-eventdata-track | 20,000,000 | 756.0 MB | 15.3 GB | append-no-conflicts | append-no-conflicts,transform |
eql | EQL benchmarks based on endgame index of SIEM demo cluster | 60,782,211 | 4.5 GB | 109.2 GB | default | default |
nested | StackOverflow Q&A stored as nested docs | 11,203,029 | 663.3 MB | 3.4 GB | nested-search-challenge | nested-search-challenge,index-only |
noaa | Global daily weather measurements from NOAA | 33,659,481 | 949.4 MB | 9.0 GB | append-no-conflicts | append-no-conflicts,append-no-conflicts-index-only,top_metrics,aggs |
pmc | Full text benchmark with academic papers from PMC | 574,199 | 5.5 GB | 21.7 GB | append-no-conflicts | append-no-conflicts,append-no-conflicts-index-only,append-sorted-no-conflicts,append-fast-with-conflicts |
②创建测试实例
esrally create-track \
--track=http_logs \
--target-hosts=127.0.0.1:9200 \
--client-options="timeout:60,basic_auth_user:'elastic',basic_auth_password:'*****'" \
--indices="products,companies" \
--output-path=~/tracks
track.json
contains the actual Rally track. For details see the track reference.companies.json
andproducts.json
contain the mapping and settings for the extracted indices.*-documents.json(.bz2)
contains the sources of all the documents from the extracted indices. The files suffixed with-1k
contain a smaller version of the document corpus to support test mode.
③
④
⑤
⑥
⑦
⑧
⑨
1、安装esrally
pip3 install esrally
2、创建测试任务和数据
esrally create-track \
--track=http_logs \
--target-hosts=127.0.0.1:9200 \
--client-options="timeout:60,basic_auth_user:'elastic',basic_auth_password:'*****" \
--indices="products,companies" \
--output-path=~/tracks
3、
esrally race --distribution-version=6.0.0 --track=geopoint --challenge=append-fast-with-conflicts
esrally list tracks
esrally list races
esrally create-track \
--track=http_logs \
--target-hosts=127.0.0.1:9200 \
--client-options="timeout:60,basic_auth_user:'elastic',basic_auth_password:'*****'" \
--indices="products,companies" \
--output-path=~/tracks
esrally race \
--target-hosts=127.0.0.1:9200 \
--client-options="timeout:60,basic_auth_user:'elastic',basic_auth_password:'*****'" \
--track=geonames
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论