Skip to content

Commit

Permalink
ot-redis
Browse files Browse the repository at this point in the history
  • Loading branch information
jiuker committed Nov 29, 2023
1 parent e281f43 commit b03557a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arm64/images/ot-redis/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ redis_mode_setup() {
fi
{
echo cluster-enabled yes
echo cluster-announce-port 6379
echo cluster-announce-bus-port 6380
echo cluster-node-timeout 5000
echo cluster-require-full-coverage no
echo cluster-migration-barrier 1
echo cluster-config-file "${DATA_DIR}/nodes.conf"
} >> /etc/redis/redis.conf
# echo cluster-announce-ip ${POD_IP}
# echo cluster-announce-port 6379
sed -i -e "/myself/ s/[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}/${POD_IP}/" "${DATA_DIR}/nodes.conf"
else
echo "Setting up redis in standalone mode"
Expand Down

0 comments on commit b03557a

Please sign in to comment.