Skip to content

Commit 952cf1b

Browse files
authored
Merge pull request #30 from MigoXLab/feat/multi-process
update readme
2 parents 406d9b3 + 0bdeb6a commit 952cf1b

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,17 @@ Use pre-built Docker images to start all services with one click:
6565
# Download and run one-click deployment script
6666
curl -fsSL https://raw.githubusercontent.com/MigoXLab/LMeterX/main/quick-start.sh | bash
6767
```
68+
69+
### Multi-Instance Deployment (Supports Concurrent Testing Tasks)
70+
71+
```bash
72+
# Download the deployment file docker-compose.yml
73+
curl -fsSL -o docker-compose.yml https://raw.githubusercontent.com/MigoXLab/LMeterX/main/docker-compose.yml
74+
# Start multiple instances using the --scale
75+
# Start 2 backends + 2 engines (the number can be adjusted as needed)
76+
docker compose up -d --scale backend=2 --scale engine=2
77+
```
78+
6879
### Usage Guide
6980

7081
1. **Access Web Interface**: Open http://localhost:8080

README_CN.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,18 @@ LMeterX 采用微服务架构,由四个核心组件构成:
6363
使用预构建的 Docker 镜像,一键启动所有服务:
6464

6565
```bash
66-
# 一键启动所有服务
66+
# 一键启动所有服务(默认各服务 1个实例)
6767
curl -fsSL https://raw.githubusercontent.com/MigoXLab/LMeterX/main/quick-start.sh | bash
6868
```
69+
### 多实例部署(支持并发压测任务)
70+
71+
```bash
72+
# 下载部署文件 docker-compose.yml
73+
curl -fsSL -o docker-compose.yml https://raw.githubusercontent.com/MigoXLab/LMeterX/main/docker-compose.yml
74+
# 使用 --scale 启动多实例
75+
# 启动 2 个 backend + 2 个 engine(可根据需要调整数量)
76+
docker compose up -d --scale backend=2 --scale engine=2
77+
```
6978

7079
### 使用指南
7180

0 commit comments

Comments
 (0)