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

vtgateproxy: refactor to have a single parser and more efficient shuffle #275

Closed
wants to merge 3 commits into from

Conversation

demmer
Copy link
Collaborator

@demmer demmer commented Mar 29, 2024

Description

Refactor the discovery logic to have a single watcher for the parsed file, and then each resolver just gets callbacks from there.

Also clean up and consolidate the command line flags.

Also implement a more efficient single pass shuffle scan because it seemed nifty.

demmer added 3 commits March 29, 2024 11:41
This way we only have a single entity watching the file and dispatching out to
the resolvers when things change rather than a bunch of tickers watching the
file. Also cleaned up the code a bunch.
// "type": "aux"
// },
//
// Naming scheme:
// vtgate://<type>?num_connections=<int>&az_id=<string>
// URKL scheme:

Choose a reason for hiding this comment

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

NIt: typo

@demmer
Copy link
Collaborator Author

demmer commented Apr 12, 2024

This branch rotted a bit and then had a conflict. Rebased and will re-open on a new branch.

@demmer demmer closed this Apr 12, 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.

2 participants