Page MenuHomeSoftware Heritage

swh-search: add indexes configuration
ClosedPublic

Authored by vsellier on Mar 5 2021, 9:19 AM.

Details

Summary

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
      _
*******************************************

Diff Detail

Repository
rSPSITE puppet-swh-site
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

vsellier created this revision.
This revision is now accepted and ready to land.Mar 5 2021, 9:22 AM
This revision was automatically updated to reflect the committed changes.