nova/releasenotes/notes/archive-all-db-aadf2ce0394c24fa.yaml
Dan Smith 6f00d3be95 Allow running db archiving continuously
This adds a --until_complete flag to the db archive command, which will
attempt to run batches of max_rows continuously until archiving has
completed (or stops being able to archive anything). We also take care
to catch KeyboardInterrupt so that it will, if stopped, still print
the verbose report at the end. Instead of printing the table on each
iteration, we print some progress information and then provide a completed
summary table at the end of the run.

This also defaults max_rows to a sane value. The previous meaning of not
providing a value was "archive a whole table in a single operation",
which was useful only in the most simple of cases. Now that we have
a more reasonable "do it until you are done" mechanism, we default this
to 1000 rows for sanity, which also serves as the batch size for the
continuous mode.

Implements blueprint archive-deleted-rows-all
Change-Id: I2929c2f5b3116b63a4666b258bf078bc51d4e45a
2016-10-04 12:30:14 -07:00

8 lines
278 B
YAML

---
features:
- |
Support for archiving all deleted rows from the database has
been added to the ``nova-manage db archive_deleted_rows``
command. The ``--until-complete`` option will continuously
run the process until no more rows are available for archiving.