Page MenuHomeSoftware Heritage

Activate swh-counters on all the webapps
ClosedPublic

Authored by vsellier on Fri, Apr 23, 4:26 PM.

Details

Summary

it unifies the configuration for all the webapps to use swh-counters
as the source for history graphes and live counters

Related to T2912

This is the final step to close the task \o/.
I prepare it now as I will be on vacation during the next week.
If everything is ok on webapp1, this diff can just be landed to
switch the main webapp too.

Test Plan
  • moma:
diff origin/production/moma.softwareheritage.org current/moma.softwareheritage.org
*******************************************
  File[/etc/softwareheritage/web/web.yml] =>
   parameters =>
     content =>
      @@ -20,5 +20,5 @@
         cls: remote
         url: http://counters1.internal.softwareheritage.org:5011/
      -counters_backend: swh-storage
      +counters_backend: swh-counters
       log_dir: "/var/log/softwareheritage/webapp"
       secret_key: swh::deploy::webapp::conf::secret_key
      @@ -85,5 +85,5 @@
         server_url: https://auth.softwareheritage.org/auth/
         realm_name: SoftwareHeritage
      -history_counters_url: https://stats.export.softwareheritage.org/history_counters.json
      +history_counters_url: http://counters1.internal.softwareheritage.org:5011/counters_history/history.json
       allowed_hosts:
       - archive.softwareheritage.org
*******************************************
*** End octocatalog-diff on moma.softwareheritage.org
  • webapp1:
*** Running octocatalog-diff on host webapp1.internal.softwareheritage.org
I, [2021-04-23T16:24:39.892991 #28932]  INFO -- : Catalogs compiled for webapp1.internal.softwareheritage.org
I, [2021-04-23T16:24:41.712143 #28932]  INFO -- : Diffs computed for webapp1.internal.softwareheritage.org
I, [2021-04-23T16:24:41.712190 #28932]  INFO -- : No differences
*** End octocatalog-diff on webapp1.internal.softwareheritage.org
  • staging:
*** Running octocatalog-diff on host webapp.internal.staging.swh.network
I, [2021-04-23T16:25:35.927268 #2064]  INFO -- : Catalogs compiled for webapp.internal.staging.swh.network
I, [2021-04-23T16:25:37.773981 #2064]  INFO -- : Diffs computed for webapp.internal.staging.swh.network
I, [2021-04-23T16:25:37.774020 #2064]  INFO -- : No differences
*** End octocatalog-diff on webapp.internal.staging.swh.network

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.
ardumont added a subscriber: ardumont.

lgtm

Thanks.

This revision is now accepted and ready to land.Fri, Apr 23, 4:29 PM
This revision was automatically updated to reflect the committed changes.