You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whilst developing a go based web app in docker, using the Ping() function to check the connection works in a majority of cases, however.
When Postgres is provided on a network that does not support ICMP, or exposed via a v1/service in kubernetes, ping is not the best test and will fail. Some networks may also drop ICMP traffic causing the use of this function to throw errors.
Is there a better way to perform this that's more friendly to overlay networks or kubernetes services?
The text was updated successfully, but these errors were encountered:
Hi,
Wouldn't it be more misleading to have a Ping() function which does not connect through ICMP?
Looking for this I saw ExecSimpleQuery(q string), which combined with a dummy query like SELECT 1; could fit your need
Whilst developing a go based web app in docker, using the Ping() function to check the connection works in a majority of cases, however.
When Postgres is provided on a network that does not support ICMP, or exposed via a v1/service in kubernetes, ping is not the best test and will fail. Some networks may also drop ICMP traffic causing the use of this function to throw errors.
Is there a better way to perform this that's more friendly to overlay networks or kubernetes services?
The text was updated successfully, but these errors were encountered: