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

feat(topology): add affinity key to core #812

Closed
wants to merge 3 commits into from

Conversation

sinhaashish
Copy link
Member

No description provided.

@sinhaashish sinhaashish force-pushed the affinity branch 2 times, most recently from 7a2b786 to b613642 Compare May 20, 2024 04:18
@@ -118,6 +122,103 @@ impl Deref for GetSuitablePools {
}
}

/// Create replicas of a volume.
/// Selects the best pool candidates to create lvol replicas on.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// 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 {
Copy link
Contributor

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
Copy link
Contributor

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;
Copy link
Member

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.

@sinhaashish
Copy link
Member Author

PR #846 raised for the same.

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.

3 participants