Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
YiRanCN committed Feb 27, 2025
1 parent d68da5c commit 72f51fa
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion docs/study/back/API网关/APISIX高并发优化.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@


首先,CPU越多,并发数量越多


### 配置上游服务的keep-alive

```shell
Expand Down Expand Up @@ -65,4 +70,26 @@ server.undertow.keep-alive-timeout=5000000
"id": "00000000000000000956",
"create_time": 1729748682,
"update_time": 1729818639
}
}

### 关闭日志输出

```shell
enable_access_log: false
```

### 修改work数量

```shell
# 设置为CPU的数量
worker_processes: 24
```


### 修改每个work能处理的最大连接数

```shell
#
worker_connections: 10000
worker_rlimit_nofile: 20000
```

0 comments on commit 72f51fa

Please sign in to comment.