Segment Management
The segments are used for NGA archiving. In order to keep the data manageable, NGA structures the data of each archive group into segments.
When data is archived using the NextGen Archiver, the underlying database(s) will use evergrowing diskspace for storing data, meta information, indexes etc. To keep this heap of data manageable, NGA structures data of each archive group into segments. Each segment has a start and end time, which are determined by the group setting.
The term "segment" is an artificial term used by the NGA and is implemented differently, depending on underlying database technology. InfluxDB® implements segments as so-called "shards" whereas in Oracle "tablespaces" are used for the same purpose.
During the life cycle, each segment can change its state several times. The following states are defined:
- Current: The segment exists and is currently used to store data. There is always exactly one segment with state Current. In some special cases this rule must not apply.
- Online: Segment is present locally and available for read and write operations for data belonging to this timerange in the past.
- Backed up: Segment is present locally and available for read operations.
- Online and Backed up: Segment is present locally and available for read operations. It will automatically be deleted when the deletion parameters ("age") apply. You can write to the segment in this state by discarding the backup and making it back to "Online".
- Offline and Backed up: Segment is available at backup location but cannot be read or written. Available for restore.
- Restored: Segment is present and available for read operations but will not be deleted automatically.
- Deleted: Segment does not exist (not locally nor on backup location) and cannot be restored.
For details, see subchapter Data/Segment Management.