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

vtorc: code cleanup #8269

Merged
merged 17 commits into from
Jun 8, 2021
Merged

Conversation

shlomi-noach
Copy link
Contributor

@shlomi-noach shlomi-noach commented Jun 6, 2021

Description

I'll be stripping away irrelevant code from vtorc. Examples for code I'll remove:

  • raft consensus
  • Pseudo GTID
  • DNS/hostname resolve (vtorc gets hostnames from topo, no need to resolve names)
  • MaxScale (though I may keep some code that can later support general-purpose binlog servers)
  • Discovery queries/logic (vtorc gets information directly from Vitess, no need to probe instance for info)
  • Much of the related config

Related Issue(s)

No tracking issue at this time.

Checklist

  • Tests were added or are not required
  • Documentation was added or is not required

Deployment Notes

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
… legacy read/writes to instance_dao

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
@shlomi-noach
Copy link
Contributor Author

Initial commits: removing raft code.

@shlomi-noach
Copy link
Contributor Author

Next commit: removing all Pseudo-GTID related code.

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
@shlomi-noach
Copy link
Contributor Author

Remove Agent-related code.

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
@shlomi-noach
Copy link
Contributor Author

Removed graphite-related code.

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
@shlomi-noach
Copy link
Contributor Author

cc @GuptaManan100 @deepthi @sougou for visibility

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
@shlomi-noach
Copy link
Contributor Author

shlomi-noach commented Jun 7, 2021

The obvious irrelevant parts are gone. There's still potential for cleanup for:

  • hostname resolve/unresolve
  • binlog server logic
  • some metrics/collections
  • some api raft cleanup
  • discovery logic & config

but these are more nuanced and require a bit more delicate surgery.

I'm confident and good to go with current cleanup for starters.

@shlomi-noach shlomi-noach marked this pull request as ready for review June 7, 2021 05:35
@shlomi-noach
Copy link
Contributor Author

I intend to follow up with more PR(s) that are more nuanced.

Copy link
Member

@GuptaManan100 GuptaManan100 left a comment

Choose a reason for hiding this comment

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

LGTM! :octocat:

@harshit-gangal harshit-gangal merged commit 50365bb into vitessio:main Jun 8, 2021
@harshit-gangal harshit-gangal deleted the vtorc-code-cleanup branch June 8, 2021 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants