Page MenuHomeSoftware Heritage

Manage backfiller configuration in puppet
Closed, MigratedEdits Locked

Description

Currently there is a attempt to configure the backfiller via puppet via the role profile::swh::deploy::journal::backfill applied on storage1.staging

It should be adapted to:

  • use a read-only database/storage configuration (use the guest user)
  • drop storage's journal_writer configuration key
  • use a remote objstorage or even a memory objstorage (backfill does not use at all the objstorage)
  • ~~ perhaps adapt the client id to swh.backfiller.something ~~ (already done)
  • create a logger.yml file like in P927
root@storage1:/etc/softwareheritage/journal# cat backfill.yml 
---
storage:
  cls: local
  args:
    db: host=db1.internal.staging.swh.network port=5432 user=swh dbname=swh password=xxxxxxx
    objstorage:
      cls: pathslicing
      args:
        root: "/srv/softwareheritage/objects"
        slicing: 0:1/1:5
    journal_writer:
      cls: kafka
      args:
        brokers:
        - journal0.internal.staging.swh.network
        prefix: swh.journal.objects
        client_id: swh.storage.journal_writer.storage1
        anonymize: true
        producer_config:
          message.max.bytes: 1000000000
journal_writer:
  cls: kafka
  args:
    brokers:
    - journal0.internal.staging.swh.network
    prefix: swh.journal.objects
    client_id: swh.storage.journal_writer.storage1
    anonymize: true
    producer_config:
      message.max.bytes: 1000000000

Event Timeline

vsellier triaged this task as Normal priority.Feb 1 2021, 12:09 PM
vsellier created this task.
vsellier updated the task description. (Show Details)
ardumont changed the task status from Open to Work in Progress.Feb 10 2021, 6:01 PM
ardumont moved this task from Weekly backlog to in-progress on the System administration board.
ardumont claimed this task.
ardumont moved this task from deployed/landed/monitoring to done on the System administration board.