-
Notifications
You must be signed in to change notification settings - Fork 38
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
feat(topology): add affinity key to core #812
Conversation
7a2b786
to
b613642
Compare
@@ -118,6 +122,103 @@ impl Deref for GetSuitablePools { | |||
} | |||
} | |||
|
|||
/// Create replicas of a volume. | |||
/// Selects the best pool candidates to create lvol replicas on. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// Selects the best pool candidates to create lvol replicas on. | |
/// Selects the best pool candidates to create volume replicas on. |
@@ -118,6 +122,103 @@ impl Deref for GetSuitablePools { | |||
} | |||
} | |||
|
|||
/// Create replicas of a volume. | |||
/// Selects the best pool candidates to create lvol replicas on. | |||
pub(crate) struct CreateVolumeReplica { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need a new type? Moreover it's quite similar to AddVolumeReplicas
@@ -64,6 +64,8 @@ message PoolState { | |||
uint64 used = 6; | |||
// total size of pool replicas | |||
optional uint64 committed = 7; | |||
// optional labels of pool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm this doesn't make sense? Dataplane pool state has no notion of labels...
Signed-off-by: sinhaashish <ashi.sinha.87@gmail.com>
Signed-off-by: sinhaashish <ashi.sinha.87@gmail.com>
Signed-off-by: sinhaashish <ashi.sinha.87@gmail.com>
@@ -15,9 +15,10 @@ use crate::{ | |||
node::wrapper::NodeWrapper, | |||
}; | |||
use agents::errors::{NotEnough, SvcError}; | |||
use std::collections::HashMap; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move this down after a blank line.
PR #846 raised for the same. |
No description provided.