Release the private endpoint of an ApsaraDB for Redis instance to disable direct connection mode. This is required before certain operations that direct connection mode does not support, such as changing instance configurations or upgrading a major version.
After the private endpoint is released, clients using that endpoint can no longer connect to the instance. Update your application's connection configuration before you proceed.
Prerequisites
Before you begin, ensure that you have:
An instance that uses the classic deployment mode and the cluster architecture
Direct connection mode enabled on the instance. See Enable the direct connection mode
Updated your application to use a different endpoint, such as the internal endpoint in proxy mode. See View endpoints
Release the private endpoint
Log on to the console and go to the Instances page. In the top navigation bar, select the region where the instance resides, and then click the instance ID.
In the Connection Information section, click Release Endpoint to the right of Private Endpoint.
In the panel that appears, click OK.
API reference
| Operation | Description |
|---|---|
| AllocateDirectConnection | Applies for a private endpoint for an instance |
| ReleaseDirectConnection | Releases a private endpoint for an instance |
What's next
After releasing the private endpoint, verify that your application connects successfully using the new endpoint. To re-enable direct connection mode later, see Enable the direct connection mode.