masakari/masakari/cmd
pooja jadhav 4048b1fd8e Add db purge support
Added db purge support to delete the soft-deleted records from tables.
In case of tables 'hosts' and 'failover_segments' the decision to purge
the record is made on the basis of 'deleted' and 'deleted_at' column's
value. However in case of 'notifications' table it is decided on the
basis of 'updated_at' column's value as notifications don't have
'delete' API.

Operator can use the below command to purge the records:

"masakari-manage db purge --age_in_days <days> --max_rows <rows>"

Implements: blueprint db-purge-support

Co-author: Pooja Jadhav <pooja.jadhav@nttdata.com>
Change-Id: Id959b0e2b84d5d2587d6b70b8f695f69634a1d17
2018-04-18 13:03:06 +05:30
..
__init__.py Add RPC layer for masakari 2016-10-07 13:16:26 +05:30
api.py Remove log translations 2017-04-05 08:11:09 +00:00
engine.py Add masakari-engine support 2016-10-05 14:53:26 +05:30
manage.py Add db purge support 2018-04-18 13:03:06 +05:30