Grafana /api/health take too long to response

Grafana version:
7.3.1

Description:
The question is ‘/api/health’ related. In my grafana 7.3.1 + postgresql(stolon) environment, the API response shortly when the database is ready. But it take too long to response if i shutdown the postgresql cluster.

1001@eco-grafana-6f55dfbdcb-zgp2w:/opt/bitnami/grafana$ curl http://localhost:3000/api/health --connect-timeout 1 --max-time 90

curl: (28) Operation timed out after 90001 milliseconds with 0 bytes received

The response is not returned even after 90s.

Question:
Do i have any way to make the API response in a short time?

Grafana logs:

[root@infra-ocp46-inf ~]# oc logs -n eco-common eco-grafana-6f55dfbdcb-hf9lt -f
t=2021-03-26T06:46:37+0000 lvl=info msg="Starting Grafana" logger=server version=7.3.1 commit=6668161a88 branch=HEAD compiled=2020-10-30T10:13:21+0000
t=2021-03-26T06:46:37+0000 lvl=info msg="Config loaded from" logger=settings file=/opt/bitnami/grafana/conf/defaults.ini
t=2021-03-26T06:46:37+0000 lvl=info msg="Config loaded from" logger=settings file=/opt/bitnami/grafana/conf/grafana.ini
t=2021-03-26T06:46:37+0000 lvl=info msg="Config overridden from command line" logger=settings arg="default.paths.data=/opt/bitnami/grafana/data"
t=2021-03-26T06:46:37+0000 lvl=info msg="Config overridden from command line" logger=settings arg="default.paths.logs=/opt/bitnami/grafana/logs"
t=2021-03-26T06:46:37+0000 lvl=info msg="Config overridden from command line" logger=settings arg="default.paths.plugins=/opt/bitnami/grafana/data/plugins"
t=2021-03-26T06:46:37+0000 lvl=info msg="Config overridden from command line" logger=settings arg="default.paths.provisioning=/opt/bitnami/grafana/conf/provisioning"
t=2021-03-26T06:46:37+0000 lvl=info msg="Config overridden from command line" logger=settings arg="default.log.mode=console"
t=2021-03-26T06:46:37+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_PATHS_DATA=/opt/bitnami/grafana/data"
t=2021-03-26T06:46:37+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_PATHS_LOGS=/opt/bitnami/grafana/logs"
t=2021-03-26T06:46:37+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_PATHS_PLUGINS=/opt/bitnami/grafana/data/plugins"
t=2021-03-26T06:46:37+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_PATHS_PROVISIONING=/opt/bitnami/grafana/conf/provisioning"
t=2021-03-26T06:46:37+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_SERVER_ROOT_URL=http://eco-grafana.apps.infra-ocp46.cp.fyre.ibm.com"
t=2021-03-26T06:46:37+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_DATABASE_TYPE=postgres"
t=2021-03-26T06:46:37+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_DATABASE_HOST=stolon-pg-proxy:5432"
t=2021-03-26T06:46:37+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_DATABASE_NAME=grafana"
t=2021-03-26T06:46:37+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_DATABASE_USER=grafana"
t=2021-03-26T06:46:37+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_DATABASE_PASSWORD=*********"
t=2021-03-26T06:46:37+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_DATABASE_SSL_MODE=disable"
t=2021-03-26T06:46:37+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_SECURITY_ADMIN_USER=admin"
t=2021-03-26T06:46:37+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_SECURITY_ADMIN_PASSWORD=*********"
t=2021-03-26T06:46:37+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_AUTH_OAUTH_AUTO_LOGIN=true"
t=2021-03-26T06:46:37+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_AUTH_GENERIC_OAUTH_NAME=EcoCloud"
t=2021-03-26T06:46:37+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_AUTH_GENERIC_OAUTH_ENABLED=true"
t=2021-03-26T06:46:37+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_AUTH_GENERIC_OAUTH_ALLOW_SIGN_UP=false"
t=2021-03-26T06:46:37+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_AUTH_GENERIC_OAUTH_CLIENT_ID=eco_grafana"
t=2021-03-26T06:46:37+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_AUTH_GENERIC_OAUTH_CLIENT_SECRET=*********"
t=2021-03-26T06:46:37+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_AUTH_GENERIC_OAUTH_SCOPES=openid email profile"
t=2021-03-26T06:46:37+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_AUTH_GENERIC_OAUTH_AUTH_URL=https://ecocloud-sso.apps.infra-ocp46.cp.fyre.ibm.com/auth/realms/EcoCloud/protocol/openid-connect/auth"
t=2021-03-26T06:46:37+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_AUTH_GENERIC_OAUTH_TOKEN_URL=https://ecocloud-sso.apps.infra-ocp46.cp.fyre.ibm.com/auth/realms/EcoCloud/protocol/openid-connect/token"
t=2021-03-26T06:46:37+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_AUTH_GENERIC_OAUTH_API_URL=https://ecocloud-sso.apps.infra-ocp46.cp.fyre.ibm.com/auth/realms/EcoCloud/protocol/openid-connect/userinfo"
t=2021-03-26T06:46:37+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_AUTH_GENERIC_OAUTH_TLS_SKIP_VERIFY_INSECURE=true"
t=2021-03-26T06:46:37+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_AUTH_LDAP_ENABLED=false"
t=2021-03-26T06:46:37+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_AUTH_LDAP_CONFIG_FILE=/opt/bitnami/grafana/conf/ldap.toml"
t=2021-03-26T06:46:37+0000 lvl=info msg="Config overridden from Environment variable" logger=settings var="GF_AUTH_LDAP_ALLOW_SIGN_UP=false"
t=2021-03-26T06:46:37+0000 lvl=info msg="Path Home" logger=settings path=/opt/bitnami/grafana/
t=2021-03-26T06:46:37+0000 lvl=info msg="Path Data" logger=settings path=/opt/bitnami/grafana/data
t=2021-03-26T06:46:37+0000 lvl=info msg="Path Logs" logger=settings path=/opt/bitnami/grafana/logs
t=2021-03-26T06:46:37+0000 lvl=info msg="Path Plugins" logger=settings path=/opt/bitnami/grafana/data/plugins
t=2021-03-26T06:46:37+0000 lvl=info msg="Path Provisioning" logger=settings path=/opt/bitnami/grafana/conf/provisioning
t=2021-03-26T06:46:37+0000 lvl=info msg="App mode production" logger=settings
t=2021-03-26T06:46:37+0000 lvl=info msg="Connecting to DB" logger=sqlstore dbtype=postgres
t=2021-03-26T06:46:37+0000 lvl=info msg="Starting DB migrations" logger=migrator
t=2021-03-26T06:46:37+0000 lvl=info msg="Starting plugin search" logger=plugins
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=input
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=btplc-trend-box-panel
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=digiapulssi-organisations-panel
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=briangann-datatable-panel
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=briangann-gauge-panel
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=gretamosa-topology-panel
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=pierosavi-imageit-panel
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=mtanda-histogram-panel
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=agenty-flowcharting-panel
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=bessler-pictureit-panel
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=btplc-peak-report-panel
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=larona-epict-panel
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=natel-discrete-panel
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=snuids-radar-panel
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=snuids-trafficlights-panel
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=vonage-status-panel
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=btplc-status-dot-panel
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=digiapulssi-breadcrumb-panel
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=marcuscalidus-svg-panel
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=michaeldmoore-annunciator-panel
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=natel-plotly-panel
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=scadavis-synoptic-panel
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=digrich-bubblechart-panel
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=grafana-clock-panel
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=grafana-piechart-panel
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=michaeldmoore-multistat-panel
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=satellogic-3d-globe-panel
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=grafana-polystat-panel
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=neocat-cal-heatmap-panel
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=fatcloud-windrose-panel
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=grafana-worldmap-panel
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=jdbranham-diagram-panel
t=2021-03-26T06:46:37+0000 lvl=info msg="Registering plugin" logger=plugins id=savantly-heatmap-panel
t=2021-03-26T06:46:37+0000 lvl=info msg="HTTP Server Listen" logger=http.server address=[::]:3000 protocol=http subUrl= socket=
t=2021-03-26T06:50:30+0000 lvl=eror msg="Could not load alerts" logger=alerting.ruleReader error="dial tcp 172.30.37.163:5432: connect: connection timed out"
t=2021-03-26T06:50:47+0000 lvl=eror msg="Failed to get system stats" logger=metrics error="dial tcp 172.30.37.163:5432: connect: connection timed out"
t=2021-03-26T06:52:41+0000 lvl=eror msg="Could not load alerts" logger=alerting.ruleReader error="dial tcp 172.30.37.163:5432: connect: connection timed out"
t=2021-03-26T06:52:58+0000 lvl=eror msg="Failed to get system stats" logger=metrics error="dial tcp 172.30.37.163:5432: connect: connection timed out"
t=2021-03-26T06:54:52+0000 lvl=eror msg="Could not load alerts" logger=alerting.ruleReader error="dial tcp 172.30.37.163:5432: connect: connection timed out"
t=2021-03-26T07:01:17+0000 lvl=eror msg="Could not load alerts" logger=alerting.ruleReader error="dial tcp 172.30.37.163:5432: connect: connection timed out"
t=2021-03-26T07:01:46+0000 lvl=eror msg="Failed to get system stats" logger=metrics error="dial tcp 172.30.37.163:5432: connect: connection timed out"
t=2021-03-26T07:03:28+0000 lvl=eror msg="Could not load alerts" logger=alerting.ruleReader error="dial tcp 172.30.37.163:5432: connect: connection timed out"
t=2021-03-26T07:05:40+0000 lvl=eror msg="Could not load alerts" logger=alerting.ruleReader error="dial tcp 172.30.37.163:5432: connect: connection timed out"
t=2021-03-26T07:06:08+0000 lvl=eror msg="Failed to get system stats" logger=metrics error="dial tcp 172.30.37.163:5432: connect: connection timed out"
t=2021-03-26T07:07:51+0000 lvl=eror msg="Could not load alerts" logger=alerting.ruleReader error="dial tcp 172.30.37.163:5432: connect: connection timed out"
t=2021-03-26T07:08:48+0000 lvl=eror msg="Failed to delete expired snapshots" logger=cleanup error="dial tcp 172.30.37.163:5432: connect: connection timed out"
t=2021-03-26T07:08:48+0000 lvl=eror msg="failed to run garbage collect" logger=remotecache.database error="dial tcp 172.30.37.163:5432: connect: connection timed out"
t=2021-03-26T07:10:02+0000 lvl=eror msg="Could not load alerts" logger=alerting.ruleReader error="dial tcp 172.30.37.163:5432: connect: connection timed out"
t=2021-03-26T07:10:30+0000 lvl=eror msg="Failed to get system stats" logger=metrics error="dial tcp 172.30.37.163:5432: connect: connection timed out"
t=2021-03-26T07:10:59+0000 lvl=eror msg="Failed to delete expired dashboard versions" logger=cleanup error="dial tcp 172.30.37.163:5432: connect: connection timed out"
t=2021-03-26T07:12:13+0000 lvl=eror msg="Could not load alerts" logger=alerting.ruleReader error="dial tcp 172.30.37.163:5432: connect: connection timed out"
t=2021-03-26T07:13:10+0000 lvl=eror msg="Problem expiring user invites" logger=cleanup error="dial tcp 172.30.37.163:5432: connect: connection timed out"
t=2021-03-26T07:14:24+0000 lvl=eror msg="Could not load alerts" logger=alerting.ruleReader error="dial tcp 172.30.37.163:5432: connect: connection timed out"
t=2021-03-26T07:14:52+0000 lvl=eror msg="Failed to get system stats" logger=metrics error="dial tcp 172.30.37.163:5432: connect: connection timed out"
t=2021-03-26T07:15:21+0000 lvl=eror msg="failed to lock and execute cleanup of old login attempts" logger=cleanup error="dial tcp 172.30.37.163:5432: connect: connection timed out"
t=2021-03-26T07:16:35+0000 lvl=eror msg="Could not load alerts" logger=alerting.ruleReader error="dial tcp 172.30.37.163:5432: connect: connection timed out"
t=2021-03-26T07:18:46+0000 lvl=eror msg="Could not load alerts" logger=alerting.ruleReader error="dial tcp 172.30.37.163:5432: connect: connection timed out"
t=2021-03-26T07:18:46+0000 lvl=eror msg="Failed to delete expired snapshots" logger=cleanup error="dial tcp 172.30.37.163:5432: connect: connection timed out"
t=2021-03-26T07:18:46+0000 lvl=eror msg="failed to run garbage collect" logger=remotecache.database error="dial tcp 172.30.37.163:5432: connect: connection timed out"
t=2021-03-26T07:19:15+0000 lvl=eror msg="Failed to get system stats" logger=metrics error="dial tcp 172.30.37.163:5432: connect: connection timed out"
t=2021-03-26T07:20:57+0000 lvl=eror msg="Could not load alerts" logger=alerting.ruleReader error="dial tcp 172.30.37.163:5432: connect: connection timed out"
t=2021-03-26T07:20:57+0000 lvl=eror msg="Failed to delete expired dashboard versions" logger=cleanup error="dial tcp 172.30.37.163:5432: connect: connection timed out"
t=2021-03-26T07:23:08+0000 lvl=eror msg="Could not load alerts" logger=alerting.ruleReader error="dial tcp 172.30.37.163:5432: connect: connection timed out"
t=2021-03-26T07:23:08+0000 lvl=eror msg="Problem expiring user invites" logger=cleanup error="dial tcp 172.30.37.163:5432: connect: connection timed out"