swh-search: add indexes configuration
On production an alias is already used so it needs to be explicitely configured before deploying the version v0.7.1 of swh-search Also remove the deprecated args level on the configuration yaml
Related to T3083
Test Plan
diff origin/production/search1.internal.softwareheritage.org current/search1.internal.softwareheritage.org
*******************************************
File[/etc/softwareheritage/search/server.yml] =>
parameters =>
content =>
@@ -2,11 +2,15 @@
search:
cls: elasticsearch
- args:
- hosts:
- - host: search-esnode1.internal.softwareheritage.org
- port: 9200
- - host: search-esnode2.internal.softwareheritage.org
- port: 9200
- - host: search-esnode3.internal.softwareheritage.org
- port: 9200
+ hosts:
+ - host: search-esnode1.internal.softwareheritage.org
+ port: 9200
+ - host: search-esnode2.internal.softwareheritage.org
+ port: 9200
+ - host: search-esnode3.internal.softwareheritage.org
+ port: 9200
+ indexes:
+ origin:
+ index: origin-production
+ read_alias: origin-read
+ write_alias: origin-write
_
*******************************************
*** End octocatalog-diff on search1.internal.softwareheritage.org
diff origin/production/search0.internal.staging.swh.network current/search0.internal.staging.swh.network
*******************************************
File[/etc/softwareheritage/search/server.yml] =>
parameters =>
content =>
@@ -2,7 +2,11 @@
search:
cls: elasticsearch
- args:
- hosts:
- - host: search-esnode0.internal.staging.swh.network
- port: 9200
+ hosts:
+ - host: search-esnode0.internal.staging.swh.network
+ port: 9200
+ indexes:
+ origin:
+ index: origin
+ read_alias: origin-read
+ write_alias: origin-write
_
*******************************************
Migrated from D5198 (view on Phabricator)