Add notes for 2021-05-16

This commit is contained in:
2021-05-16 17:11:48 +03:00
parent 93e29ecf8a
commit 51ce8b0cf4
23 changed files with 110 additions and 28 deletions

View File

@ -237,4 +237,50 @@ UPDATE 1803
- I updated the PostgreSQL JDBC driver in the Ansible playbooks to version 42.2.20 and deployed it on DSpace Test (linode26)
## 2021-05-15
- I have to fix the Elasticsearch indexes on AReS after last week's harvesting because, as always, the `openrxv-items` index should be an alias of `openrxv-items-final` instead of `openrxv-items-temp`:
```console
$ curl -s 'http://localhost:9200/_alias/' | python -m json.tool
"openrxv-items-final": {
"aliases": {}
},
"openrxv-items-temp": {
"aliases": {
"openrxv-items": {}
}
},
...
```
- I took a backup of the `openrxv-items` index with elasticdump so I can re-create them manually before starting a new harvest tomorrow:
```console
$ elasticdump --input=http://localhost:9200/openrxv-items --output=/home/aorth/openrxv-items_mapping.json --type=mapping
$ elasticdump --input=http://localhost:9200/openrxv-items --output=/home/aorth/openrxv-items_data.json --type=data --limit=1000
```
## 2021-05-16
- I deleted and re-created the Elasticsearch indexes on AReS:
```console
$ curl -XDELETE 'http://localhost:9200/openrxv-items-final'
$ curl -XDELETE 'http://localhost:9200/openrxv-items-temp'
$ curl -XPUT 'http://localhost:9200/openrxv-items-final'
$ curl -XPUT 'http://localhost:9200/openrxv-items-temp'
$ curl -s -X POST 'http://localhost:9200/_aliases' -H 'Content-Type: application/json' -d'{"actions" : [{"add" : { "index" : "openrxv-items-final", "alias" : "openrxv-items"}}]}'
```
- Then I re-imported the backup that I created with elasticdump yesterday:
```console
$ elasticdump --input=/home/aorth/openrxv-items_mapping.json --output=http://localhost:9200/openrxv-items-final --type=mapping
$ elasticdump --input=/home/aorth/openrxv-items_data.json --output=http://localhost:9200/openrxv-items-final --type=data --limit=1000
```
- Then I started a new harvest on AReS
<!-- vim: set sw=2 ts=2: -->