[bitnami/redis-cluster] perf: add cluster-announce port and bus-port (#13647)

Signed-off-by: 吴小白 <296015668@qq.com>

Signed-off-by: 吴小白 <296015668@qq.com>
This commit is contained in:
吴小白 2022-11-16 16:10:45 +08:00 committed by GitHub
parent a8c60dcf6b
commit aed7e29efa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 0 deletions

View File

@ -91,6 +91,12 @@ redis_cluster_override_conf() {
redis_conf_set tls-cluster yes
redis_conf_set tls-replication yes
fi
if ! is_empty_value "$REDIS_CLUSTER_ANNOUNCE_PORT"; then
redis_conf_set "cluster-announce-port" "$REDIS_CLUSTER_ANNOUNCE_PORT"
fi
if ! is_empty_value "$REDIS_CLUSTER_ANNOUNCE_BUS_PORT"; then
redis_conf_set "cluster-announce-bus-port" "$REDIS_CLUSTER_ANNOUNCE_BUS_PORT"
fi
# Multithreading configuration
if ! is_empty_value "$REDIS_IO_THREADS_DO_READS"; then
redis_conf_set "io-threads-do-reads" "$REDIS_IO_THREADS_DO_READS"

View File

@ -91,6 +91,12 @@ redis_cluster_override_conf() {
redis_conf_set tls-cluster yes
redis_conf_set tls-replication yes
fi
if ! is_empty_value "$REDIS_CLUSTER_ANNOUNCE_PORT"; then
redis_conf_set "cluster-announce-port" "$REDIS_CLUSTER_ANNOUNCE_PORT"
fi
if ! is_empty_value "$REDIS_CLUSTER_ANNOUNCE_BUS_PORT"; then
redis_conf_set "cluster-announce-bus-port" "$REDIS_CLUSTER_ANNOUNCE_BUS_PORT"
fi
# Multithreading configuration
if ! is_empty_value "$REDIS_IO_THREADS_DO_READS"; then
redis_conf_set "io-threads-do-reads" "$REDIS_IO_THREADS_DO_READS"

View File

@ -181,6 +181,8 @@ The following env vars are supported for this container:
| `REDIS_CLUSTER_REPLICAS` | Number of replicas for every master that the cluster will have. |
| `REDIS_NODES` | String delimited by spaces containing the hostnames of all of the nodes that will be part of the cluster |
| `REDIS_CLUSTER_ANNOUNCE_IP` | IP that the node should announce, used for non dynamic ip environents |
| `REDIS_CLUSTER_ANNOUNCE_PORT` | Port that the node should announce, used for non dynamic ip environents |
| `REDIS_CLUSTER_ANNOUNCE_BUS_PORT` | The cluster bus port to announce |
| `REDIS_CLUSTER_DYNAMIC_IPS` | Set to `no` if your Redis(R) cluster will be created with statical IPs. Default: `yes` |
| `REDIS_TLS_ENABLED` | Whether to enable TLS for traffic or not. Defaults to `no`. |
| `REDIS_TLS_PORT` | Port used for TLS secure traffic. Defaults to `6379`. |