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

BDR-4933 - cli/docs changes for v5.5.0 #5512

Closed
wants to merge 2 commits into from
Closed

Conversation

smaher-edb
Copy link
Contributor

What Changed?

Includes read scalability feature changes and others

Includes read scalability feature changes and others
@smaher-edb smaher-edb requested a review from djw-m as a code owner April 18, 2024 10:08
@smaher-edb smaher-edb requested review from Jagdish-Kewat-EDB and removed request for Jagdish-Kewat-EDB April 18, 2024 10:09
@smaher-edb smaher-edb marked this pull request as draft April 18, 2024 10:09
Copy link
Contributor

@djw-m djw-m left a comment

Choose a reason for hiding this comment

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

Please check why show-nodes appears to have disappeared as docs.

Also, I have a (relatively) low impact option for improving the PGD-CLI docs quality in presentation.

@@ -31,13 +40,17 @@ pgd create-proxy [flags]
```text
--group-name string group name
-h, --help help for create-proxy
--proxy-mode string proxy mode (default, read-only, any); proxy will route connections to -
Copy link
Contributor

Choose a reason for hiding this comment

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

This proxy-mode is going to a thing of confusion as is...
the "default" should be write or write-leader or anything but "default" as that leads to having to answer questions like "What's the default?" "Default" "Yes, what is it?" and "Who's on first" :)

As I understand it, this is entirely an abstraction in pgd-cli (As the mode is actually determined by the states of the two listen port settings) so it should be low impact to fix it before shipping?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, yes, that was what I had added in the initial version of RFC. The modes were - write, read-only and read-write (or any). But Petr specifically asked to not use word write anywhere because it creates confusion (because Write Leader is used for both Write and Read queries), and he mentioned he is kind of fed up of answering people who keeps asking same question whether Write Leader is only for Write (since v5.0.0).

We then discussed a lot on the naming (other option) but yes, no one had the better option. Current naming is kind of loosly based on target_session_attrs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As I understand it, this is entirely an abstraction in pgd-cli

Values are what SQL interface bdr.create_proxy() accepts. Hopefully, if this function goes away in future version (which is the plan) then this will also go away.

But yes, agree till that time it is going to be confusing. In fact, (I think I'd mentioned in our call also) not having proper mode field is going to be problem everywhere. Explaining in terms of port is odd.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Therefore, on below line and in description have added the detail what each mode is.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This option in both CLI cmd and sql interface is optional. So, hopefully, people will care about it only when they are trying to enable proxy for read-only connections.

Copy link
Contributor

Choose a reason for hiding this comment

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

"follow" (the write leader) might have worked better.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, not sure : ). "follow" in isolation may not look right.

@freza @ddipak do you have any opinion or suggestion here (as it will need change first in BDR). I don't mind changing it as we still have some time. But default is kind of also indicate it will work as it worked previously (which hopefully then we could tell that it means Write Leader) but yes 🤷.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, not suggesting changing it. Just we need to name things better (and giving an example)

@@ -31,13 +40,17 @@ pgd create-proxy [flags]
```text
--group-name string group name
-h, --help help for create-proxy
--proxy-mode string proxy mode (default, read-only, any); proxy will route connections to -
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, yes, that was what I had added in the initial version of RFC. The modes were - write, read-only and read-write (or any). But Petr specifically asked to not use word write anywhere because it creates confusion (because Write Leader is used for both Write and Read queries), and he mentioned he is kind of fed up of answering people who keeps asking same question whether Write Leader is only for Write (since v5.0.0).

We then discussed a lot on the naming (other option) but yes, no one had the better option. Current naming is kind of loosly based on target_session_attrs.

@@ -31,13 +40,17 @@ pgd create-proxy [flags]
```text
--group-name string group name
-h, --help help for create-proxy
--proxy-mode string proxy mode (default, read-only, any); proxy will route connections to -
Copy link
Contributor Author

Choose a reason for hiding this comment

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

As I understand it, this is entirely an abstraction in pgd-cli

Values are what SQL interface bdr.create_proxy() accepts. Hopefully, if this function goes away in future version (which is the plan) then this will also go away.

But yes, agree till that time it is going to be confusing. In fact, (I think I'd mentioned in our call also) not having proper mode field is going to be problem everywhere. Explaining in terms of port is odd.

@@ -31,13 +40,17 @@ pgd create-proxy [flags]
```text
--group-name string group name
-h, --help help for create-proxy
--proxy-mode string proxy mode (default, read-only, any); proxy will route connections to -
default - Write Leader
Copy link
Contributor Author

Choose a reason for hiding this comment

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

here, and in description have tried to add the details.

@@ -31,13 +40,17 @@ pgd create-proxy [flags]
```text
--group-name string group name
-h, --help help for create-proxy
--proxy-mode string proxy mode (default, read-only, any); proxy will route connections to -
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Therefore, on below line and in description have added the detail what each mode is.

@@ -31,13 +40,17 @@ pgd create-proxy [flags]
```text
--group-name string group name
-h, --help help for create-proxy
--proxy-mode string proxy mode (default, read-only, any); proxy will route connections to -
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This option in both CLI cmd and sql interface is optional. So, hopefully, people will care about it only when they are trying to enable proxy for read-only connections.

@smaher-edb smaher-edb requested review from freza and ddipak April 23, 2024 11:19
@djw-m
Copy link
Contributor

djw-m commented May 2, 2024

Please don't edit here - this PR has been subsumed into DOCS-577 - the complete PGD 5.5 release branch.

@djw-m djw-m closed this May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants