OceanBase logo

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Resources

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS

OceanBase Cloud

OceanBase Database

Tools

Connectors and Middleware

QUICK START

OceanBase Cloud

OceanBase Database

BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Company

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

International - English
中国站 - 简体中文
日本 - 日本語
Sign In
Start on Cloud

A unified distributed database ready for your transactional, analytical, and AI workloads.

DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS
OceanBase CloudOceanBase Database
ToolsConnectors and Middleware
QUICK START
OceanBase CloudOceanBase Database
BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

Start on Cloud
编组
All Products
    • Databases
    • iconOceanBase Database
    • iconOceanBase Cloud
    • iconOceanBase Tugraph
    • iconInteractive Tutorials
    • iconOceanBase Best Practices
    • Tools
    • iconOceanBase Cloud Platform
    • iconOceanBase Migration Service
    • iconOceanBase Developer Center
    • iconOceanBase Migration Assessment
    • iconOceanBase Admin Tool
    • iconOceanBase Loader and Dumper
    • iconOceanBase Deployer
    • iconKubernetes operator for OceanBase
    • iconOceanBase Diagnostic Tool
    • iconOceanBase Binlog Service
    • Connectors and Middleware
    • iconOceanBase Database Proxy
    • iconEmbedded SQL in C for OceanBase
    • iconOceanBase Call Interface
    • iconOceanBase Connector/C
    • iconOceanBase Connector/J
    • iconOceanBase Connector/ODBC
    • iconOceanBase Connector/NET
icon

Kubernetes operator for OceanBase

V2.3.1Community Edition

  • Overview
  • Quick start
  • Deploy
  • Upgrade
  • User guide
    • Cluster management
      • Manage clusters
      • Create a cluster
      • Zone management
        • Add zones to a cluster
        • Delete zones from a cluster
      • Server management
        • Add OBServer nodes to zones
        • Delete OBServer nodes from zones
      • Upgrade a cluster
      • Manage parameters
      • Update resources
      • Delete a cluster
    • Tenant management
      • Manage tenants
      • Create a tenant
      • Modify tenant
        • Manage resources
        • Manage replicas
        • Modify other parameters
      • Delete a tenant
      • Perform tenant O&M operations
    • High availability
      • High availability
      • Recover from node failure
      • Back up a tenant
      • Restore data from a backup
      • Physical standby tenant
      • Inter K8s cluster management
  • Configure
  • Appendix
    • Deploy OceanBase Database and web app in a Kubernetes cluster
    • FAQ
  • Changelog

Download PDF

Overview Quick start Deploy Upgrade Manage clusters Create a cluster Upgrade a cluster Manage parameters Update resources Delete a cluster Manage tenants Create a tenant Delete a tenant Perform tenant O&M operations High availability Recover from node failure Back up a tenant Restore data from a backup Physical standby tenant Inter K8s cluster management Configure Deploy OceanBase Database and web app in a Kubernetes cluster FAQ Changelog
OceanBase logo

The Unified Distributed Database for the AI Era.

Follow Us
Products
OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
Resources
DocsBlogLive DemosTraining & Certification
Company
About OceanBaseTrust CenterLegalPartnerContact Us
Follow Us

© OceanBase 2026. All rights reserved

Cloud Service AgreementPrivacy PolicySecurity
Contact Us
Document Feedback
  1. Documentation Center
  2. Kubernetes operator for OceanBase
  3. V2.3.1
iconKubernetes operator for OceanBase
V 2.3.1Community Edition
Community Edition
  • V 2.3.1
  • V 2.3.0
  • V 2.2.0
  • V 2.1.2
  • V 2.1.1
  • V 2.1.0

Manage resources

Last Updated:2025-11-28 06:07:04  Updated
share
What is on this page
Change resource specifications
Procedure
Change the number of resource units for a resource pool
Procedure

folded

share

This topic describes how to change the resource specifications and pools of a tenant by using ob-operator.

Tenant resources consist of tenant resource specifications and tenant resource pools. You can change tenant resource specifications and resource pools to scale in or out a tenant.

Change resource specifications

You can increase or decrease the CPU, memory, and log disk capacities to change the resource specifications.

For more information about how to change resource specifications, see Change resource specifications.

Procedure

To change the resource unit specifications of a zone, apply the parameters in the resource section of the zone in the tenant configuration file tenant.yaml. Perform the following steps:

  1. Modify the tenant configuration file tenant.yaml.

    # For example, the value of maxCPU is 1 before the modification.
      resource:
        maxCPU: 1
        memorySize: 1Gi
    
    # After the modification, the value of maxCPU is changed to 2.
      resource:
        maxCPU: 2 # Change the value from 1 to 2.
        memorySize: 1Gi
    
  2. Run the following command for the modification to take effect:

    kubectl apply -f tenant.yaml
    
  3. Run the following command to view the custom resources of the tenant in the current Kubernetes cluster to check whether the modification is successful:

    kubectl get obtenants.oceanbase.oceanbase.com -n oceanbase -o yaml
    

If the value of the corresponding parameter in the status.pools.resource section in the custom resources of the tenant is changed to the new value, the modification is successful.

  status:
    ...
    resourcePool:
    - priority: 1
      type:
        isActive: true
        name: FULL
        replica: 1
      unitConfig:
        iopsWeight: 2
        logDiskSize: "12884901888"
        maxCPU: "2" # The value of maxCPU is changed to 2.
        maxIops: 1024
        memorySize: "5368709120"
        minCPU: "1"
        minIops: 1024
      unitNum: 1
      units:
      - migrate:
          serverIP: ""
          serverPort: 0
        serverIP: xxx.xxx.xxx.xxx
        serverPort: 2882
        status: ACTIVE
        unitId: 1006
      zoneList: zone1

Change the number of resource units for a resource pool

Before you increase the resource units for a resource pool, make sure that the zone has sufficient OBServer nodes. For more information about how to add OBServer nodes to a zone, see Add OBServer nodes to zones.

Procedure

When you modify the number of resource units for a resource pool, apply the unitNum parameter of each zone in the pools section in the tenant configuration file tenant.yaml. Perform the following steps:

  1. Modify the tenant configuration file tenant.yaml.

    # For example, the number of resource units in each zone of the tenant is 1 before the modification.
    spec:
      unitNum: 1
    
    # After the modification, the value of unitNum is 2.
    spec:
      unitNum: 2
    
  2. Run the following command for the modification to take effect:

    kubectl apply -f tenant.yaml
    
  3. Run the following command to view the custom resources of the tenant in the current Kubernetes cluster to check whether the modification is successful:

    kubectl get obtenants.oceanbase.oceanbase.com -n oceanbase -o yaml
    

If the value of the corresponding parameter in the status.resourcePool.unitNum section in the custom resources of the tenant is changed to the new value, the modification is successful.

  status:
    ...
    resourcePool:
    - priority: 1
      type:
        isActive: true
        name: FULL
        replica: 1
      unitConfig:
        iopsWeight: 2
        logDiskSize: "12884901888"
        maxCPU: "1"
        maxIops: 1024
        memorySize: "5368709120"
        minCPU: "1"
        minIops: 1024
      unitNum: 2 # The value of unitNum is changed to 2.
      units:
      - migrate:
          serverIP: ""
          serverPort: 0
        serverIP: 10.42.0.189
        serverPort: 2882
        status: ACTIVE
        unitId: 1006
      zoneList: zone1

Previous topic

Create a tenant
Last

Next topic

Manage replicas
Next
What is on this page
Change resource specifications
Procedure
Change the number of resource units for a resource pool
Procedure