Help Center/Cloud Container Engine/Best Practices/Networking/Configuring Dynamic Pre-binding of Container Network Interfaces in a CCE Turbo Cluster
Updated on 2026-03-23 GMT+08:00

Configuring Dynamic Pre-binding of Container Network Interfaces in a CCE Turbo Cluster

In the Cloud Native 2.0 networks, each pod is allocated a network interface or a supplementary network interface. The speed of network interface creation and binding is slower than that of pod scaling, severely affecting the container startup in large-scale batch creation. Therefore, the Cloud Native 2.0 networks provide the dynamic pre-binding of container network interfaces to accelerate pod startup while improving IP address utilization.

Basic Concepts

Notes and Constraints

  • CCE Turbo clusters of 1.23.5-r0, 1.25.1-r0 or later support dynamic pre-binding of network interfaces, global configuration at the cluster level, and custom settings at the node pool level. Custom settings of nodes out of a node pool is not supported.
  • Modify the dynamic pre-binding parameters using the console or API instead of the node annotations in the backend. Otherwise, the modified annotations will be overwritten by the original values after the cluster is upgraded.

How It Works

CCE Turbo provides four dynamic pre-binding parameters for container network interfaces. You can properly configure the parameters based on your service requirements. (The node pool-level dynamic network interface pre-binding parameters take priority over the cluster-level dynamic network interface pre-binding parameters.)

Table 1 Parameters of the dynamic network interface pre-binding policy

Parameter

Default Value

Description

Suggestion

Minimum Number of Container ENIs Bound to a Node

10

Minimum number of network interfaces bound to a node. The value can be a number or a percentage.

  • Number: The value must be a positive integer from 0 to 65535. The value 10 indicates that at least 10 container network interfaces must be bound to a node. If the number you specified exceeds the container network interface quota of the node, the network interface quota will be used.
  • Percentage: The value ranges from 1% to 100%. For example, the value 10% indicates that, if the network interface quota of a node is 128, at least 12 (rounded down) network interfaces must be bound to a node.

Set both nic-minimum-target and nic-maximum-target to the same value or percentage.

Configure this parameter based on the number of pods typically running on most nodes.

Upper Limit of Pre-bound Container ENIs

0

After the number of network interfaces bound to a node exceeds the nic-maximum-target value, CCE will not proactively pre-bind network interfaces.

Checking the upper limit of pre-bound container network interfaces is enabled only when the value of this parameter is greater than or equal to the minimum number of container network interfaces (nic-minimum-target) bound to a node. The value can be a number or a percentage.

  • Number: The value must be an integer from 0 to 65535. The value 0 indicates that the check on the upper limit of pre-bound container network interfaces is disabled. If the number you specified exceeds the container network interface quota of the node, the network interface quota will be used.
  • Percentage: The value ranges from 1% to 100%. For example, a value of 50% means that if a node's network interface quota is 128, the maximum number of pre-bound network interfaces is 64 (rounded down).

Set both nic-minimum-target and nic-maximum-target to the same value or percentage.

Configure this parameter based on the maximum number of pods running on most nodes.

Container ENIs Dynamically Pre-bound to a Node

2

The target number of network interfaces to be pre-bound to a node before it starts.

When the sum of the nic-warm-target value and the number of network interfaces already bound to the node exceeds the nic-maximum-target value, CCE will pre-bind the number of network interfaces specified by the difference between the nic-maximum-target value and the current number of network interfaces bound to the node.

Set the parameter value to the number of pods that can be scaled out instantaneously within 10 seconds on most nodes.

Threshold for Unbinding Pre-bound Container ENIs

2

Pre-bound network interfaces on a node will only be unbound and reclaimed if the difference between the number of idle network interfaces and the nic-warm-target value exceeds the threshold. The value can only be a number.

  • A large value will accelerate pod startup but slow down the unbinding of idle container network interfaces and decrease the IP address usage. Exercise caution when performing this operation.
  • A small value will speed up the unbinding of idle container network interfaces and increase the IP address usage but will slow down pod startup, especially when a large number of pods increase instantaneously.

Configure this parameter based on the difference between the number of pods that are frequently scaled on most nodes within minutes and the number of pods that are instantly scaled out on most nodes within 10 seconds.

Configuration Example

Level

Service Scenario

Configuration Example

Cluster

All nodes use the c7.4xlarge.2 model (supplementary network interface quota: 128).

Most nodes can run about 20 pods regularly.

Most nodes can run a maximum of 60 pods.

Most nodes can scale out 10 pods within 10 seconds regularly.

Most nodes scale in or out 15 pods within minutes regularly.

Cluster-level global configuration:

  • nic-minimum-target: 20
  • nic-maximum-target: 60
  • nic-warm-target: 10
  • nic-max-above-warm-target: 5

Node pool

A node pool that uses the c7.8xlarge.2 high-specification model is created in the cluster. (supplementary network interface quota: 256)

Most nodes run about 100 pods regularly.

Most nodes can run a maximum of 128 pods.

Most nodes can scale out 10 pods within 10 seconds regularly.

Most nodes scale in or out 12 pods regularly within minutes.

Custom settings at the node pool level:

  • nic-minimum-target: 100
  • nic-maximum-target: 120
  • nic-warm-target: 10
  • nic-max-above-warm-target: 2

Pods using HostNetwork are excluded.

Cluster-level Global Configuration

  1. Log in to the CCE console. In the navigation pane, choose Clusters.
  2. Click next to the target cluster and choose Manage.
  3. In the window that slides out from the right, click Networking Components. For details about the parameter configurations, see Configuration Example.
  4. After the configuration, click OK. Wait for about 10 seconds for the configuration to take effect.

Node Pool-level Custom Settings

  1. Log in to the CCE console.
  2. Click the cluster name to access the cluster console. In the navigation pane, choose Nodes. In the right pane, click the Node Pools tab.
  3. Locate the row containing the node pool and choose More > Manage.
  4. In the window that slides out from the right, click Networking Components and enable node pool container network interface pre-binding. For details about the parameter settings, see Configuration Example.

  5. After the configuration, click OK. Wait for about 10 seconds for the configuration to take effect.