Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorJohn Cai <jcai@gitlab.com>2021-11-10 23:45:33 +0300
committerJohn Cai <jcai@gitlab.com>2021-11-23 23:07:42 +0300
commitc20c465303cd8b00aa05a1950c2510689682027c (patch)
treebafae8f0634ef2e917e6483c612f0db422424208 /cmd
parent5eb94b765d5a3f4a98697929de2efc551c1a4f26 (diff)
praefect: Add database read/write check
In order to check if praefect can read/write to a database, we can use the hello_world table. We can try inserting a row, and reading from it. Changelog: added
Diffstat (limited to 'cmd')
-rw-r--r--cmd/praefect/subcmd.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/praefect/subcmd.go b/cmd/praefect/subcmd.go
index fc67c7471..df2539e45 100644
--- a/cmd/praefect/subcmd.go
+++ b/cmd/praefect/subcmd.go
@@ -46,6 +46,7 @@ var subcommands = map[string]subcmd{
os.Stdout,
praefect.NewPraefectMigrationCheck,
praefect.NewGitalyNodeConnectivityCheck,
+ praefect.NewPostgresReadWriteCheck,
),
}