Testing client connectivity
In various scenarios, such as after creating a new cluster or upgrading the cluster, it is highly advisable to verify client connectivity to the database.
To test client connectivity:
- Create a Redis database and get the database’s endpoint, which contains the cluster name (FQDN). For additional details, refer to Creating a new database.
- Try to connect to the database endpoint from your client of choice, and execute commands against the database.
- If the database does not respond, try to connect to the database endpoint by using the IP address rather than the FQDN; if you succeed, it means that the DNS is not properly configured. For additional details, refer to DNS.
If any issues are encountered during the connectivity test, contact our support at email@example.com.
- You can use redis-cli, and try to connect by using the following format:
redis-cli -h <hostname> -p <port> -a <password if exists>
<hostname> is the database endpoint without the port number section
<port> is the port number of the database
- Run the PING command to test your connectivity to the database. If the test is successful, the database will respond with PONG.