[MXS-1528] Remove server as well from the maxadmin list servers Created: 2017-11-16 Updated: 2017-12-01 Resolved: 2017-11-17 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | N/A |
| Affects Version/s: | None |
| Fix Version/s: | N/A |
| Type: | New Feature | Priority: | Minor |
| Reporter: | Wagner Bianchi (Inactive) | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 1 |
| Labels: | None | ||
| Description |
|
Folks, Testing the remove server command I'm seeing that, the removed server will only appear if you check the servers under the monitor from which you removed the server if you issue the command show monitors. The whole story is like this - the environment was created based on the https://jira.mariadb.org/browse/MXS-1526. This way, I have 1 master and 2 replicas. I removed one replica and relied on what I was seeing out of list servers:
As you can see, the server prod_mariadb02 is kept out of the list of servers and the configuration file as well is kept in place. This is great as it makes it easy to re-add the server you just removed in case you need. The request, maybe we can add a flag on the server's configuration file in order to make servers active=0|1 and then, removed servers update the server's file in order to remove that server from the list servers, what do you think? Kind of:
Now and currently, removed servers is going to be noticed as removed just out of show monitors:
|
| Comments |
| Comment by markus makela [ 2017-11-17 ] |
|
The maxadmin destroy server command implements this. |
| Comment by Wagner Bianchi (Inactive) [ 2017-11-17 ] |
|
It makes complete sense Markus, thanks for the feedback. |