<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 2 June 2014 20:22, Vijay Bellur <span dir="ltr"><<a href="mailto:vbellur@redhat.com" target="_blank">vbellur@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 04/23/2014 05:50 AM, Vijay Bellur wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 04/20/2014 11:42 PM, Lalatendu Mohanty wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 04/16/2014 11:39 AM, Avra Sengupta wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The whole purpose of introducing the soft-limit is, that at any point<br>
of time the number of<br>
snaps should not exceed the hard limit. If we trigger auto-delete on<br>
hitting hard-limit, then<br>
the purpose itself is lost, because at that point we would be taking a<br>
snap, making the limit<br>
hard-limit + 1, and then triggering auto-delete, which violates the<br>
sanctity of the hard-limit.<br>
Also what happens when we are at hard-limit + 1, and another snap is<br>
issued, while auto-delete<br>
is yet to process the first delete. At that point we end up at<br>
hard-limit + 1. Also what happens<br>
if for a particular snap the auto-delete fails.<br>
<br>
We should see the hard-limit, as something set by the admin keeping in<br>
mind the resource consumption<br>
and at no-point should we cross this limit, come what may. If we hit<br>
this limit, the create command<br>
should fail asking the user to delete snaps using the "snapshot<br>
delete" command.<br>
<br>
The two options Raghavendra mentioned are applicable for the<br>
soft-limit only, in which cases on<br>
hitting the soft-limit<br>
<br>
1. Trigger auto-delete<br>
<br>
or<br>
<br>
2. Log a warning-message, for the user saying the number of snaps is<br>
exceeding the snap-limit and<br>
display the number of available snaps<br>
<br>
Now which of these should happen also depends on the user, because the<br>
auto-delete option<br>
is configurable.<br>
<br>
So if the auto-delete option is set as true, auto-delete should be<br>
triggered and the above message<br>
should also be logged.<br>
<br>
But if the option is set as false, only the message should be logged.<br>
<br>
This is the behaviour as designed. Adding Rahul, and Seema in the<br>
mail, to reflect upon the<br>
behaviour as well.<br>
<br>
Regards,<br>
Avra<br>
</blockquote>
<br>
This sounds correct. However we need to make sure that the usage or<br>
documentation around this should be good enough , so that users<br>
understand the each of the limits correctly.<br>
<br>
</blockquote>
<br>
It might be better to avoid the usage of the term "soft-limit".<br>
soft-limit as used in quota and other places generally has an alerting<br>
connotation. Something like "auto-deletion-limit" might be better.<br>
<br>
</blockquote>
<br></div></div>
I still see references to "soft-limit" and auto deletion seems to get triggered upon reaching soft-limit.<br>
<br>
Why is the ability to auto delete not configurable? It does seem pretty nasty to go about deleting snapshots without obtaining explicit consent from the user.<br></blockquote><div><br></div><div>I agree with Vijay here. It's not good to delete a snap (even though it is oldest) without the explicit consent from user.<br>
<br></div><div>FYI It took me more than 2 weeks to figure out that my snaps were getting autodeleted after reaching "soft-limit". For all I know I had not done anything and my snap restore were failing.<br><br></div>
<div>I propose to remove the terms "soft" and "hard" limit. I believe there should be a limit (just "limit") after which all snapshot creates should fail with proper error messages. And there can be a water-mark after which user should get warning messages. So below is my proposal.<br>
<br></div><div><b>auto-delete + snap-limit: </b>If the snap-limit is set to <b>n</b>, next snap create (n+1th) will succeed <b>only if</b> <b>if auto-delete is set to on/true/1</b> and oldest snap will get deleted automatically. If autodelete is set to off/false/0 , (n+1)th snap create will fail with proper error message from gluster CLI command. But again by default autodelete should be off.<br>
<br></div><div><b>snap-water-mark</b>: This should come in picture only if autodelete is turned off. It should not have any meaning if auto-delete is turned ON. Basically it's usage is to give the user warning that limit almost being reached and it is time for admin to decide which snaps should be deleted (or which should be kept)<br>
<br></div><div>*my two cents*<br><br></div><div>-MS<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Cheers,<div class=""><br>
Vijay<br>
<br>
______________________________<u></u>_________________<br>
Gluster-devel mailing list<br>
</div><a href="mailto:Gluster-devel@gluster.org" target="_blank">Gluster-devel@gluster.org</a><br>
<a href="http://supercolony.gluster.org/mailman/listinfo/gluster-devel" target="_blank">http://supercolony.gluster.<u></u>org/mailman/listinfo/gluster-<u></u>devel</a><br>
</blockquote></div><br></div></div>