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

V2.7.0Community Edition
  • What is OBD
  • Quick Start
    • Install and configure OBD
    • Quickly start OceanBase Database
    • Deploy an OceanBase cluster on the GUI
  • OBD Command
    • Quick deployment command
    • Cluster commands
    • Mirror and repository commands
    • Testing commands
    • Tool commands
    • obdiag commands
    • Telemetry commands
  • User Guide
    • Configuration files
    • Deploy through GUI
      • GUI operation overview
      • Deploy OCP through the GUI
    • Deploy through CLI
      • Deploy OceanBase Database on a single OBServer node
      • Deploy OCP Express by using commands
      • Deploy and use Config Server
      • Deploy OBLogProxy by using the CLI
      • Use OCP to take over a cluster deployed by OBD
      • Add GUI-based monitoring for an existing cluster
      • Upgrade OCP Express
      • Upgrade OceanBase Database
      • Physical Standby Database
        • Deploy primary and standby tenants by using OBD
        • Switch the roles of tenants and decouple a standby tenant from the primary tenant
      • Scale out a cluster and change cluster components
  • FAQ
    • FAQ
    • How do I upgrade an OBProxy to obproxy-ce 3.2.3?
  • Mode configuration rules
  • Error codes
  • Release Notes
    • Version rules
    • V2.7
      • OceanBase Deployer V2.7.0
    • V2.6
      • OceanBase Deployer V2.6.2
      • OceanBase Deployer V2.6.1
      • OceanBase Deployer V2.6.0
    • V2.5
      • OceanBase Deployer V2.5.0
    • V2.4
      • OceanBase Deployer V2.4.0
    • V2.3
      • OceanBase Deployer V2.3.1
      • OceanBase Deployer V2.3.0
    • V2.2
      • OceanBase Deployer V2.2.0
    • V2.1
      • OceanBase Deployer V2.1.1
      • OceanBase Deployer V2.1.0
    • V2.0
      • OceanBase Deployer V2.0.1
      • OceanBase Deployer 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

Download PDF

Document Feedback
  1. Documentation Center
  2. OceanBase Deployer
  3. V2.7.0

Mode configuration rules

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

CPU
Memory
memory_limit
system_memory
Disk

This topic describes the rules for OceanBase Deployer (OBD) to automatically generate configurations when you deploy an OceanBase cluster on the GUI.

CPU

You can obtain the CPU resource metrics by running the following command:

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

The value of the cpu_count parameter is fixed at 16 in Minimum Required mode, and is equal to max(16, number of CPU cores - 2) in Maximum Utilization mode.

Memory

You can obtain the memory resource metrics by running the following command:

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

Specify the following memory parameters based on the corresponding rules.

memory_limit

  • In Minimum Required mode, the value is fixed at 6G.

  • In Maximum Utilization mode, the value of the memory_limit parameter is equal to max(6G, available memory × 0.9). If the available disk space is insufficient, the value will be automatically adjusted. The minimum value is 6G.

system_memory

  • In Minimum Required mode, the value is fixed at 1G.

  • In Maximum Utilization mode, the value of this parameter varies with that of the memory_limit parameter based on the rules described in the following table.

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

Disk

You can obtain the total disk size, occupied disk size, and available disk size by running the following command:

df --output=size,avail,target

The following table describes the rules for specifying disk parameters.

Parameter
Minimum Required mode
Maximum Utilization mode
datafile_size The value is fixed at 2G. The value varies with the value of the memory_limit parameter based on this rule: datafile_size = memory_limit × 3.
log_disk_size The value is fixed at 13G. The value varies with the value of the memory_limit parameter based on this rule: log_disk_size = memory_limit × 3.

Note the following:

  • When the disk space is insufficient, the value of the memory_limit parameter is adjusted to ensure storage security.

  • In Maximum Utilization mode, if the disk space is sufficient, the OceanBase cluster keeps occupying the disk space in a secure manner as long as the occupied disk space does not exceed memory_limit × 3.

  • A certain amount of disk space must be reserved on a mounted disk for OBServer logs.

    • If log rotation is disabled, 1 GB is reserved.

    • If log rotation is enabled, the space to be reserved is calculated based on the total number of log files that can be retained.

Previous topic

How do I upgrade an OBProxy to obproxy-ce 3.2.3?
Last

Next topic

Error codes
Next
on this page
CPU
Memory
memory_limit
system_memory
Disk