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

message: optimazation for message priority strategy #8687

Merged
merged 1 commit into from Jul 6, 2016

Conversation

mslovy
Copy link
Contributor

@mslovy mslovy commented Apr 22, 2016

want peering and reply as fast as it can

Signed-off-by: Ning Yao yaoning@unitedstack.com

cost(0)
{}
cost(0) {
set_priority(CEPH_MSG_PRIO_HIGH);
Copy link
Contributor

Choose a reason for hiding this comment

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

Not this one, ReplicatedBackend bases the priority on the Push priority.

@athanatos
Copy link
Contributor

@mslovy

PushReply has it's priority already set in ReplicatedBackend based on the Push priority -- that's better than setting it to HIGH unconditionally. Remove the PushReply change.

The two OpReply messages already have HIGH set in ReplicatedBackend. It's confusing to set it in both places. If you want to switch it to be set in the constructor, please separate that change into its own commit and remove the set_priority calls from ReplicatedBackend.

Setting the peering message priority in the constructor does make some sense, but don't do it in the same commit as the OpReply messages.

want peering as fast as it can

Signed-off-by: yaoning <yaoning@unitedstack.com>
@mslovy mslovy changed the title message: set high priority for peering and reply message message: optimazation for message priority strategy May 10, 2016
@mslovy
Copy link
Contributor Author

mslovy commented May 10, 2016

@athanatos , updated, please review again. I think it is not reasonable to set the priority for MOSDSubOpReply since it is also used by others (like scrubbing). So I revert all modification related to Reply Ops, it would be fine and sometime more instructive to guide us setting different priority in different cases.
Optimize priority setting for kick_recovery_op

@athanatos
Copy link
Contributor

@mslovy That second commit should be a separate PR. Currently, there are no tests at all that have different clients at different priorities, I would be surprised if it worked. That is work that needs to be done. The first step would be to add into the ceph-qa-suite rados/thrash suite a workload with two ceph_test_rados instances using different client priorities. Once we have that to test against, we can start merging patches to fix that behavior.

@mslovy
Copy link
Contributor Author

mslovy commented Jun 26, 2016

@athanatos , reset the second commit and I will propose a new PR later as mentioned

@athanatos
Copy link
Contributor

Ok, this makes sense, adding the needs-qa label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants