Skip to content

Plug webapp1 on the swh-search with live production data

  • don't use the loopback interface for the swh-search service
  • declare a new search configuration for search1
  • use the default values when possible

Related to T2905

Test Plan

Octocatalog-diff

  • webapp1:
diff origin/production/webapp1.internal.softwareheritage.org current/webapp1.internal.softwareheritage.org
*******************************************
  File[/etc/softwareheritage/search/server.yml] =>
   parameters =>
     content =>
      @@ -1,9 +1,5 @@
       ---
       search:
      -  cls: elasticsearch
      -  args:
      -    hosts:
      -    - host: search-esnode0.internal.staging.swh.network
      -      port: 9200
      -    index_prefix: production
      +  cls: remote
      +  url: http://search1.internal.softwareheritage.org:5010/
      _
*******************************************
  • search1
diff origin/production/search1.internal.softwareheritage.org current/search1.internal.softwareheritage.org
*******************************************
  Concat::Fragment[nginx-swh-search-default-header] =>
   parameters =>
     content =>
      @@ -1,5 +1,5 @@
       # MANAGED BY PUPPET
       server {
      -  listen 127.0.0.1:5010 default_server;
      +  listen 0.0.0.0:5010 default_server;
      _
      _
*******************************************
  Concat::Fragment[nginx-swh-search-header] =>
   parameters =>
     content =>
      @@ -1,5 +1,5 @@
       # MANAGED BY PUPPET
       server {
      -  listen 127.0.0.1:5010 deferred;
      +  listen 0.0.0.0:5010 deferred;
      _
      _
*******************************************
  Concat_fragment[nginx-swh-search-default-header] =>
   parameters =>
     content =>
      @@ -1,5 +1,5 @@
       # MANAGED BY PUPPET
       server {
      -  listen 127.0.0.1:5010 default_server;
      +  listen 0.0.0.0:5010 default_server;
      _
      _
*******************************************
  Concat_fragment[nginx-swh-search-header] =>
   parameters =>
     content =>
      @@ -1,5 +1,5 @@
       # MANAGED BY PUPPET
       server {
      -  listen 127.0.0.1:5010 deferred;
      +  listen 0.0.0.0:5010 deferred;
      _
      _
*******************************************
  Nginx::Resource::Server[nginx-swh-search-default] =>
   parameters =>
     listen_ip =>
      - 127.0.0.1
      + 0.0.0.0
*******************************************
  Nginx::Resource::Server[nginx-swh-search] =>
   parameters =>
     listen_ip =>
      - 127.0.0.1
      + 0.0.0.0
*******************************************
*** End octocatalog-diff on search1.internal.softwareheritage.org

Migrated from D4809 (view on Phabricator)

Merge request reports

Loading