Skip to content
Snippets Groups Projects
  1. Jul 10, 2023
    • 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
  2. Jul 07, 2023
  3. Jun 21, 2023
  4. Apr 05, 2023
  5. Mar 28, 2023
  6. Mar 22, 2023
  7. 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
  8. Mar 09, 2023
  9. Mar 03, 2023
  10. Feb 23, 2023
  11. Feb 17, 2023
  12. Feb 16, 2023
  13. Feb 02, 2023
  14. Jan 27, 2023
  15. Dec 20, 2022
  16. Dec 19, 2022
  17. Oct 19, 2022
  18. Oct 18, 2022
  19. Oct 07, 2022
  20. Aug 19, 2022
  21. Aug 18, 2022
  22. Aug 17, 2022
  23. May 31, 2022
  24. May 30, 2022
Loading