Only restart specific space when a space IP is set or removed
This reduces downtime on space changes to only a single space, instead of every space on the aggregator. DEV-2456
This commit is contained in:
parent
b7887a0c9a
commit
00b5b4c810
4
yap
4
yap
@ -792,7 +792,7 @@ function aggregator_set_space_ip() {
|
||||
set_var "/aggregators/$aggregator/spaces/$space/ip" "$ip"
|
||||
|
||||
salt_update node-$aggregator ||:
|
||||
salt_exec node-$aggregator service.restart yap ||:
|
||||
salt_exec node-$aggregator cmd.run "yap restart $space" ||:
|
||||
|
||||
aggregator_show $aggregator
|
||||
}
|
||||
@ -810,7 +810,7 @@ function aggregator_remove_space_ip() {
|
||||
del_var "/aggregators/$aggregator/spaces/$space/ip"
|
||||
|
||||
salt_update node-$aggregator ||:
|
||||
salt_exec node-$aggregator service.restart yap ||:
|
||||
salt_exec node-$aggregator cmd.run "yap restart $space" ||:
|
||||
|
||||
aggregator_show $aggregator
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user