Deletion and Backing-up of Elastic Index Data:

You can configure the settings for deletion and backing up of elastic index data. The default configuration is present in Vanguard's appsettings.json file.

 

 

The DeleteDocsTTLdays is time to live (in days) for a document in the index. After this no of days, data will be deleted from that index.


By default, the configuration of 6 elastic indices is added, 5 of them are enabled.  The data from those 5 indices is deleted if it is older than configured number of days. 

 

Index name

TTL days (time to live)

Data auto-archival enabled

rpa-automationrequest

7

Yes

rpa-apm-*

30

Yes

rpa-trigger-request

7

Yes

rpa-notification

7

Yes

rpa-activitylog

7

Yes

rpa-txn-steps*

7

No

 

You can take a back-up (i.e., elastic snapshot) for your configured indices.

 

To save an elastic-snapshot:

 

  1. Set TXNSTORE_REPO_PATH in ae.properties file present at << Installation Directory\ AssistEdgeAutomation>>\scripts.
  2. Restart your services.
  3. Register elastic repository (in which you want your snapshots to be saved) using an elastic rest call. In the request, provide suitable name for the repository and the path same as configured in TXNSTORE_REPO_PATH.
  4. Set SnapshotRepositoryName as your registered repository name. 
  5. Set SnapshotRequired as true and IsActive as true. 

 

NOTE:  

  • If repository with provided name is invalid or does not exist snapshot will not be taken even if snapshot setting is enabled.
  • In order to enable/disable data archival for any index, set “IsActive” flag of that index as true/false.
  • Setting “IsActive” as false for an index will disable the data archival along with the snapshot functionality for that index.
  • Ideally, “DeleteDocsTTLdays” for “rpa-txn-steps*” index should be greater or equal to “DeleteDocsTTLdays” of “rpa-automationrequest” index, else for some processes transaction step details will not be available