<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Oct 31, 2014 at 8:30 AM, Abel Lopez <span dir="ltr"><<a href="mailto:alopgeek@gmail.com" target="_blank">alopgeek@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">It seems that every release, there is more and more emphasis on upgradability. This is a good thing, I've love to see production users easily go from old to new.<br>
<br>
As an operator, I've seen first hand the results of neglecting the databases that openstack creates. If we intend to have users go year-over-year with upgrades, we're going to expect them to carry huge databases around.<br>
<br>
Just in my lab, I have over 100000 deleted instances in the last two months.<br>
Frankly, I'm not convinced that simply archiving deleted rows is the best idea. Sure, gets your production databases and tables to a manageable size, but you're simply hoarding old data.<br>
<br>
As an operator, I'd prefer to have time based criteria over number of rows, too.<br>
I envision something like `nova-manage db purge [days]` where we can leave it up to the administrator to decide how much of their old data (if any) they'd be OK losing.<br>
<br></blockquote><div><br></div><div>Heat has something like this: <a href="http://docs.openstack.org/developer/heat/man/heat-manage.html">http://docs.openstack.org/developer/heat/man/heat-manage.html</a><br></div><div><p><tt class=""><span class="">heat-manage</span> <span class="">purge_deleted</span> <span class="">[-g</span> <span class="">{days,hours,minutes,seconds}]</span> <span class="">[age]</span></tt></p><br></div><div>Although I am not sure it is popular: <a href="https://bugs.launchpad.net/heat/+bug/1239377">https://bugs.launchpad.net/heat/+bug/1239377</a><br><br></div><div>-Angus<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Think about data destruction guidelines too, some companies require old data be destroyed when not needed, others require maintaining it.<br>
We can easily provide both here.<br>
<br>
I've drafted a simple blueprint <a href="https://blueprints.launchpad.net/nova/+spec/database-purge" target="_blank">https://blueprints.launchpad.net/nova/+spec/database-purge</a><br>
<br>
I've love some input from the community.<br>
<br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div></div>