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
Differential D5198
swh-search: add indexes configuration vsellier on Mar 5 2021, 9:19 AM. Authored by
Details
On production an alias is already used so it needs to be explicitely Related to T3083 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 _ *******************************************
Diff Detail
|