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

Support Cluster configuration for dfly_bench #4664

Merged
merged 1 commit into from
Feb 26, 2025
Merged

Support Cluster configuration for dfly_bench #4664

merged 1 commit into from
Feb 26, 2025

Conversation

romange
Copy link
Collaborator

@romange romange commented Feb 26, 2025

The load tester client opens a connection to each shard, in total num_shards * FLAGS_c * FLAGS_proactor_threads connections.

There is no support for MOVED responses at the moment so only static clusters are supported.

@romange romange requested a review from kostasrim February 26, 2025 14:27
The load tester client opens a connection to each shard, in total
`num_shards * FLAGS_c * FLAGS_proactor_threads` connections.

There is no support for MOVED responses at the moment so only static clusters are supported.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
Copy link
Contributor

@kostasrim kostasrim left a comment

Choose a reason for hiding this comment

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

I do have some faith that the function FetchCluster does the right thing. I can thoroughly review it but I will need to pull the branch locally and play around -- I am not familiar with dfly_bench that much.

I would also like to see dfly_bench tests. Maybe it's an overkill though 🤷

Lastly, happy to pull your branch and play around if you want me to. I did not because dfly_bench is not "core".

@@ -724,6 +802,82 @@ void WatchFiber(atomic_bool* finish_signal, ProactorPool* pp) {
}
}

ClusterSpec FetchCluster(const tcp::endpoint& ep, ProactorBase* proactor) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I went over this function briefly but I did not do a thorough review so I can't really guarantee the correctness of it. Moreover, for changes like this it's nice to have tests. And speaking of that do we have tests for dfly_bench ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we do not - it's not part of a production stack

@romange romange merged commit fff49e0 into main Feb 26, 2025
10 checks passed
@romange romange deleted the BenchCluster branch February 26, 2025 17:45
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