Skip to end of metadata
Go to start of metadata

Selecting the backup policy should be decided in consideration of the operation environment, such as the importance of data, recovery policy, and backup size. This chapter describes the considerations for determining a backup policy.

Select backup target


To determine a backup policy, the first thing to do is to select a backup target. In addition, in consideration of the characteristics of the backup target the recovery policy, backup type, backup cycle, backup time, and storage period of backup files must be determined first.

This backup plan is not something that the DBA can do alone and requires a data manager to cooperate with. This is because the person who is in charge of the operation needs to know which backup target is most suitable.

Recovery point


There is a difference in the time of recovery depending on the backup type. Depending on the importance of the backup target, a recovery point should be determined a backup method should be selected accordingly.

There are three major recovery points.

Recovery point
Description
Backup pointThis refers to the restoration to the point in time when the backup was performed.
Complete recovery

This refers to the restoration to the most recent point in the database.

This is possible only when online log files and archive log files are not lost.

Incomplete recovery

This refers to the restoration to a certain past point in time.

Incomplete recovery is possible at two points in time.

  • UNTIL CANCEL
    Recover by specifying a specific log file
  • UNTIL TIME
    Recover by specifying the date and time

 

The table below summarizes the recovery points by backup type. Select a backup method suitable for the backup target by referring to the table.

Backup typeBackup pointComplete backupIncomplete backup
Logical backupPossibleN/AN/A
Physical backupOnline backupPossiblePossiblePossible
Online backupPossibleN/AN/A
Incremental backupPossiblePossiblePossible


Recovery time


Recovery is an operation that must be performed after a service interruption. Operation environments in which service downtime must be minimized when determining the backup policy.

Since the factors that affect the recovery time differ depending on the backup type, please refer to the table below and select the method that suits the characteristics of the backup target.

Backup typeFactors affecting recovery timeDescription
Logical backupaexport
  • Number of database objects
If creating objects is necessary during the recovery process, the number of objects can affect the recovery time.
iloader
  • Number of tables
  • Data usage of tables
  • Number of indexes
Since the information of the file is read and inserted into the table (INSERT), the number of tables, the number of records, and the number of indexes affect the recovery time.
Physical backupOnline backup
  • Data usage of memory tables
  • Memory index
  • Number of log files

Recovery is in progress while the Altibase server is running.
It takes time to load the memory table data into memory and rebuild the memory index.
Since log files are used in the recovery process, the number of log files to be reflected affects the recovery time.
The log file is determined by the amount of transactions that have occurred since the backup.

Offline backup
  • Data usage of memory tables
  • Memory index

The recovery time is shortest because the Altibase is restored by running only the backup file.

When running the Altibase server, it takes time to load the memory table data into the memory and rebuild the memory index.

 

Incremental backup
  • Data usage of memory tables
  • Memory index
  • Number of log files

During the recovery process, it takes time to load the memory table data into memory and rebuild the memory index.
Since the log files are used in the recovery process, the number of log files to be reflected affects the recovery time.

The log file is determined by the amount of transactions that have occurred since the backup.

 

Backup performing time


The backup performing time takes a long time as the size of the database is larger, and it affects the transaction while executing the backup. Therefore, it is recommended to perform a backup at idle time during the Altibase operation.

This table summarizes the factors that affect the backup time by backup type and how they affect transactions.

  • Backup time

     

    Backup typeFactors affecting the time to back upDescription
    Logical backupaexport- Number of database objectsSince the object creation script is created, it is affected by the number of database objects at backup time.
    iloader- Number of tables
    - Usage of tables
    Since a text file created by retrieving data for each table, the time required for backup is affected by the number and usage of tables.
    Physical backupOnline backup- Size of disk table data file
    - Size of memory checkpoint image
    Online backup is a process of physically copying data files, so the size of the data file affects the time required for backup.
    Offline backup- Size of disk table data file
    - Size of memory checkpoint image file
    Offline backup is also a process of physically copying data files, and the time required for backup is affected by the size of the data file.
    Incremental backupLevel 0 incremental backup- Size of disk table data file
    - Size of memory checkpoint image file
    As a backup in a similar method to online backup, the size of the data file affects the time required for backup.
    Level 1 incremental backup- amount of change of data pageThe time required for level 1 incremental backup is affected by the amount of data page change caused by the change transaction.
  • Transaction

    This is a table comparing the impact on transactions when performing a backup

    Backup typeImpact on transaction
    Logical backupaexportTemporarily unable to perform DDL
    iloaderMemory GC increase during backup
    Physical backupOnline backupOnline log file increase due to inability to perform checkpoint during backup
    Offline backupService downtime required
    Incremental backup

    Normal DB performance degradation by activating the 'Page Change Tracking' function

    Online log file increase due to inability to perform checkpoint during backup

Backup copy storage cycle


It is recommended to keep at least two backup copies.

This is to prepare for the loss of backup copies due to an incorrect backup or a disk fault or user fault.

Configuring disk partitions for backup

 


If the object storing the backup file is a disk, it is recommended that the backup location be set to space physically separated from the path where the database data files and log files are located.

During the database operation, disk I/O occurs as follows. However, an exception in the case of a service that mainly occurs only retrieving transactions in the memory table.

 

  • Disk I/O for log files where changes to the database are recorded
  • Disk I/O to record to the memory checkpoint image file in the memory table
  • Disk I/O to read and record data files in the disk table

Therefore, disk space is separated to minimize bottlenecks between disk I/O occurring during database operation and disk I/O while executing the backup.


  • No labels