Wrk性能测试工具
目标
- wrk 入门
- 使用 wrk 压测已有接口 写接口测试 读接口测试
wrk 安装
|
|
命令
目标
wrk 安装
|
|
命令
介绍 Protobuf 的两种安装方式。
1、从github上下载protobuf3,这里以 Mac 版本 Protocol Buffers v3.13.0 为例。有很多语言版本,Mac版本选择第一个。
无意间发现yaml提供了一个特别有意思的功能:锚点(&)和别名(*)。可以使用它们来引用 yaml 中一些重复的配置。
yaml 配置如下:
|
|
等同下面yaml配置:
|
|
1、首先 Mac 端通过 brew 安装 docker-connector
宿主机:Mac
容器:在Mac上安装的 CentOS8 容器
现象:
1、docker-comose up 启动容器,提示信息如下:
|
|
2、进入容器中,无法使用 systemctl 命令,提示信息如下:
一个灵活的轻量级命令行JSON处理器。
简单讲,就像一个机器,输入JSON数据,经过加工处理后,产出符合你要求的数据,可提取、可转换或其他大量的标准操作。
安装
|
|
初始化项目
|
|
环境变量配置
|
|
参考:Docker CE镜像
Ceph 是一个开源的分布式存储系统,提供了对象存储、块存储和文件系统三种存储接口。Ceph 将数据存储在逻辑存储池中,使用 CRUSH 分布式算法决定如何将数据分散存储在集群的各个节点上,以实现高可用性和数据冗余。
参考
硬件
| Resource | Minimum | Recommended |
|---|---|---|
| CPU | 2CPU | 4CPU |
| Mem | 4G | 8G |
| Disk | 40G | 160G |
软件
| Resource | Minimum | Description |
|---|---|---|
| Docker Engine | Version 20.10.10-ce+ | Docker Engine documentation |
| Docker Compose | v1.18.0+ or docker compose v2 | Docker Compose documentation |
| OpenSSL | Latest is preferred | Used to generate certificate and keys for Harbor |
端口
| Port | protocol | Description |
|---|---|---|
| 443 | HTTPS | Harbor portal and core API accept HTTPS requests on this port. You can change this port in the configuration file. |
| 4443 | HTTPS | Connections to the Docker Content Trust service for Harbor. You can change this port in the configuration file. |
| 80 | HTTP | Harbor portal and core API accept HTTP requests on this port. You can change this port in the configuration file. |
下载