11-High Availability Configuration Guide

HomeSupportSwitchesH3C S7500E Switch SeriesConfigure & DeployConfiguration GuidesH3C S7500E Switch Series Configuration Guides-Release7178-6W10011-High Availability Configuration Guide
11-Process placement configuration
Title Size Download
11-Process placement configuration 64.78 KB

Configuring process placement

Overview

Process placement enables placing processes to specific CPUs (also called nodes) on the main processing units (MPUs) in your system for optimal distribution of CPU and memory resources.

Process

A process contains a set of codes and provides specific functionality. For example, an AAA process provides AAA functions.

Each process runs in a protected memory space to prevent problems with one process from impacting the entire system.

1:N process redundancy

The system backs up each active process running on one node to all the other nodes. When an active process fails, one of its standby processes promptly takes over without impacting any other service.

1:N process redundancy provides the following benefits:

·     Improves service availability.

·     Enables the system to quickly regain reliability after device status changes in such conditions as insertion and removal of cards, IRF split, and removal of an IRF member.

Process placement policy and optimization

Process placement policies

An active process running only on the active MPU does not support placement optimization. If you configure a process placement policy for the process, the system displays 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. (In standalone mode.)

An active process running only on the global active MPU does not support placement optimization. If you configure a process placement policy for the process, the system displays 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. (In IRF mode.)

Some active processes can run on either the active or standby MPU. When such an active process fails, the system uses a placement policy to select a new active process among standby processes. (In standalone mode.)

Some active processes can run on either the global active or global standby MPU. When such an active process fails, the system uses a placement policy to select a new active process among standby processes. (In IRF mode.)

The system provides a default process placement policy that takes effect for all processes. You can modify the default placement policy in the view you enter by using the placement program default command. You can also configure a placement policy for a specific process in the view you enter by using the placement program program-name [ instance instance-name ] command. A placement policy for a process takes precedence over the default process placement policy.

By default, the default process placement policy defines the following rules:

·     The active process runs on the main CPU of the active MPU, and the standby processes run on the main CPU of the standby MPU. (In standalone mode.)

·     The active process runs on the main CPU of the global active MPU, and the standby processes run on the main CPU of the global standby MPU. (In IRF mode.)

·     A process runs at the location where it ran the last time and does not move to any other location during startup or operation.

·     The addition of a new node does not impact current active processes. A new active process selects one node with sufficient CPU and memory resources. (You can use the display cpu-usage and display memory commands to view CPU and memory usage information.)

Optimizing process placement

You can configure the following settings for a process placement policy to optimize process placement:

·     affinity location-set—Location affinity, the preference for the process to run on a specific node.

·     affinity location-type—Location type affinity, the preference for the process to run on a particular type of node. For more information about node types, see "Configuring a location type affinity."

·     affinity program—Process affinity, the preference for the process to run on the same node as a particular process.

·     affinity self—Self affinity, the preference for one instance of the process to run on the same node as any other instance of the process.

Affinities include positive affinities (attract) and negative affinities (repulse), all represented by integers in the range of 1 to 100000.

·     The higher the attract value, the stronger the preference.

·     The higher the repulse value, the weaker the preference.

After you apply new placement policies, the system makes placement decisions based on the new policies, node resources, and topology status. If the new location for an active process is different from the current node, the system changes the state of the process to standby, and uses the standby process on the preferred location as the new active process.

Configuration restrictions and guidelines

When you configure process placement, follow these restrictions and guidelines:

·     The system determines the location for each active process when the processes start. Typically, process placement optimization is not required. If optimization is required, work with H3C engineers to avoid service interruption.

·     Do not perform process placement for a process frequently.

·     Configuring process placement on a device with only one MPU does not change the location of processes. All processes run on the main CPU of the MPU.

·     Configuring process placement on a device with multiple MPUs places specific active processes to specific CPUs. In case of multiple CPUs, the system performs 1:N process redundancy, where N must be less than the number of CPUs. The number of standby processes and their CPU locations vary by function module.

