Rake task to print out checksum of repositories and their replicas
We need a rake task that calls gitaly#2082 (closed) for all repositories and prints out a table with the primary checksum and the replica checksums. Sys admins can use this rake task to see if there are any repositories that are not up to date.
rake gitlab:praefect:replicas:all
Project Name | primary checksum | replica 1 checksum | replica 2 checksum |
---|---|---|---|
gitlab | f83405d4f34c45676a4cfd023ea419645036694b | f83405d4f34c45676a4cfd023ea419645036694b | f83405d4f34c45676a4cfd023ea419645036694b |
gitaly | 54fae685e0f8e7236af72cd5fe8499ed21ce5f3b | 54fae685e0f8e7236af72cd5fe8499ed21ce5f3b | 54fae685e0f8e7236af72cd5fe8499ed21ce5f3b |
my_proj1 | 984c929711223ae69e6da8f3cb75d4678d6c5f8f | d5856113f1d321f166c0f42fa24cf3aa967885b7 | 984c929711223ae69e6da8f3cb75d4678d6c5f8f |
rake gitlab:praefect:replicas:mismatch
Project Name | primary checksum | replica 1 checksum | replica 2 checksum |
---|---|---|---|
my_proj1 | 984c929711223ae69e6da8f3cb75d4678d6c5f8f | d5856113f1d321f166c0f42fa24cf3aa967885b7 | 984c929711223ae69e6da8f3cb75d4678d6c5f8f |
Edited by John Cai