我正在试验DataStax Enterprise Search。我有一个双节点集群,我使用Solr控制台Dataimport功能导入数据。根据“配置Solr”doc(http://www.datastax.com/docs/datastax_enterprise3.2/solutions/dse_search_schema#configuring-solr),我禁用了虚拟节点(num_tokens = 1,位于cassandra.yaml中)。我的简化架构如下:将数据导入DSE搜索群集后负载分布不均匀
<schema name="spatial" version="1.1">
<types>
<fieldType name="string" class="solr.StrField" omitNorms="true"/>
<fieldType name="boolean" class="solr.BoolField" omitNorms="true"/>
<fieldType name="sint" class="solr.SortableIntField" sortMissingLast="true" omitNorms="true"/>
<fieldType name="tint" class="solr.TrieIntField" precisionStep="8" omitNorms="true" positionIncrementGap="0"/>
<fieldType name="tfloat" class="solr.TrieFloatField" omitNorms="true"/>
<fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" omitNorms="true" positionIncrementGap="0"/>
<fieldType name="tdate" class="solr.TrieDateField" omitNorms="true"/>
<fieldType name="binary" class="solr.BinaryField"/>
<!-- A specialized field for geospatial search. If indexed, this fieldType must not be multivalued. -->
<fieldType name="location" class="solr.LatLonType" subFieldSuffix="_coordinate"/>
</types>
<fields>
<field name="id" type="string" indexed="true" stored="true"/>
<field name="objectid" type="tint" indexed="true" stored="true" required="true" multiValued="false" />
<field name="guwi" type="string" indexed="true" stored="true" required="false" multiValued="false" />
<field name="country" type="string" indexed="true" stored="true" required="false" multiValued="false" />
<field name="region" type="string" indexed="true" stored="true" required="false" multiValued="false" />
<field name="latlong" type="location" indexed="true" stored="false"/>
</fields>
<defaultSearchField>objectid</defaultSearchField>
<uniqueKey>id</uniqueKey>
</schema>
数据导入成功。但是,当我运行“nodetool status”时,我可以看到负载不是均匀分布在我的两个节点上,而是全部集中在用来执行数据导入的节点上。 我试图将uniqueKey修改为一个组合键,如(id,latlong)或甚至只是latlong,但它似乎并没有改变负载分布。我错过了什么吗?
感谢, 莱昂
您可以从 'nodetool状态yourkeyspace' 命令粘贴到输出? – RussS
数据中心:数据中心1 ======================= 状态=上/下 |/State = Normal/Leaving/Joining/Moving - 地址负载旗下拥有(有效)主机ID令牌机架 联合国10.30.161.137 66.34 MB 93.3%7e4bac03-feb9-42e8-AC9A-bf48be32b36a -8800219472428229728 RACK1 联合国10.157.8.94 52.76 KB 6.7%135bfc01-a3d3-4a2b-a681-7667f1eabc47 -7564491331177403445 rack1 – Leon