diff options
author | John Cai <jcai@gitlab.com> | 2021-11-10 23:45:33 +0300 |
---|---|---|
committer | John Cai <jcai@gitlab.com> | 2021-11-23 23:07:42 +0300 |
commit | c20c465303cd8b00aa05a1950c2510689682027c (patch) | |
tree | bafae8f0634ef2e917e6483c612f0db422424208 /cmd | |
parent | 5eb94b765d5a3f4a98697929de2efc551c1a4f26 (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.go | 1 |
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, ), } |