我正在試驗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