<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Oh, I think you just gave me an idea for a new blueprint...<div>Honestly, It seems that this is something that should be part of ${service}-manage</div><div><br><div><div>On Oct 30, 2014, at 1:47 PM, Morgan Fainberg <<a href="mailto:morgan.fainberg@gmail.com">morgan.fainberg@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div dir="auto"><div>Hi Abel,</div><div><br></div><div>For Keystone we already have a way to prune out expired records: keystone-manage token_flush</div><div><br></div><div>This can be run via cron (recommended). The reason for the side band tool is that keystone does not have an internal scheduler for periodic tasks (not a common use keystone needs to do across all the functionality) </div><div><br></div><div>If you have a large number of tokens and use MYSQL, we have logic to help limit he impact to the backend by doing batched flushes.</div><div><br></div><div>I am not sure what the requirements for holding on to data (e.g. Nova instances) once they've been deleted, but I think it is definitely worth setting some clear guidelines on this for each service so it can be followed / implemented as a built in function.</div><div><br></div><div>Cheers,</div><div>Morgan</div><div><br>Sent via mobile</div><div><br>On Oct 30, 2014, at 13:20, Abel Lopez <<a href="mailto:alopgeek@gmail.com">alopgeek@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=us-ascii">We just had this question come up regarding the labs, but it applies to production as well.<div><br></div><div>I'm thinking that we need to implement some sort of periodic database pruning. Perhaps like every two months or so, go through all databases, all tables, and do like</div><div><br></div><div><font face="Consolas">delete from FOO where deleted=1 and deleted_at < date_sub(now(), interval 2 month)</font></div><div><br></div><div>Just as an example.</div><div><br></div><div>Does anyone have see any issues with purging deleted=1 data?</div><div>I've seen this be very helpful for things like Keystone tokens, etc.</div></blockquote><blockquote type="cite"><span>_______________________________________________</span><br><span>OpenStack-operators mailing list</span><br><span><a href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.openstack.org</a></span><br><span><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a></span><br></blockquote></div></blockquote></div><br></div></body></html>