Skip to content

Add Praefect rake task to print out replica checksums

John Cai requested to merge jc-replicas-rake into master

What does this MR do?

Related to: #35758 (closed)

When praefect is being used, the administrator needs to be able to know whether or not a given project's repository has the same checksum across its replicas.

it is invoked by:

## by project id
bundle exec rake "gitlab:praefect:replicas[1]"

the output looks like the following:

| project_name | praefect-internal-0 (primary)            | praefect-internal-1                      | praefect-internal-2                      |
-------------------------------------------------------------------------------------------------------------------------------------------------
| test1        | 3f9fe54e92ea1e86bc4af841d8b93dacd788aaeb | 343a4d2e1b1a30dd91e6cc5abebfc7ebc2f0cc93 | 343a4d2e1b1a30dd91e6cc5abebfc7ebc2f0cc93 |
| helllohello  | c5d87c321e349d039d69b8be4d4c4e26cf1b1fd6 | c5d87c321e349d039d69b8be4d4c4e26cf1b1fd6 | c5d87c321e349d039d69b8be4d4c4e26cf1b1fd6 |

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team
Edited by Mayra Cabrera

Merge request reports