Automatic Database Recovery
A Gateway has the ability to detect database corruption during the Gateway’s restart and to subsequently perform automatic database recovery.
This feature is enabled by default in the com.boomi.container.apigateway.enableDatabaseRecovery container property.
If database corruption is detected, the Gateway performs the following tasks:
-
The old database file is renamed to gravitee.mv.db.YYYY-MM-DD.hh-mm-ss.backup.
-
A new empty database is created with the name gravitee.mv.db.
-
The new database is initialized and is configured to match the current schema configuration ( approximately 15-30 seconds).
-
A DATABASE_RECOVERY message is sent to the Platform in 60 seconds to initiate a full database recovery for the Gateway and Developer Portal.
-
The Platform starts sending messages in chunks to repopulate the data for the Gateway and Developer Portal database.
-
After a few minutes, the Gateway is restored to full operational state.