nova/releasenotes/notes/archive-sleep-a0cc3d3e7784e5df.yaml
melanie witt fc77ce191f Add --sleep option for archive_deleted_rows --until-complete
Currently, when 'nova-manage db archive_deleted_rows' is run with
the --until-complete option, the process will archive rows in batches
in a tight loop, which can cause problems in busy environments where
the aggressive archiving interferes with other requests trying to write
to the database.

This adds an option for users to specify an amount of time in seconds
to sleep between batches of rows while archiving with --until-complete,
allowing the process to be throttled.

Closes-Bug: #1912579

Change-Id: I638b2fa78b81919373e607458e6f68a7983a79aa
2021-09-02 13:55:46 +02:00

12 lines
569 B
YAML

---
features:
- |
A ``--sleep`` option has been added to the ``nova-manage db
archive_deleted_rows`` CLI. When this command is run with the
``--until-complete`` option, the process will archive rows in batches
in a tight loop, which can cause problems in busy environments where
the aggressive archiving interferes with other requests trying to write
to the database. The ``--sleep`` option can be used to specify a time to
sleep between batches of rows while archiving with ``--until-complete``,
allowing the process to be throttled.