From c20c465303cd8b00aa05a1950c2510689682027c Mon Sep 17 00:00:00 2001 From: John Cai Date: Wed, 10 Nov 2021 15:45:33 -0500 Subject: 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 --- cmd/praefect/subcmd.go | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd') 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, ), } -- cgit v1.2.3