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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IMPROVEMENT] Disable Automatically Delete Workload Pod when The Volume Is Detached Unexpectedly
for RWX volumes
#5017
Comments
So this is specific for RWX only. I feel we need to include it in 1.4.0? WDYT? |
Yes. Should be in v1.4.0 |
If we don't have this improvement, what users will encounter is just the workload getting restarted to reattach to the RWX volume from the stretch w/o the previous client session (maintained in our newly built recovery backend), but there will be no data loss problem because the current nfs mode is changed to hard mode, correct? |
If we don't have this patch, the pod (client side) will be stopped and then recreated and attached to the volume. The disconnection can still introduce the data loss issue. I'm thinking if we need to have a setting for |
Agree. Then, we can keep the current PR and see if there is any feedback from users. WDYT? |
Sounds good. BTW, could you check the commit which introduced this setting to see the context of the feature? See if this was actually a concern for RWO or also RWX included. |
That setting is mainly for RWO volumes. I don't think we need a separate setting for RWX volumes after the improvement. |
Yes, I've checked the PR, but it doesn't mention any concern for RWO or RWX volume. |
Then let's do this improvement ;) |
Pre Ready-For-Testing Checklist
The steps are same as The workload can be a DaemonSet, Deployment or Deployment.
longhorn/longhorn-manager#1589
|
e2e afte updating https://ci.longhorn.io/job/private/job/longhorn-tests-regression/2657/ |
Verified in longhorn master
|
Is your improvement request related to a feature? Please describe (馃憤 if you like this request)
Longhorn has a feature
Automatically Delete Workload Pod when Volume is Detached Unexpectedly
, and it is enabled by default. For a RWX volume, when the volume is unexpectedly detached, it will be recreated on another node. Additionally, the NFS sever already has a dedicated recovery backend. Thus, there is no need to delete the workload pods using the volume, and IO should continue after the new volume is started.Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: