Skip to content

Router status & connections #8

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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Router status & connections #8

wants to merge 9 commits into from

Conversation

lefred
Copy link
Collaborator

@lefred lefred commented Jul 10, 2019

This is an extension that uses the new MySQL Router REST API and display some status.
Selection_824

Selection_825

Selection_821

Selection_823

Selection_827

@lefred
Copy link
Collaborator Author

lefred commented Jul 10, 2019

Output has changed and display the Route's name only once:
Selection_828

Signed-off-by: Frederic Descamps <[email protected]>
@lefred
Copy link
Collaborator Author

lefred commented Jul 10, 2019

I've added an optional parameter to display only some route names:
Selection_830

Output examples:
Selection_829

@grypyrg
Copy link
Collaborator

grypyrg commented Jul 11, 2019

  • specifying a password in clear text should not be recommended.
  • creating an object would simplify the use

can you change it into:

> router = ext.router.connect('fred')
Password:# input password in prompt
router connection validated
version: ...
clusters: ...
> router.status()
> router.connections('default_ro')

@lefred
Copy link
Collaborator Author

lefred commented Jul 15, 2019

I removed the 2 methods using now a "router" object:
Selection_053
Selection_054
Selection_055

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.

2 participants