OceanBase
English日本語简体中文
Docs Home
Products
Integrations
Release Notes

Databases

OceanBase DatabaseOceanBase Cloud OceanBase Best Practices

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog Service

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Databases

OceanBase DatabaseOceanBase Cloud OceanBase Best Practices

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog Service
OceanBase DatabaseOceanBase Cloud ToolsConnectors and MiddlewareLifecycle Support Policy

OceanBase Deployer

V4.3.0Community Edition
  • What is obd
  • Quick Start
    • Install obd
    • Quick deployment of OceanBase Database
    • Quickly deploy OCP
  • obd Command
    • Quick deployment commands
    • Cluster commands
    • Command groups
    • Image and repository commands
    • Test command groups
    • Tool commands
    • obdiag commands
    • Binlog service commands
    • Hardware commands
    • License commands
    • Password commands
    • Telemetry commands
  • User Guide
    • Usage overview
    • Deploy through GUI
      • Overview
      • Pattern configuration rules
      • Deploy an OceanBase cluster
      • Deploy OCP
      • Deploy OMS
      • Change components
      • Upgrade OCP
      • Upgrade OMS
    • Deploy through CLI
      • Configuration file
      • Component deployment
        • Deploy an OceanBase cluster
        • Deploy seekdb
        • Deploy obconfigserver
        • Deploy OMS
        • Deploy OCP
        • Deploy Alertmanager
        • Deploy obbinlog
        • Deploy oblogproxy
      • Cluster management
        • Physical Standby Database
          • Create a standby tenant
          • Role switching and decoupling
          • Switch the synchronization mode between primary and standby tenants
        • seekdb primary/standby instance
          • Create a standby instance
          • Role switching and decoupling
        • Scale out and component changes
        • Performance test
        • Diagnose a cluster
        • Backup and restore
        • Add a GUI monitoring system to an existing cluster
      • Cluster management
        • Use OCP to take over an OceanBase cluster deployed by obd
        • Take over an OceanBase cluster
      • Component upgrade
        • Upgrade OceanBase Database
        • Upgrade ODP
        • Upgrade OMS
  • Upgrade obd
  • FAQ
  • Error codes
  • Release Notes
    • Version rules
    • V4.3
      • OceanBase Deploy V4.3.0
    • V4.2
      • OceanBase Deployment Tool V4.2.0
    • V4.1
      • OceanBase Deployer V4.1.0
    • V4.0
      • OceanBase Deployer V4.0.0
    • V3.6
      • OceanBase Deployer V3.6.0
    • V3.5
      • OceanBase Deployer V3.5.0
    • V3.4
      • OceanBase Deployer V3.4.0
    • V3.3
      • OceanBase Deployer V3.3.0
    • V3.2
      • OceanBase Deployer V3.2.2
      • OceanBase Deployer V3.2.1
      • OceanBase Deployer V3.2.0
    • V3.1
      • OceanBase Deployer V3.1.2
      • OceanBase Deployer V3.1.1
      • OceanBase Deployer V3.1.0
    • V3.0
      • OceanBase Deployer V3.0.1
      • OceanBase Deployer V3.0.0
    • V2.10
      • OceanBase Deployer V2.10.1
      • OceanBase Deployer V2.10.0
    • V2.9
      • OceanBase Deployer V2.9.2
      • OceanBase Deployer V2.9.1
      • OceanBase Deployer V2.9.0
    • V2.8
      • OceanBase Deployment Tool V2.8.0
    • V2.7
      • OceanBase Deployment Tool V2.7.0
    • V2.6
      • OceanBase Deployment Tool V2.6.2
      • OceanBase Deployment Tool V2.6.1
      • OceanBase Deployment Tool V2.6.0
    • V2.5
      • OceanBase Deployer V2.5.0
    • V2.4
      • OceanBase Deployer V2.4.0
    • V2.3
      • OceanBase Deployment Tool V2.3.1
      • OceanBase Deployer V2.3.0
    • V2.2
      • OceanBase Deployment Tool V2.2.0
    • V2.1
      • OceanBase Deployer V2.1.1
      • OceanBase Deployment Tool V2.1.0
    • V2.0
      • OceanBase Deployment Tool V2.0.1
      • OceanBase Deployment Tool V2.0.0
    • V1.6
      • OceanBase Deployer V1.6.2
      • OceanBase Deployer V1.6.1
      • OceanBase Deployer V1.6.0
    • V1.5
      • OceanBase Deployer V1.5.0
    • V1.4
      • OceanBase Deployer V1.4.0
    • V1.3
      • OceanBase Deployer V1.3.3
      • OceanBase Deployer V1.3.2
      • OceanBase Deployer V1.3.0
    • V1.2
      • OceanBase Deployer V1.2.1
      • OceanBase Deployer V1.2.0
  • Interactive deployment of OceanBase Database Community Edition
  • Deploy a Community Edition cluster using the obd graphical interface
  • Deploy a Community Edition cluster by using an obd configuration file

Download PDF

Document Feedback
  1. Documentation Center
  2. OceanBase Deployer
  3. V4.3.0

Pattern configuration rules

Last Updated:2026-09-04 08:21:29

CPU
Memory
memory_limit
system_memory
Disk

This topic describes the rules for automatically generating configurations when you deploy an OceanBase cluster in the graphical interface.

CPU

You can run the following command to obtain the CPU resource metrics.

grep -e 'processor\s*:' /proc/cpuinfo | wc -l

In the minimum available mode, the value is fixed at 16. In the maximum occupied mode, cpu_count is set to the maximum of 16 and the total number of CPU cores minus 2.

Memory

You can run the following command to obtain the memory resource metrics.

# Total memory
grep MemTotal /proc/meminfo
# Available memory
grep MemAvailable /proc/meminfo

The calculation rules for the memory-related configuration items are as follows.

memory_limit

  • In the minimum available mode, the value is fixed at 6 GB.

  • In the maximum occupied mode, memory_limit is set to the maximum of 6 GB and 90% of the available memory. If the available disk space is insufficient, the value will be adjusted, with a minimum value of 6 GB.

system_memory

  • In the minimum available mode, the value is fixed at 1 GB.

  • In the maximum occupied mode, the value is adjusted based on the memory_limit configuration. The corresponding relationships are as follows:

    memory_limit
    [6G, 8G)
    [8G, 16G)
    [16G, 32G)
    [32G,48G)
    [48G, 64G]
    (64G, +∞)
    system_memory 2G 3G 5G 7G 10G 1

Disk

You can run the following command to obtain the total disk size, used disk size, and available disk size.

df --output=size,avail,target

The calculation rules for the disk-related configuration items are as follows:

Configuration Item
Minimum Available Mode
Maximum Occupied Mode
datafile_size Fixed at 2G Adjusted based on the memory_limit configuration. The corresponding relationship is: datafile_size = memory_limit*3
log_disk_size Fixed at 13G Adjusted based on the memory_limit configuration. The corresponding relationship is: log_disk_size = memory_limit*3

Note the following three points:

  • If the disk space is insufficient, the memory_limit will be adjusted to ensure storage safety.

  • In the maximum occupied mode, if the disk space is sufficient, the OceanBase cluster will fill the disk as much as possible while ensuring that the disk usage does not exceed memory_limit*3.

  • OBServer logs also occupy a certain amount of disk space. Before calculation, the disk space occupied by the mounted logs will be deducted.

    • If log rotation is not enabled, 1 GB of disk space will be reserved.

    • If log rotation is enabled, the total disk space occupied by the retained logs will be deducted.

Previous topic

Overview
Last

Next topic

Deploy an OceanBase cluster
Next
on this page
CPU
Memory
memory_limit
system_memory
Disk