-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ Invenio-Stats. | |
overview | ||
configuration | ||
usage | ||
operations | ||
examplesapp | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
.. | ||
This file is part of Invenio. | ||
Copyright (C) 2016-2020 CERN. | ||
Invenio is free software; you can redistribute it and/or modify it | ||
under the terms of the MIT License; see LICENSE file for more details. | ||
|
||
Operations | ||
========== | ||
|
||
(#NOTE: The only copy of the raw events is stored in the index, so in case of an | ||
Elasticsearch cluster failure/loss, the events will be lost.) | ||
|
||
Since our statistics are stored in Elasticsearch in the unfortunate event that | ||
our cluster goes down, we will find ourself in the unpleasant poition to have | ||
lost all of our statistics for our service. Though a backup/restore mechanism | ||
is adviced for projects in production. We will go though the defacto solution | ||
for that and provide some possible alternatives for those who want a more fine | ||
grained approach. | ||
|
||
Backup ES | ||
~~~~~~~~~ | ||
|
||
Possible options for backing up ES | ||
|
||
- elasticdump (defacto) | ||
- ES Snapshots | ||
- Raw filesystem backups for each node... 🤢 | ||
- In terms of managing indices it might be also worth taking a look into the | ||
Python library elasticsearch-curator. | ||
|
||
downloads and views for Zenodo for January 2020 | ||
|
||
- 3M users (not crappy harvesters/ users) | ||
- ~ 10Gb | ||
|
||
Restore ES | ||
~~~~~~~~~~ | ||
|
||
There is a saying that goes "A backup worked only when it got restored." This | ||
section will take us through the restore process of the previous step. We will | ||
have to bring our application close to the state it was before the ES cluster | ||
failure. | ||
|
||
.. note:: | ||
Some data loss is possible, from the time we notice the issue and restore | ||
our cluster and its data to the last valid backed up dataset. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters