gpt4 book ai didi

amazon-web-services - 连接到 AWS ElastiCache 复制组只读副本

转载 作者:IT王子 更新时间:2023-10-29 06:07:45 26 4
gpt4 key购买 nike

使用 AWS-ElastiCache-Redis 的复制组时,有没有办法指定连接到只读副本的首选项?

目标是提供只读访问权限。

在另一个方向上,很容易更喜欢以一种即使在切换时也保持一致的方式连接到主节点。

From the docs :

For read-only activity, applications can connect to any node in the replication group. However, for write activity, we recommend that your applications connect to the primary endpoint for the replication group instead of connecting directly to the primary node. This will ensure that your applications can always find the current primary node, even if you decide to reconfigure your replication group by promoting a read replica to the primary role.

最佳答案

没有。

一组解决方案依赖于 DNS 以“首选”主机作为最不受欢迎的连接来连接到实例,并简单地检查已连接实例的状态。由于促销事件,这不是保证。

slave-allow-chaining,它“[d]确定 Redis 中的只读副本是否可以拥有自己的只读副本。”目前是required to be "no" .)

关于amazon-web-services - 连接到 AWS ElastiCache 复制组只读副本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30001732/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com