微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如何在 cassandra 3.11.9+ dynamic_snitch_badness_threshold cassandra.yaml 参数上禁用 dynamic_snitch

如何解决如何在 cassandra 3.11.9+ dynamic_snitch_badness_threshold cassandra.yaml 参数上禁用 dynamic_snitch

任何人都可以解释应该使用哪个值来禁用 dynamic_snitch? 我不确定是 0 还是高数(50+?)

I see this information on cassandra.yaml:
https://github.com/apache/cassandra/blob/trunk/conf/cassandra.yaml
# controls how often to perform the more expensive part of host score
# calculation
dynamic_snitch_update_interval_in_ms: 100 
# controls how often to reset all host scores,allowing a bad host to
# possibly recover
dynamic_snitch_reset_interval_in_ms: 600000
# if set greater than zero,this will allow
# 'pinning' of replicas to hosts in order to increase cache capacity.
# The badness threshold will control how much worse the pinned host has to be
# before the dynamic snitch will prefer other replicas over it.  This is
# expressed as a double which represents a percentage.  Thus,a value of
# 0.2 means Cassandra would continue to prefer the static snitch values
# until the pinned host was 20% worse than the fastest.
dynamic_snitch_badness_threshold: 1.0

谢谢。

解决方法

您需要查看 documentation 说:

dynamic_snitch:是否应启用或禁用动态告密者。

出于某种原因,它没有记录在 cassandra.yaml 中,但您可以在 source code 中找到它。所以只需将此参数设置为 false

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。