Cold Standby

Target

  • Provide user-level data recovery from disaster of the following scenarios:
    • If serious failure occurs in the primary cluster and the data becomes unrecoverable, while the standby cluster (hot standby) is unavailable at the same time, the active and standby clusters will be restored to the time of the incident or a certain point before the incident.
    • When user accidentally deletes or overwrites data due to some reason (such as operation error or software bug), restore the user table data to a certain time before the error occurred.

Representation

  • Users can configure while creating/updating a table. Configuration items include:
    • Switch on or off (default is off)
    • Cold standby cycle: WEEK/MONTH/QUARTER/HALF_YEAR/YEAR
    • Maximum number of snapshots
  • Charges
    • Backup data will be exported to FDS. Charge per FDS unit
    • HBase snapshot size (GB) unit price/GB/day cold standby cycle/day

Recovery

  • Users are not allowed to restore data themselves. Please contact us for recovery

Example

Example table. The following is sample code for table modification.

$tableName = "php-note";
$tableSpec = $adminClient->describeTable($tableName);

$tableSpec->metadata->coldStandBy = new ColdStandBy(array(
    //if enable coldstandby
    'enableColdStandBy' => true,
    //maximum size of snapshot 
    'coldStandBySize' => 10,
    //coldstandby cycle 
    'coldStandByCycle' => ColdStandByCycle::WEEK
));

$adminClient->alterTable($tableName, $tableSpec);

results matching ""

    No results matching ""