Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • S sysadm-environment
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 180
    • Issues 180
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Platform
  • Infrastructure
  • sysadm-environment
  • Issues
  • #4406
Closed
Open
Issue created Jul 21, 2022 by vlorentz@vlorentzMaintainer19 of 19 checklist items completed19/19 checklist items

Deploy swh-indexer v2.2 on staging then production

This is the version that brings extrinsic-metadata indexing

  • tag swh-indexer v2.2.0
  • #4406 (closed): unstuck failing debian (buster) build [1]
  • infra/puppet/puppet-swh-site!542: puppet: prepare new manfest for each indexer as journal client service [2]
  • Stop puppet agent on indexer workers
  • D8164, rSPSITE426cb09: Normalize service names consistently with cli and services
  • rSPSITEda32d3: Further configuration fixes so all services starts
  • Monitor journal client graph: https://grafana.softwareheritage.org/goto/YI27hIzVz?orgId=1

staging:

  • run SQL migrations (to create origin_extrinsic_metadata table and related functions) [3]
  • update and restart idx-storage server
  • update and restart indexer journal client
    • content_mimetype ok
    • content_fossology_license ok
    • origin_intrinsic_metadata ok
    • T4412, D8165: extrinsic_metadata ko (diff D8165 as a workaround)
  • make sure the indexer journal client subscribed to the raw_extrinsic_metadata topic and is consuming from the start [5]

production:

  • run SQL migrations (to create origin_extrinsic_metadata table and related functions) [4]
  • update and restart idx-storage server
  • update and restart indexer journal client
  • make sure the indexer journal client subscribed to the raw_extrinsic_metadata topic and is consuming from the start [5]
  • [1] https://jenkins.softwareheritage.org/job/debian/job/packages/job/DCIDX/job/gbp-buildpackage/177/console

  • [2] Existing deployed origin intrinsic metadata journal had a very large memory consumption when it ran. So instead of letting that service run all index computations, separate it into multiple ones dedicated to each index to compute so each can be parametrized differently if need be.

  • [3]

swhstorage@storage1:~$ swh db --config-file /etc/softwareheritage/storage/indexer.yml version indexer --module-config-key=indexer_storage
module: indexer
current code version: 135
version: 134
swhstorage@storage1:~$ swh db --config-file /etc/softwareheritage/storage/indexer.yml upgrade indexer --to-version=135 --module-config-key=indexer_storage
INFO:swh.core.db.db_utils:Executing migration script '/usr/lib/python3/dist-packages/swh/indexer/sql/upgrades/135.sql'
Migration to version 135 done
swhstorage@storage1:~$ swh db --config-file /etc/softwareheritage/storage/indexer.yml version indexer --module-config-key=indexer_storage
module: indexer
current code version: 135
version: 135
  • [4]
swhstorage@saam:~$ swh db --config-file /etc/softwareheritage/storage/indexer.yml version indexer --module-config-key indexer_storage
module: indexer
current code version: 135
version: 134
swhstorage@saam:~$ swh db --config-file indexer.yml upgrade indexer --module-config-key=indexer_storage
INFO:swh.core.db.db_utils:Executing migration script '/usr/lib/python3/dist-packages/swh/indexer/sql/upgrades/135.sql'
Migration to version 135 done
swhstorage@saam:~$ swh db --config-file /etc/softwareheritage/storage/indexer.yml version indexer --module-config-key indexer_storage
module: indexer
current code version: 135
version: 135
  • [5] new client with a new group id so it starts topics from the beginning

Migrated from T4406 (view on Phabricator)

Edited Oct 18, 2022 by Antoine R. Dumont
Assignee
Assign to
Time tracking