Disabling virtual nodes in an existing Solr DC

僤鯓⒐⒋嵵緔 提交于 2019-12-11 06:02:54

问题


I have an existing cluster with the following topology:

  1. DC Cassandra: 2 nodes
  2. DC Solr: 5 nodes

All of the nodes currently use vnodes. I want to disable vnodes in the Solr DC for performance reasons.

According to this document, to disable vnodes:

  1. In the cassandra.yaml file, set num_tokens to 1
  2. Uncomment the initial_token property and set it to 1 or to the value of a generated token for a multi-node cluster.

Is this all that I need to do? (no repair, no cleanup, no anything?) Seems too good to be true for me.

As for token assignment, should I use the python code found here (for Murmur3) or should I reuse one of the existing tokens from the vnodes that the node currently has?


回答1:


The only way to disable vnodes is to do: http://www.datastax.com/documentation/cassandra/1.2/cassandra/configuration/configVnodesProduction_t.html
in the reverse. Make a new Solr dc with vnodes off and switch over to it.



来源:https://stackoverflow.com/questions/23674874/disabling-virtual-nodes-in-an-existing-solr-dc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!