Skip to content

feat(admin): add a name to the replica selector#394

Merged
ijsong merged 1 commit intomainfrom
replica_selector_name
Apr 6, 2023
Merged

feat(admin): add a name to the replica selector#394
ijsong merged 1 commit intomainfrom
replica_selector_name

Conversation

@ijsong
Copy link
Copy Markdown
Member

@ijsong ijsong commented Apr 5, 2023

What this PR does

It adds a new method Name() string to the replica selector interface
internal/admin.(ReplicaSelector). We can set a unique name for each replica selector, and
therefore, we can use a necessary replica selection algorithm by specifying the name.

Which issue(s) this PR resolves

Updates #393

@ijsong ijsong requested a review from hungryjang as a code owner April 5, 2023 09:54
@ijsong
Copy link
Copy Markdown
Member Author

ijsong commented Apr 5, 2023

@ijsong ijsong self-assigned this Apr 5, 2023
@ijsong ijsong linked an issue Apr 5, 2023 that may be closed by this pull request
6 tasks
It adds a new method `Name() string` to the replica selector interface
`internal/admin.(ReplicaSelector)`. We can set a unique name for each replica selector, and
therefore, we can use a necessary replica selection algorithm by specifying the name.

Updates #393
@ijsong ijsong force-pushed the replica_selector_name branch from 4328e61 to 6e7e74f Compare April 6, 2023 02:43
@ijsong
Copy link
Copy Markdown
Member Author

ijsong commented Apr 6, 2023

@ijsong queued this pull request to merge with Graphite.

@ijsong ijsong merged commit 93391c1 into main Apr 6, 2023
@ijsong
Copy link
Copy Markdown
Member Author

ijsong commented Apr 6, 2023

@ijsong merged this pull request with Graphite.

@ijsong ijsong deleted the replica_selector_name branch April 6, 2023 03:28
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.

admin: methods to select replicas for log stream

2 participants