A new stack master is elected when you:
•Power off, disconnect, or reboot the current stack master.
•Power on all switches in a new stack at the same time.
•Reboot all switches after you manually change the stack member priorities by using the CLI.
•Connect a powered-on stack to another powered-on stack merging two separate stacks merge into one.