placement program

Use placement program to enter placement process view.

Use undo placement program to delete the placement policy for a process.

Syntax

placement program { program-name [ instance instance-name ] | default }

undo placement program { program-name [ instance instance-name ] | default }

Default

No placement process view is created, and all active processes run on the master device.

Views

System view

Predefined user roles

network-admin

Parameters

program-name: Specifies a process name, a case-insensitive string of 1 to 15 characters.

instance instance-name: Specifies the name of an instance of the specified process. The instance name is a case-insensitive string of 1 to 15 characters. If a process has only one instance, the system displays a prompt when you specify this option.

default: Configures the default placement policy for all processes.

Usage guidelines

You configure a process placement policy to optimize the distribution of processes in your system for optimal distribution of CPU and memory resources.

For an active process running only on the master device, it does not support placement optimization (by displaying a configuration failure prompt). When such an active process fails, the system automatically restarts the process. The standby processes are used for active/standby switchover and ISSU.

Some active processes can run on either the master or subordinate device. When such an active process fails, the system uses a placement policy to select a new active process among standby processes.

A process placement policy comprises the affinity location-type, affinity location-set, affinity program, and affinity self commands, which describe the preferences of the process for a specific location.

You can configure all the affinity commands in the placement policy for a process. Based on the placement policy and hardware resources, the system automatically determines the location for running the process. Before you apply the policy, you can use the display placement reoptimize command to view the predicted location for the process.

Examples

# Enter the placement process view of BGP.

<Sysname> system-view
[Sysname] placement program bgp
[Sysname-program-bgp]

# Enter the placement process view of BGP instance 100.

<Sysname> system-view
[Sysname] placement program bgp instance 100
[Sysname-program-bgp-100]

# Enter default placement process view.

<Sysname> system-view
[Sysname] placement program default
[Sysname-program-default]