OceanBase logo

OceanBase

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

Product Overview
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

OceanBase

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

Product Overview
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

OceanBase Database

SQL - V4.4.2

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogWhite PaperLive DemosTraining & CertificationTicket
    Company
    About OceanBaseTrust CenterLegalPartnerContact Us
    Follow Us

    © OceanBase 2026. All rights reserved

    Cloud Service AgreementPrivacy PolicySecurity
    Contact Us
    Document Feedback
    1. Documentation Center
    2. OceanBase Database
    3. SQL
    4. V4.4.2
    iconOceanBase Database
    SQL - V 4.4.2
    Databases
    • OceanBase Database
    • OceanBase Cloud
    • OceanBase Tugraph
    • Interactive Tutorials
    • OceanBase Best Practices
    Tools
    • OceanBase Cloud Platform
    • OceanBase Migration Service
    • OceanBase Developer Center
    • OceanBase Migration Assessment
    • OceanBase Admin Tool
    • OceanBase Loader and Dumper
    • OceanBase Deployer
    • Kubernetes operator for OceanBase
    • OceanBase Diagnostic Tool
    • OceanBase Binlog Service
    Connectors and Middleware
    • OceanBase Database Proxy
    • Embedded SQL in C for OceanBase
    • OceanBase Call Interface
    • OceanBase Connector/C
    • OceanBase Connector/J
    • OceanBase Connector/ODBC
    • OceanBase Connector/NET
    SQL
    KV
    • V 4.6.0
    • V 4.4.2
    • V 4.3.5
    • V 4.3.3
    • V 4.3.1
    • V 4.3.0
    • V 4.2.5
    • V 4.2.2
    • V 4.2.1
    • V 4.2.0
    • V 4.1.0
    • V 4.0.0
    • V 3.1.4 and earlier

    Cluster shrink

    Last Updated:2026-04-02 06:23:57  Updated
    Share
    What is on this page
    Description
    Interface constraints
    Request path
    Request parameters
    Response
    Example
    Request example
    Response example
    Related documents

    folded

    Share

    This topic describes how to remove a specified node from an initialized cluster.

    Description

    Interface constraints

    obshell Server performs security checks on this API. For more information, see Hybrid encryption for APIs.

    Request path

    DELETE /api/v1/observer POST /api/v1/ob/scale_in

    Request parameters

    Parameter
    Type
    Required
    Example value
    Description
    agent_info AgentInfo Yes {
    "ip": "10.10.10.3",
    "port": 2886
    }
    The information of the node to be removed from the cluster. The information includes the following:
    • ip: the IP address of obshell.
    • port: the port of obshell.
    force_kill map[string]string No true If you set this parameter to true, the observer process will be killed before the node is removed from the cluster.

    Notice

    You must set force_kill to true when you remove a faulty node.

    Response

    Parameter
    Type
    Description
    successful bool Indicates whether the request was successful.
    timestamp time.Time The timestamp when the server completed the request.
    duration int The time taken by the server to process the request, in milliseconds.
    status int The HTTP status code.
    traceId string The trace ID of the request.
    data DagDetailDTO For more information, see the Data structure of DagDetailDTO section below.
    error ApiError The error information, which contains the following parameters:
    • code: the error code.
    • message: the detailed error message.
    • subErrors: the sub-error information.

    The data structure of DagDetailDTO is as follows:

    Parameter
    Type
    Description
    id string The general ID of the DAG.
    dag_id int The ID of the DAG, which is the primary key stored in the OceanBase Database.
    name string The name of the DAG.
    stage int The current execution stage of the DAG.
    max_stage int The total number of stages in the DAG execution process.
    state string The execution state of the DAG.
    operator string The execution operation type of the DAG.
    start_time time.Time The start time of the DAG execution.
    end_time time.Time The end time of the DAG execution.
    additional_data map[string]any Other data of the DAG.
    nodes []NodeDetailDTO The information of all nodes in the DAG. For more information, see Obtain the details of a node.

    Example

    Request example

    POST 10.10.10.1:2886/api/v1/ob/scale_in

    {
      "agent_info": {
          "ip": "10.10.10.4",
          "port": 2886
      },
      "force_kill": false
    }
    

    This example shows a request to remove the 10.10.10.4:2886 node from the cluster by sending a request to the 10.10.10.1:2886 node.

    Response example

    {
        "successful": true,
        "timestamp": "2024-12-23T19:38:38.10769991+08:00",
        "duration": 101,
        "status": 200,
        "traceId": "50c6e85c24a30919",
        "data": {
            "id": "11",
            "dag_id": 1,
            "name": "Cluster scale in",
            "stage": 1,
            "max_stage": 5,
            "state": "READY",
            "operator": "RUN",
            "start_time": "0001-01-01T00:00:00Z",
            "end_time": "0001-01-01T00:00:00Z",
            "additional_data": null,
            "nodes": null
        }
    }
    

    Related documents

    You can also call APIs by using SDK methods.

    • For more information about how to call APIs by using the obshell-sdk-python SDK, see Shrink a cluster.

    • For more information about how to call APIs by using the obshell-sdk-go SDK, see Shrink a cluster.

    Previous topic

    Scale out a cluster
    Last

    Next topic

    GetObInfo
    Next
    What is on this page
    Description
    Interface constraints
    Request path
    Request parameters
    Response
    Example
    Request example
    Response example
    Related documents