Skip to content
Snippets Groups Projects
  1. Jul 26, 2023
  2. Jul 12, 2023
  3. Jul 10, 2023
    • David Douard's avatar
      Rename the 'scrubber_db' config section as 'scrubber' · e879bd14
      David Douard authored
      This is needed to make it compatible with swh.core's db upgrade tooling:
      the name of the configuration section is exptected to be the swh module.
      e879bd14
    • David Douard's avatar
      fix the 5->6 upgrade sql script · d9f89378
      David Douard authored
      Need to drop the index of the old checked_partition before recreating
      the new one (with the same name); simplest way of doing this is cascade
      droping the old checked_partition table before recreating the new index.
      d9f89378
    • David Douard's avatar
      Add a couple of tests in test_cli · 140a935e
      David Douard authored
      This is especially testing the fact the `--help` argument works when
      running the `swh scrubber check --help` without any configuration file
      set.
      140a935e
    • David Douard's avatar
      Add a `--reset` flag to the `swh scrubber check stalled` command · 87412380
      David Douard authored
      This flag reset the partitions identified as stalled by setting
      start_date and end_date to NULL.
      
      This should put these reset partition to be selected for checking by a
      scrubber worker.
      87412380
    • David Douard's avatar
      Add a 'swh scrubber check stalled` command listing stalled partitions · 67a743d0
      David Douard authored
      For a given configuration (hence sotrage, object_type and partition scheme)
      list partitions that have a start_date but no end_date for a long enough
      time.
      
      By default, it will compute the delay for a partition to be considered as
      stalled based on the 10 last partitions checked for the given
      configuration.
      67a743d0
    • David Douard's avatar
      Refactor the checker stack · 9cd7414a
      David Douard authored
      A checker configuration must now be created before being
      able to start a checker session. This configuration is stored in the
      database and consist in a triplet
      
        (datastore, object_type, nb_partitions)
      
      Once done, any number of checker can be started for this specific
      checker configuration; each checher process will check partitions
      one by one, using the status stored in the database to get the next
      partition number to check on the next iteration.
      
      This allows to dynamically adapt the number of checker processes.
      
      For example, checking the shapshots splitting the hash space in 4096
      partitions using 4 parallel workers could be like:
      
        $ export SWH_CONFIG_FILENAME=config.yml
        $ swh scrubber check init --object-type snapshot --nb-partitions 4096 --name cfg-snp
        Created configuration cfg-snp [3] for checking shapshot in postgresql storage
      
        $ for i in {1..4}; do (swh scrubber check storage cfg-snp &); done
      9cd7414a
  4. Jul 07, 2023
  5. Jun 21, 2023
  6. Apr 05, 2023
  7. Mar 28, 2023
  8. Mar 22, 2023
  9. Mar 16, 2023
    • vlorentz's avatar
      Move 'nb_partitions' before 'partition_id' in the index · 229c7f4f
      vlorentz authored
      It makes more sense to query a range of partition ids with a fixed nb_partition
      than a range of nb_partitions with a fix partition id
      
      No migration because the next release will need to scrap the whole table
      anyway.
      229c7f4f
  10. Mar 09, 2023
  11. Mar 03, 2023
  12. Feb 23, 2023
  13. Feb 17, 2023
  14. Feb 16, 2023
  15. Feb 02, 2023
  16. Jan 27, 2023
  17. Dec 20, 2022
  18. Dec 19, 2022
  19. Oct 19, 2022
  20. Oct 18, 2022
  21. Oct 07, 2022
  22. Aug 19, 2022
  23. Aug 18, 2022
  24. Aug 17, 2022
Loading