If you want to test or manage a Tair (or Redis Open-Source Edition) instance from an on-premise device, or if you want to connect a client that is deployed in a different virtual private cloud (VPC) to the instance, you can apply for a public endpoint for the instance and connect the client to the instance over the Internet.
Usage notes
You are not charged traffic fees when you connect to your instance over the Internet. However, this increases network latency, compromises the service performance, and results in security risks. We recommend that you connect to instances by using VPC for lower network latency and higher security.
NoteThe Service Level Agreement (SLA) does not apply to client exceptions caused by unstable Internet connections.
Public endpoints are not supported for cloud-native cluster instances in direct connection mode. You can connect to these instances over VPCs.
Procedure
Obtain the public IP address of the client.
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.
Log on to the console. On the Whitelist Settings page of the instance, add the public IP address to a whitelist of the instance. For more information, see Configure whitelists.
NoteIf the client uses dynamic IP addresses, you can add the CIDR block to a whitelist of the instance to prevent access failures caused by IP address changes. This may compromise the security of the instance. Proceed with caution.
In the Connection Information section of the Instance Information page, apply for a public endpoint for the 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 instance over 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 an instance.