Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOCS] add replace yb-master docs #4791

Merged
merged 25 commits into from
Oct 14, 2020
Merged

Conversation

ddorian
Copy link
Contributor

@ddorian ddorian commented Jun 16, 2020

Fixes #4676

Screenshot:
image

@ddorian ddorian added the area/documentation Documentation needed label Jun 16, 2020
@ddorian ddorian self-assigned this Jun 16, 2020
@ddorian
Copy link
Contributor Author

ddorian commented Jun 29, 2020

@stevebang did all requested changed

Copy link
Contributor

@stevebang stevebang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requested changed done.

docs/content/latest/troubleshoot/cluster/replace_master.md Outdated Show resolved Hide resolved
To start `yb-master` in standby mode, set the `--master_addresses` flag to an empty string (`""`).

```sh
./bin/yb-master --master_addresses=""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if this might end up being confusing to users, if they already have a bunch of other necessary flags, like placement options, fs_data_dirs, etc

I wouldn't want folks to assume this is all the flags they need to bring the master up, but I'm not sure how we're handling that in other sections?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO, now it's actually a bit more confusing, as we're talking about the flag being set to empty string AND the flag not being set, in the same sentence...which for a simple user, could be 2 different things.

What I was thinking was, the command we highlight should either:

  • not include --master_addresses -- and then the messaging above should say just don't provide it
  • include --master_addresses="" -- and the messaging should say set it to empty string

But moreover, the command should maybe also include something like

--fs_data_dirs=<your data directories>
[any other flags you would normally pass to this master process]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pushed change with --master_addresses=""

```
{{< note title="Note" >}}

Make sure to specify all YB-Master addresses which will prevent the new YB-Master server from unexpectedly becoming the leader.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, the end part of this comment does not make sense...you need to specify M4, not to prevent it from becoming the leader (this command cannot affect that), but instead, to make sure that, if it DID become the leader in the meantime, then yb-admin can find it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check change here 67996cc ?

docs/content/latest/troubleshoot/cluster/replace_master.md Outdated Show resolved Hide resolved
@ddorian
Copy link
Contributor Author

ddorian commented Oct 8, 2020

@bmatican made all requested changes, please recheck

Copy link
Contributor

@stevebang stevebang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggested changes to make

ddorian and others added 6 commits October 13, 2020 00:28
Co-authored-by: Steve Bang <stevebang@gmail.com>
Co-authored-by: Steve Bang <stevebang@gmail.com>
Co-authored-by: Steve Bang <stevebang@gmail.com>
Co-authored-by: Steve Bang <stevebang@gmail.com>
Co-authored-by: Steve Bang <stevebang@gmail.com>
Co-authored-by: Steve Bang <stevebang@gmail.com>
@ddorian ddorian merged commit b5a0db0 into yugabyte:master Oct 14, 2020
@ddorian ddorian deleted the doc-replace-master branch October 14, 2020 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation Documentation needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[docs] Troubleshooting for how to replace a master
3 participants