HomeSoftware Heritage

Activate swh-counters on all the webapps

Description

Activate swh-counters on all the webapps

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

Reviewers: System administrators, ardumont

Reviewed By: System administrators, ardumont

Subscribers: ardumont

Maniphest Tasks: T2912

Differential Revision: https://forge.softwareheritage.org/D5588

Details

Provenance
vsellierAuthored on Apr 26 2021, 11:53 AM
ardumontCommitted on Apr 26 2021, 11:53 AM
ardumontPushed on Apr 26 2021, 11:55 AM
Reviewer
System administrators
Differential Revision
D5588: Activate swh-counters on all the webapps
Parents
rSPSITEe48733a0acc9: Add mirror-test vm and a dedicated schema on the staging database
Branches
Unknown
Tags
Unknown
Tasks
T2912: Next generation archive counters