-
Notifications
You must be signed in to change notification settings - Fork 148
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(backingimage): backingimage ha eviction enhancement #2742
Conversation
This pull request is now in conflict. Could you fix it @ChanYiLin? 🙏 |
f6f2738
to
cb486bd
Compare
fixed. |
93b1320
to
d1e592d
Compare
Hi @shuo-wu So I changed the logic to
WDYT? |
a598b5f
to
260a658
Compare
This pull request is now in conflict. Could you fix it @ChanYiLin? 🙏 |
d17ffbf
to
b10b965
Compare
b10b965
to
bd8a313
Compare
fixed. |
5bcae3b
to
72fc205
Compare
This pull request is now in conflict. Could you fix it @ChanYiLin? 🙏 |
2226465
to
5d5160f
Compare
5eed3ff
to
b108be3
Compare
ede6a74
to
8973d98
Compare
8973d98
to
c538153
Compare
This pull request is now in conflict. Could you fix it @ChanYiLin? 🙏 |
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.
I will continue reviewing the controllers and scheduler tomorrow morning.
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.
In general LGTM except for the some comments from Derek
b7ae78e
to
5a8e760
Compare
5a8e760
to
837d139
Compare
ref: longhorn/longhorn 2856 Signed-off-by: Jack Lin <jack.lin@suse.com>
ref: longhorn/longhorn 2856 Signed-off-by: Jack Lin <jack.lin@suse.com>
… ready node and disk for BackingImage ref: longhorn/longhorn 2856 Signed-off-by: Jack Lin <jack.lin@suse.com>
837d139
to
2740909
Compare
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.
LGTM
ref: longhorn/longhorn#2856
minNumberOfCopies
nodeSelector
,diskSelector
Spec.Disks
toSpec.DiskFileSpecMap
and AddevictionRequested
minNumberOfCopies
or eviction situationreplenishBackingImageCopies()
nonFailedCopies >= MinNumberOfCopies
, we check if we need to replenish one copy for evictionNonEvictingCount < MinNumberOfCopies
nonFailedCopies < MinNumberOfCopies
cleanupEvictionRequestedBackingImageCopies()
concurrent-backing-image-replenish-per-node-limit
to limit the number of BackingImage being synced on the same node at the same time