Shutting Down and Reviving An Eon Mode Database

An Eon Mode database keeps an up-to-date version of its data and metadata in its communal storage location. After you shut down the database, it continues to reside in communal storage. You can keep this storage in S3 and terminate compute nodes. When you are ready to use it again, you can revive the database and provision new compute nodes.

You can also drop a database and then revive it and start your Vertica database.

Vertica uses the existing data to restore the database in the same state it was in before you shut it down. You do not need to wait for data to be copied; queries initially fetch data from communal storage as the compute nodes begin to fill their depots.

With the Vertica Management Console on AWS, you can use a wizard to provision a new cluster and revive a database onto it from a browser. See Reviving an Eon Mode Database in MC for the Management Console revive process.

Databases can be revived using admintools (described below) or through Management Console.

If you need to revive your database on a previously existing cluster, you must revive it using admintools, not MC. For example, use admintools if you stopped a cluster whose hosts use instance storage where data is not persistently stored, and plan to bring back the database on the same cluster.

Vertica persists catalog data in S3, updating it every few minutes. Nonetheless, before shutting down your database you should make sure your metadata is up to date on communal storage. To do so, see Synchronizing Metadata.

Revive the Database Using Admintools

Use the following process to revive your Eon Mode database on an existing cluster using admintools.

Using the same communal storage location for multiple running databases causes data corruption. To avoid corruption, never use the revive functionality to simultaneously run the same Eon Mode database on different clusters.

Prerequisites:

  • Communal storage location (an AWS S3 bucket) of the stopped Eon Mode database you plan to revive
  • Username and password of the Eon Mode database you plan to revive
  • AWS cluster with no other running databases, whose hosts are in the same region as your communal storage location's S3 bucket (To use a cluster in a new region, you must first clone the previous communal storage location to an S3 bucket in the new region)
  • Amazon key pair for SSH access to an instance in the AWS cluster
  • IP addresses of all hosts on the cluster

To revive the database:

  1. SSH to a cluster host as an administrator.
  2. To revive the database, run the following:

    $ admintools -t revive_db --communal-storage-location=s3://<directory> -s $HOSTLIST --force -d $DATABASENAME

Initial queries after revive will read from communal storage, which may take longer. As the database begins to fetch data to depot storage, queries will run faster.