The stack priority determines the role of a stack member in role election. A higher priority value for a stack member increases the probability of it being elected stack master and retaining its stack ID. A higher numerical value represents a higher priority.
The following describes the process of electing the stack master: The switch startup time is compared first and then the stack priority. If the startup time of two stack members is less than 20s, the two members are considered to have the same startup time. In this case, the switch with a higher stack priority is elected as the stack master. Therefore, you are advised to set the highest stack priority for the switch that is expected to be the stack master. For details about how to set up a stack, see Stack Setup.
The stack priority value ranges from 1 to 255 and defaults to 100. You can view the stack member priority value by using the display stack command. To change the priority value for a stack member, use the stack slot slot-id priority priority command. The new priority value takes effect immediately but does not affect the current master switch. The new priority value helps determine which stack member is elected as the new master switch only after the current master switch or the stack resets.