'Changing tserver_master_addrs in YugabyteDB without restarting?
[Question posted by a user on YugabyteDB Community Slack]
The docs on changing cluster config, indicate that, when changing yb-master cluster membership, yb-tserver tserver_master_addrs should be updated to reflect the latest list of nodes, but I don't see a clear indication of how to best do so. Is this only possible by terminating each yb-tserver process and rerunning it with a new command-line flag?
Solution 1:[1]
There is yb-ts-cli set_flag for updating flags during runtime.
In this case, the tserver learns the new master addresses at runtime by itself, you just need to update the yb-tserver config so it has the new masters if it gets restarted.
Also, string flags in general are not safe to change at runtime because they're not thread-safe.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | dh YB |