All Products
Search
Document Center

ApsaraDB for Redis:Why am I unable to switch between the proxy mode and the direct connection mode when I use cloud disk-based cluster instances?

Last Updated:Dec 21, 2023

The connection method and code vary with instance mode. You can connect to cloud disk-based cluster instances in proxy mode in the same manner as you connect to standard instances and connect to cloud disk-based cluster instances in direct connection mode in the same manner as you connect to native Redis clusters. If you use a cloud disk-based cluster instance, you cannot enable both the proxy and direct connection modes at the same time or switch between the two modes.

To switch between the two modes, you can use the instance restoration feature on the Backup and Recovery page to restore backup data in an existing cloud disk-based cluster instance to a new instance. Then, on the Clone Instance page, set Connection Mode to Proxy or Direct Connection. For more information, see Restore data from a backup set to a new instance.

Warning

After the new cloud disk-based cluster instance is created with a new connection mode, modify the connection code accordingly. Otherwise, the instance cannot be connected. Proceed with caution.