Backup Elastic Search DB and Elastic Search Logging Data
Need the ability to backup the following 2 types of data:
1. Elasticsearch DB
2. Elasticsearch DB logs
Topics for discussion:
- Elasticsearch and restore
- lvm snapshot available or not
- For how long the data needs to be kept
- The timeline by when the feature needs to be delivered
- The data set size if possible
- On how many nodes the data is sharded
- What is the file system path where the elasticsearch data is stored.
Additional topics for discussion:
<Please fill in here>
What versions of ES will be supported?
Need to investigate using Elastic Search plugin that is initiated by Freezer.
Link to Elasticsearch Docs:
https:/
Link to ES Backup Instructions:
https:/
Link to Elasticsearch Snapshot and Restore Info:
https:/
Snapshot is only to shared volume. Plugin can be used to snapshot to something other than a shared volume.
Configure ES log file path and logging options:
https:/
ES data and log locations:
https:/
ES Plugin Docs:
https:/
Plugins must be written in Java.
Existing OpenStack Swift Plugin:
https:/
It looks like the OpenStack Swift Plugin can be used to do the backup and restore.
Freezer needs to be able to call the ES API to invoke the backups and restores. There is some coding effort needed for this.
Need to decide on naming conventions for snapshots and retention periods.
Snapshots do incremental backups by default.
ES is available while snapshot is being done.
Looks like version of ES in the Freezer API DevStack environment is 1.4.2. Current version of ES is 2.1.1.
The swift repository does not seem to work with v1.4.2
dek@dek-
{
"status" : 200,
"name" : "Bennet du Paris",
"cluster_name" : "elasticsearch",
"version" : {
"number" : "1.4.2",
"build_hash" : "927caff6f05403
"build_
"build_
"lucene_
},
"tagline" : "You Know, for Search"
}
dek@dek-
-> Installing org.wikimedia.
Trying http://
Trying http://
Downloading .......
Installed org.wikimedia.
dek@dek-
{"error"
Tried with latest version of Elasticsearch and it failed.
dek@dek-
{
"name" : "Rom the Spaceknight",
"cluster_name" : "elasticsearch",
"version" : {
"number" : "2.1.1",
"build_hash" : "40e2c53a6b6c29
"build_
"build_
"lucene_
},
"tagline" : "You Know, for Search"
}
ek@dek-
-> Installing org.wikimedia.
Trying https:/
Trying https:/
Downloading .......
Verifying https:/
Downloading .DONE
ERROR: Could not find plugin descriptor 'plugin-
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- Deklan Dieterly
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- New
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by