<html><body><div style="font-family: lucida console,sans-serif; font-size: 12pt; color: #000000"><div>+1 <br></div><div><br></div><div>That makes the most operational sense. <br></div><div><br></div><div>The other way to look at snapshots is space consumption triggers. If the capacity in the thin pool is under threat then this also needs to be flagged, and potentially an option to autodelete under this trigger scenario would be worth considering.<br></div><div><br></div><div>Cheers,<br></div><div><br></div><div>PC<br></div><div><br></div><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Lalatendu Mohanty" &lt;lmohanty@redhat.com&gt;<br><b>To: </b>"Raghavendra Bhat" &lt;rabhat@redhat.com&gt;, "gluster-devel" &lt;gluster-devel@nongnu.org&gt;<br><b>Sent: </b>Tuesday, 15 April, 2014 6:48:36 AM<br><b>Subject: </b>Re: [Gluster-devel] autodelete in snapshots<br><div><br></div>On 04/15/2014 07:05 PM, Raghavendra Bhat wrote:<br>&gt;<br>&gt; Hi,<br>&gt;<br>&gt; As of now, in snapshots there are 2 limits for the number of <br>&gt; snapshots, hard-limit and soft-limit. Usually soft-limit is 90% of <br>&gt; hard-limit by default (it can be changed also). Say the hard-limit is <br>&gt; 50, then soft-limit by default will be 45. We are planning to do <br>&gt; autodelete of the oldest snapshot upon reaching the limit.<br>&gt;<br>&gt; There are 2 options:<br>&gt;<br>&gt; 1) Start doing autodelete upon reaching the soft-limit. i.e If the <br>&gt; hard limit is 50 and the &nbsp;number of the snapshots taken becomes 45, <br>&gt; then for the next snapshot taken (i.e 46th snapshot), the oldest <br>&gt; snapshot will be automatically deleted in the background.<br>&gt;<br>&gt; 2) Use soft-limit as a means to notify the admin about limit being <br>&gt; reached (gf_log, syslog etc, or also a warning message shown for every <br>&gt; snapshot taken after the soft limit is reached) and start doing <br>&gt; autodelete after reaching the hard-limit i.e once 50 snapshots are <br>&gt; reached, then when 51st snapshot is triggered, the oldest snapshot <br>&gt; will be deleted in the background.<br>&gt;<br>&gt; Please provide feedback.<br><div><br></div>I like the #2 option. If user has set something as hard-limit, it should <br>be treated as hard limit and soft-limit can be used as warning mechanism.<br><div><br></div>&gt;<br>&gt; NOTE: The auto-delete can be made configurable, which if turned off, <br>&gt; snapshot create fails upon reaching the limit.<br>&gt;<br>&gt; Regards,<br>&gt; Raghavendra Bhat<br>&gt;<br>&gt; _______________________________________________<br>&gt; Gluster-devel mailing list<br>&gt; Gluster-devel@nongnu.org<br>&gt; https://lists.nongnu.org/mailman/listinfo/gluster-devel<br><div><br></div><br>_______________________________________________<br>Gluster-devel mailing list<br>Gluster-devel@nongnu.org<br>https://lists.nongnu.org/mailman/listinfo/gluster-devel<br></blockquote><div><br></div></div></body></html>