If you want to test or manage a Tair instance on your on-premises device, you can apply for a public endpoint for the instance and connect to the instance over the Internet.
Usage notes
You are not charged traffic fees when you connect to your Tair instance over the Internet. However, this increases network latency, compromises service performance, and results in security risks. We recommend that you connect to instances by using Virtual Private Cloud (VPC) for lower network latency and higher security.
NoteThe Service Level Agreement (SLA) does not apply to client exceptions caused by the Internet conditions.
Public endpoints are not supported for Tair cloud-native cluster instances that run in direct connection mode. You can connect to these instances over a VPC.
Procedure
Obtain the public IP address of your on-premises device.
Linux: Open the CLI, enter the
curl ifconfig.me
command, and then press Enter.Windows: Open Command Prompt, enter the
curl ip.me
command, and then press Enter.macOS: Start Terminal, enter the
curl ifconfig.me
command, and then press Enter.
Add the public IP address of your on-premises device to a whitelist of the Tair instance. For more information, see Configure whitelists.
NoteIf your on-premises device uses dynamic IP addresses, you can add the CIDR block to a whitelist of the Tair instance to prevent access failures caused by IP address changes. This may compromise the security of the instance. Proceed with caution.
Apply for a public endpoint for the Tair instance. For more information, see Apply for a public endpoint for an instance.
Use the redis-cli tool or a client program to connect to the Tair instance based on the obtained public endpoint.
NoteWhen you use a public endpoint to connect to your instance, you must specify the database account and the corresponding password. For more information, see Connect to a Tair instance.