Software AG Products 10.11 | Administrating API Gateway | Operating API Gateway | Data Management | Data Backup | Advanced Backup Options | Creating Rollover of an Index | Conditions that can be given with rollover command
 
Conditions that can be given with rollover command
In addition to the above parameters you can provide the following conditions based on which the specified indexes must be rolled over:
Condition
Description
maxAge
Maximum age of the indexes.
The specified indexes are rolled over if they are older than the value provided for this condition. For the list of possible values for this field, see https://www.elastic.co/guide/en/elasticsearch/reference/master/api-conventions.html#time-units.
For example, to roll over the monitorevents index if it is older than 2 minutes, you can provide
apigatewayutil.bat rollover index
-type monitorevents -maxAge 2m
maxDocs
Maximum number of the documents in the indexes.
The specified indexes are rolled over if the number of documents in the indexes are more than or equal to the value provided for this condition.
For example, to roll over the monitorevents index if the number of documents in the index is more than or equal to 100, you can provide
apigatewayutil.bat rollover index
-type monitorevents -maxDocs 100
maxSize
Maximum size of the indexes.
The specified indexes are rolled over if their size is equal to or more than the value provided in this condition. For the list of possible values for this field, see https://www.elastic.co/guide/en/elasticsearch/reference/master/api-conventions.html#byte-units.
For example, to roll over the monitorevents index if its size is more than 1 GB, you can provide
apigatewayutil.bat rollover index
-type monitorevents -maxAge 1gb
maxPrimaryShardSize
Maximum size of the primary shard of the indexes.
The specified indexes are rolled over if the size of their primary shards is equal to or more than the value provided for this condition.
For example, to roll over the monitorevents index if the size of the index's primary shard is more than or equal to 1 GB, you can provide
apigatewayutil.bat rollover index
-type monitorevents -maxPrimaryShardSize 1GB