forked from doyoubi/undermoon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Active Redirection Mode | ||
When server proxies run in `active redirection` mode, | ||
they will expose themselves in a single Redis client protocol. | ||
Clients don't need to support [Redis Cluster Protocol](./redis_cluster_protocol.md). | ||
|
||
## Enable Active Redirection | ||
Inside the server proxy config file`server-proxy.toml`, | ||
set `active_redirection` to `true`, | ||
or use environment variable `UNDERMOON_ACTIVE_REDIRECTION=true`. | ||
|
||
## How it works? | ||
When `active redirection` mode is enabled, | ||
a server proxy will automatically redirect the requests to other server proxies. | ||
Then if needed, other server proxies will keep redirecting the requests | ||
until they find the owner or exceed maximum redirection limit | ||
set by `max_redirections` in server proxy config file. |