Deploy the storage scrubber in elastic production
In order to upgrade and reactivate the storage scubbers in the elastic infra
-
Upgrade the toolbox configuration to be able to register the checkers -
Deploy in production -
Add the scrubber configurations [1] -
Wait for the fast scrubber to finish the partitions and disable them -
Decommission scrubber1.internal.staging.swh.network
[1] Declare the scrubber configurations:
- for
swh
# in 2 loops to group the ids
for type in directory snapshot release revision
do
swh scrubber check init storage --object-type=$type --name storage-primary-references-$type --no-check-hashes
done
for type in directory snapshot release revision
do
swh scrubber check init storage --object-type=$type --name storage--primary-hashes-$type --no-check-references
done
# in 2 loops to group the ids
for type in directory snapshot release revision
do
swh scrubber check init storage --object-type=$type --name storage-secondary-references-$type --no-check-hashes
done
for type in directory snapshot release revision
do
swh scrubber check init storage --object-type=$type --name storage-secondary-hashes-$type --no-check-references
done
- for
swh-cassandra
# in 2 loops to group the ids
for type in directory snapshot release revision
do
swh scrubber check init storage --object-type=$type --name storage-cassandra-references-$type --no-check-hashes
done
for type in directory snapshot release revision
do
swh scrubber check init storage --object-type=$type --name storage-cassandra-hashes-$type --no-check-references
done
Edited by Vincent Sellier