Skip to content
GitLab
菜单
为什么选择 GitLab
定价
联系销售
探索
为什么选择 GitLab
定价
联系销售
探索
登录
获取免费试用
主导航
搜索或转到…
项目
GitLab
管理
动态
成员
标记
计划
议题
议题看板
里程碑
迭代
需求
代码
合并请求
仓库
分支
提交
标签
仓库图
比较修订版本
代码片段
锁定的文件
构建
流水线
作业
流水线计划
测试用例
产物
部署
发布
Package registry
容器镜像库
模型注册表
运维
环境
Terraform 模块
监控
事件
服务台
分析
价值流分析
贡献者分析
CI/CD 分析
仓库分析
代码评审分析
议题分析
洞察
模型实验
效能分析
帮助
帮助
支持
GitLab 文档
比较 GitLab 各版本
社区论坛
为极狐GitLab 提交贡献
提交反馈
隐私声明
快捷键
?
新增功能
4
代码片段
群组
项目
显示更多面包屑
gitlab-cn
GitLab
提交
f0e88f92
未验证
提交
f0e88f92
编辑于
1 year ago
作者:
Gregorius Marco
提交者:
GitLab
1 year ago
浏览文件
操作
下载
补丁
差异文件
Deprecate docs for min and max_concurrency
Also adds a section on setting the new concurrency option
上级
6b895892
No related branches found
No related tags found
无相关合并请求
变更
1
隐藏空白变更内容
行内
左右并排
显示
1 个更改的文件
doc/administration/sidekiq/extra_sidekiq_processes.md
+44
-12
44 个添加, 12 个删除
doc/administration/sidekiq/extra_sidekiq_processes.md
有
44 个添加
和
12 个删除
doc/administration/sidekiq/extra_sidekiq_processes.md
+
44
−
12
浏览文件 @
f0e88f92
...
@@ -73,10 +73,51 @@ workload. Typical values range from `5` for highly CPU-bound tasks to `15` or
...
@@ -73,10 +73,51 @@ workload. Typical values range from `5` for highly CPU-bound tasks to `15` or
higher for mixed low-priority work. A reasonable starting range is
`15`
to
`25`
higher for mixed low-priority work. A reasonable starting range is
`15`
to
`25`
for a non-specialized deployment.
for a non-specialized deployment.
The values vary according to the work each specific deployment of Sidekiq does.
Any other specialized deployments with processes dedicated to specific queues
should have the concurrency tuned according to:
-
The CPU usage of each type of process.
-
The throughput achieved.
Each thread requires a Redis connection, so adding threads may increase Redis
latency and potentially cause client timeouts. See the
[
Sidekiq documentation about Redis
](
https://github.com/mperham/sidekiq/wiki/Using-Redis
)
for more details.
#### Manage thread counts with concurrency field
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/439687) in GitLab 16.9.
In GitLab 16.9 and later, you can set the concurrency by setting
`concurrency`
. This value explicitly sets each process
with this amount of concurrency.
For example, to set the concurrency to
`20`
:
1.
Edit
`/etc/gitlab/gitlab.rb`
:
```
ruby
sidekiq
[
'concurrency'
]
=
20
```
1.
Save the file and reconfigure GitLab:
```
shell
sudo
gitlab-ctl reconfigure
```
<!--- start_remove The following content will be removed on remove_date: '2024-08-16' -->
#### Manage thread counts with `min_concurrency` and `max_concurrency` fields (deprecated)
WARNING:
The
`min_concurrency`
and
`max_concurrency`
settings were deprecated in GitLab 16.9 and are planned
for removal in 17.0. Use
[
`concurrency`
](
#manage-thread-counts-with-concurrency-field
)
instead.
We only recommend setting explicit concurrency by setting
`min_concurrency`
and
We only recommend setting explicit concurrency by setting
`min_concurrency`
and
`max_concurrency`
to the same value. The two distinct settings are kept for
`max_concurrency`
to the same value. The two distinct settings are kept for
backward
s
compatibility reasons
, but f
or more predictable results use the same
backward compatibility reasons
. F
or more predictable results
,
use the same
values
– otherwise
you might run into issues with Sidekiq jobs piling up.
values
, or
you might run into issues with Sidekiq jobs piling up.
For example, to set the concurrency to
`20`
:
For example, to set the concurrency to
`20`
:
...
@@ -108,16 +149,7 @@ concurrency is set to:
...
@@ -108,16 +149,7 @@ concurrency is set to:
When
`min_concurrency`
is greater than
`max_concurrency`
, it is treated as
When
`min_concurrency`
is greater than
`max_concurrency`
, it is treated as
being equal to
`max_concurrency`
.
being equal to
`max_concurrency`
.
The values vary according to the work each specific deployment of Sidekiq does.
<!-- end_remove -->
Any other specialized deployments with processes dedicated to specific queues
should have the concurrency tuned according to:
-
The CPU usage of each type of process.
-
The throughput achieved.
Each thread requires a Redis connection, so adding threads may increase Redis
latency and potentially cause client timeouts. See the
[
Sidekiq documentation about Redis
](
https://github.com/mperham/sidekiq/wiki/Using-Redis
)
for more details.
## Modify the check interval
## Modify the check interval
...
...
此差异已折叠。
点击以展开。
预览
0%
加载中
请重试
或
添加新附件
.
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
保存评论
取消
想要评论请
注册
或
登录