Last active
March 5, 2019 18:57
-
-
Save jclaret/f7282f8aebc28a841fe49f18665e5bda to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pcs constraint location firstweb prefers clu03.local.net=200 | |
pcs resource defaults resource-stickiness=500 | |
pcs constraint location firstweb prefers clu02.local.net=499 | |
pcs constraint location firstweb avoids clu01.local.net=499 | |
pcs cluster standby clu02.local.net | |
pcs cluster unstandby clu02.local.net | |
pcs constraint --full | |
pcs constraint | |
pcs constraint remove order-testip-webfarm-mandatory | |
crm_simulate -sL | |
pcs constraint location id prefers node > set the resource or resource group id to have a score of INFINITY for running on node | |
pcs constraint location id prefers node=500 > A lower score can be set instead | |
pcs constraint location id avoids node > sets a location constraint with a score of -INFINITY | |
pcs resource move id node > set temporary location constraints | |
pcs resource ban id node > set temporary location constraints | |
pcs resource clear id > clear constraints | |
pcs resource defaults resource-stickiness=1000 | |
pcs resource defaults | |
pcs resource defaults resource-stickiness= > clear | |
pcs constraint colocation add B with A | |
pcs constraint colocation add B with A -INFINITY | |
pcs resource move firstweb clu02.local.net | |
pcs resource clear firstweb | |
pcs constraint location firstweb prefers clu01.local.net=200 | |
pcs resource defaults | |
pcs constraint location firstweb avoids clu03.local.net |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment