Page MenuHomeSoftware Heritage

webapp: use the postgresql replica to avoid timeouts
ClosedPublic

Authored by vsellier on Mar 11 2022, 2:06 PM.

Details

Summary

There were no timeouts since the manual update this morning

Test Plan
diff origin/production/moma.softwareheritage.org current/moma.softwareheritage.org
*******************************************
  File[/etc/softwareheritage/storage/storage.yml] =>
   parameters =>
     content =>
      @@ -3,5 +3,5 @@
         cls: local
         args:
      -    db: host=belvedere.internal.softwareheritage.org port=5432 user=guest dbname=softwareheritage
      +    db: host=somerset.internal.softwareheritage.org port=5432 user=guest dbname=softwareheritage
             password=guest
           objstorage:
*******************************************
  File_line[swhwebapp:pgpass:softwareheritage-sync-mailmaps] =>
   parameters =>
     line =>
      - belvedere.internal.softwareheritage.org:5432:softwareheritage:swhmailmap:swh-deploy-webapp-sync_mailmaps-db-password
      + somerset.internal.softwareheritage.org:5432:softwareheritage:swhmailmap:swh-deploy-webapp-sync_mailmaps-db-password
     match =>
      - ^belvedere.internal.softwareheritage.org:5432:softwareheritage:swhmailmap:
      + ^somerset.internal.softwareheritage.org:5432:softwareheritage:swhmailmap:
*******************************************
  Ini_setting[swhwebapp:pg_service.conf:softwareheritage-sync-mailmaps:host] =>
   parameters =>
     value =>
      - belvedere.internal.softwareheritage.org
      + somerset.internal.softwareheritage.org
*******************************************
*** End octocatalog-diff on moma.softwareheritage.org

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

There is actually some work done by @vlorentz [1]
or at least i think it's related...

So i'm not sure... (stopped because meeting ;)

[1] D7339

There is actually some work done by @vlorentz [1]
or at least i think it's related...

So i'm not sure... (stopped because meeting ;)

[1] D7339

Actually no need to make it exclusive so fine ;)

This revision is now accepted and ready to land.Mar 11 2022, 2:40 PM