The aodh.cmd.data_migration ModuleΒΆ

A tool for migrating alarms and alarms history data from NoSQL to SQL.

NOTES:

  • Users need to specify the source NoSQL connection url and the destination SQL
connection URL with this tool, an usage example:
aodh-data-migration –nosql-conn mongodb://aodh:password@127.0.0.1:27017/aodh –sql-conn mysql+pymysql://root:password@127.0.0.1/aodh?charset=utf8
  • Both the alarm data and alarm history data will be migrated when running this tool, but the history data migration can be avoid by specifying False of –migrate-history option.
  • It is better to ensure the db connection is OK when running this tool, and this tool can be run repeatedly, the duplicated data will be skipped.
  • This tool depends on the NoSQL and SQL drivers of Aodh, so it is should be used only before the removal of NoSQL drivers.
  • This tool has been tested OK in devstack environment, but users need to be cautious with this, because the data migration between storage backends is a bit dangerous.

Previous topic

The aodh.cmd.alarm_conversion Module

Next topic

The aodh.cmd.storage Module

Project Source

This Page