-
Notifications
You must be signed in to change notification settings - Fork 43
Supervised failover #4265
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
Supervised failover #4265
Conversation
a0b0108
to
a13464d
Compare
ab931e5
to
352dd4f
Compare
6d9bc82
to
18283bb
Compare
ea4ef0d
to
06cdab2
Compare
c9de62e
to
093b0f1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the links in the pull request description. It is really convenient to look over the parts that actually needs a review.
I highlighted several points in the failover algorithm overview. I think it worth to discuss f2f how to better describe it in a consice way.
At least, I see that we can discuss the following points:
- How to better divide it into subsections.
- Should we divide the service into more-or-less simple blocks and describe them separately or describe how the service works at whole?
- Should we highlight which actions are performed by which actor (coordinator, instance) and when exactly (on appoint request, on switching to active mode and so on).
I would also like to provide some in-depth materials like ones that are placed in https://github.com/tarantool/enterprise_doc/issues/253 (plus pictures from my presentations). I open a pull request with some drafts, but I likely need your assistance to make it ready for the website.
|
||
.. code-block:: console | ||
|
||
$ tt cluster failover switch URI INSTANCE_NAME [OPTION ...] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it worth to mention -w
here explicitly, because this option is likely often used together with this command.
ff4dc5a
to
71f58ec
Compare
a8e7524
to
a69199e
Compare
a69199e
to
e620bcc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the concise description and the reference!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked the reference part. Looks good, just a couple comments.
.. _tarantool_cli: | ||
.. _configuration_command_options: | ||
|
||
tarantool command-line options |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no introduction/definition of the tarantool
executable.
I'd add a sentence (possibily a note) explaining that tarantool
is an executable for running a single instance and there is tt
that covers much more scenarios.
``tt cluster failover switch`` appoints the specified instance to be a master. | ||
This command accepts the following arguments and options: | ||
|
||
- ``URI``: A :ref:`URI <tt-cluster-uri>` of the cluster configuration storage. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found a possible issue that applies to the whole page.
In the tt cluster
reference, the URI
arguments refers to the config storage URI, while in the rest of the tt
reference it's the instance URI. This can confuse readers. Perhaps we should change the argument name on this page to CONFIG_URI
or smth like that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed the URI
argument to CONFIG_URI
.. code-block:: console | ||
|
||
$ tt cluster failover switch http://localhost:2379/myapp storage-a-002 | ||
To check the switching status, run: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the output needs an explanation. At first, I decided that it's a part of the switch-status
reference pasted here by mistake.
This command accepts the following arguments: | ||
|
||
- ``URI``: A :ref:`URI <tt-cluster-uri>` of the cluster configuration storage. | ||
- ``TASK_ID``: An identifier of the task used to switch a master instance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's never introduced. Let's explain it here or above (see the comment on failover switch
example).
|
||
$ tt cluster failover switch-status URI TASK_ID | ||
|
||
``tt cluster failover switch-status`` shows the status of switching a master instance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What statuses do we have?
@@ -378,12 +447,24 @@ Options | |||
|
|||
Skip validation when publishing. Default: `false` (validation is enabled). | |||
|
|||
.. option:: --t, --timeout UINT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.. option:: --t, --timeout UINT | |
.. option:: -t, --timeout UINT |
-t
with one hyphen?
5319934
to
32dbcd4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
supervised
failover: supervised_failover.Configuration reference
:tarantool
CLI reference. Note that this reference is moved from the existing Starting and stopping instances topic.tt cluster failover
command reference:tt cluster
command reference.timeout
andwait
options (applicable tott cluster failover
): Options