CPU core binding is a technology that binds a specific process or thread to a specific CPU core. This way, key tasks are processed by fixed CPU cores, instead of being frequently switched from one core to another. CPU core binding reduces the context switching overhead and improves the overall system performance.
However, excessive use of the technology may lead to a situation where some CPU cores are overloaded while others are idle, decreasing resource utilization in the system. You need to decide whether to use CPU core binding and adjust the core binding strategy based on your business conditions to achieve the optimal performance and resource utilization.
Prerequisites
Make sure that you have the following permissions:
-
Resource Permissions : OBProxy Maintenance permission -
Menu Permissions : Permission on theOverview menu of OBProxy
Configure the CPU binding range
Log on to the OceanBase Cloud Platform (OCP) console.
In the left-side navigation pane, click OBProxy.
In the cluster list, find the target OBProxy cluster and click its name.
On the
Overview page of the cluster, click theMore icon in the upper-right corner and select CPU Core Binding Configuration.Click
Configure CPU Binding Range .In the dialog box that appears, complete CPU core binding configuration for all obproxy processes in the OBProxy cluster. Then, click
OK .Click the task ID in the dialog box to view the task progress. When the task status changes to
Completed and the status of the cluster isRunning , CPU core binding configuration for the cluster is successful.
Enable or disable CPU core binding configuration
Log on to the OceanBase Cloud Platform (OCP) console.
In the left-side navigation pane, click OBProxy. In the cluster list, find the target OBProxy cluster and click its name.
On the
Overview page of the cluster, click theMore icon in the upper-right corner and select CPU Core Binding Configuration.Select the target CPU core binding configuration and enable or disable it.
In the dialog box that appears, click
OK .