![Cisco ASR 14000 Series Скачать руководство пользователя страница 500](http://html.mh-extra.com/html/cisco/asr-14000-series/asr-14000-series_management-command-reference_66667500.webp)
C i s c o C o n f i d e n t i a l - B e t a R e v i e w R 3 . 7. 1
Process and Memory Management Commands on Cisco IOS XR Software
affinity self
SMR-498
Cisco ASR 14000 Series Router System Management Command Reference
OL-17231-01
affinity self
To set the affinity of a placeable program (process) to or from one of its own instances, use the
affinity
self
command in placement program configuration mode. To remove the affinity self setting, use the
no
form of this command.
affinity self
{
attract
strength
|
repulse
strength
|
default
|
none
}
no affinity self
{
attract
strength
|
repulse
strength
|
default
|
none
}
Syntax Description
Defaults
The affinity self default is initially set in system placement files.
Command Modes
Placement program configuration
Command History
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes the proper
task IDs.
The
affinity self
command is used to adjust placement decisions when multiple instances of a process
are started. An attract (positive) affinity indicates a preference to have all instances of a process run on
the same node, while a repulse (negative) affinity indicates a preference to have each instance of a
process run on different nodes.
Typically, you would want to monitor how a process on your system best performs, and whether
instances of the same class should be collocated or not.
Task ID
Examples
The following example shows how to configure BGP speakers to run on different nodes:
RP/0/RP0/CPU0:router(config)#
placement program bgp
RP/0/RP0/CPU0:router(config-place)#
affinity self repulse 200
attract
Specifies a positive affinity.
repulse
Specifies a negative affinity.
strength
A positive or negative strength. The range is from 1 to 100000
points.
default
Sets the affinity value to the default.
none
Sets the affinity value to zero points.
Release
Modification
Release 3.7.1
This command was introduced on the Cisco ASR 14000 Series Router.
Task ID
Operations
sysmgr
read, write