·     Process placement applies only to MPUs.

·     The main and auxiliary CPUs on an MPU, if any, are equal for process placement. You can place an active process either on a main CPU or an auxiliary CPU. You can view the final result by using the placement reoptimize command.

Process placement configuration task list

Tasks at a glance

 

Configuring process placement policy:

·     (Optional.) Configuring a location affinity

·     (Optional.) Configuring a location type affinity

·     (Optional.) Configuring a process affinity

·     (Optional.) Configuring a self affinity

(Required.) Optimizing process placement

 

 

Configuring process placement policy

Configuring a location affinity

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Enter placement process view.

·     Enter default placement process view:
placement program default

·     Enter placement process view:
placement program
{ program-name [ instance instance-name ]

Settings in default placement process view take effect for all processes. Settings in placement process view take effect only for the specified process.

3.     Set the location affinity.

·     In standalone mode:
affinity location-set
slot slot-number&<1-5> { attract strength | default | none | repulse strength }

·     In IRF mode:
affinity location-set
chassis chassis-number slot slot-number&<1-5> { attract strength | default | none | repulse strength }

By default, no location affinity is set.

 

Configuring a location type affinity

The following location types are available:

·     current—Current location of the active process, which can be displayed with the display placement program command.

·     paired—Locations of standby processes.

·     primary—Active MPU. (In standalone mode.)

·     primary—Global active MPU. (In IRF mode.)

To configure a location type affinity:

 

Step

Command

Remarks

4.     Enter system view.

system-view

N/A

5.     Enter placement process view.

·     Enter default placement process view:
placement program default

·     Enter placement process view:
placement program
{ program-name [ instance instance-name ]

Settings in default placement process view take effect for all processes. Settings in placement process view take effect only for the specified process.

6.     Set the location type affinity.

affinity location-type { current | paired | primary } { attract strength | repulse strength | default | none }

By default, no location type affinity is set.

 

Configuring a process affinity

Step

Command

Remarks

7.     Enter system view.

system-view

N/A

8.     Enter placement process view.

·     Enter default placement process view:
placement program default

·     Enter placement process view:
placement program
{ program-name [ instance instance-name ]

Settings in default placement process view take effect for all processes. Settings in placement process view take effect only for the specified process.

9.     Configure the affinity for the process to run on the same location as another process.

affinity program program-name { attract strength | default | none | repulse strength }

By default, no process affinity is set.

 

Configuring a self affinity

Perform this task to configure the preference for one instance of a process to run on the same node as any other instance of the process. The self affinity setting does not take effect for a process that has only one instance.

To configure a self affinity:

 

Step

Command

Remarks

10.     Enter system view.

system-view

N/A

11.     Enter placement process view.

·     Enter default placement process view:
placement program default

·     Enter placement process view:
placement program
{ program-name [ instance instance-name ]

Settings in default placement process view take effect for all processes. Settings in placement process view take effect only for the specified process.

12.     Configure a self affinity.

affinity self { attract strength | repulse strength | default | none }

By default, no self affinity is set.

 

Optimizing process placement

Step

Command

Remarks

13.     Enter system view.

system-view

N/A

14.     Optimize process placement.

placement reoptimize

To keep the system stable, do not perform any tasks that require process restart when you execute this command.

 

Displaying process placement

Execute display commands in any view.

 

Task

Command

Display process placement policy information.

display placement policy program { program-name | all | default }

Display the location of a process.

display placement program { program-name | all }

Display the running processes on a specific location (in standalone mode).

display placement location { slot slot-number | all }

Display the running processes on a specific location (in IRF mode).

display placement location { chassis chassis-number slot slot-number | all }

Display the predicted location of a process after process placement optimization.

display placement reoptimize program { program-name [ instance instance-name ] | all }

Display the location and status of service groups.

display ha service-group { program-name [ instance instance-name ] | all }

 

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网