---
title: "cpu_count - OceanBase 数据库 V4.1.0 | OceanBase 文档中心"
description: "cpu_count cpu_count 用于设置系统 CPU 总数。如果设置为 0，系统将自动检测 CPU 数量。 属性 描述 参数类型 整型 默认值 0 取值范围 [0, +∞) 是否重启 OBServer 节点生效 否 说明 集群下的其他配置可能会影响该配置项的生效方式。建议在该配置项配置后，通过 SELECT …"
---
切换语言

- 中文站 - 简体中文
- International - English
- 日本站 - 日本語

文档反馈![](https://mdn.alipayobjects.com/huamei_22khvb/afts/img/A*P8CuR4UJ_FkAAAAAAAAAAAAADiGDAQ/original) OceanBase 数据库分布式版 - V 4.1.0

# cpu_count

更新时间：2023-07-28 10:45:58

[编辑](https://github.com/oceanbase/oceanbase-doc/edit/V4.1.0/zh-CN/700.reference/500.system-reference/100.system-configuration-items/300.cluster-level-configuration-items/4500.cpu_count.md)  

`cpu_count` 用于设置系统 CPU 总数。如果设置为 0，系统将自动检测 CPU 数量。

| **属性** | **描述** |
| --- | --- |
| 参数类型 | 整型 |
| 默认值 | 0 |
| 取值范围 | [0, +∞) |
| 是否重启 OBServer 节点生效 | 否   #### 说明    集群下的其他配置可能会影响该配置项的生效方式。建议在该配置项配置后，通过 `SELECT` 语句，在 `GV$OB_SERVERS` 内部表中查看 `CPU_CAPACITY` 字段实际生效的值。若未动态生效，需要重启整个集群。 |

 上一篇 下一篇 ![有帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*y6ocSqN8cqsAAAAAAAAAAAAAARQnAQ)![无帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*BG9IQJyLHF8AAAAAAAAAAAAAARQnAQ)![反馈](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*eTWdQKCRKHwAAAAAAAAAAAAAARQnAQ)[AI](https://www.oceanbase.com/obi) 咨询热线
