[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
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"