Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to understand the Shard of SolrCloud

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces "how to understand the Shard of SolrCloud". In the daily operation, I believe many people have doubts about how to understand the Shard of SolrCloud. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "how to understand the Shard of SolrCloud"! Next, please follow the editor to study!

Solrcloud when a node is down, it can still be queried, which is a prerequisite. For example, shard has a backup. When a node goes down, it can still be queried because there is a backup. But when the shard node and all backup nodes are down, if the query returns: no servers hosting shard, because the current index set is incomplete, this is very dangerous and may affect the business. For example, registered users can not log in and so on.

Sometimes, in order to hide the fact that when the node is down, you can still query it, and ignore the downtime shard,solrj, you can add the following code:

ModifiableSolrParams params = new ModifiableSolrParams (); params.set ("shards.tolerant", "true")

Other information:

Ignore Shard with downtime when SolrCloud distributed retrieval

"

No servers hosting shard:

five hundred and three

"

Add the following parameters to obtain data only from the surviving shards:

Shards.tolerant=true

For example:

Explicit

True

ten

Text

If this parameter is not set, if there is a dead shard in the cluster, it will be displayed:

No servers hosting shard

At this point, the study on "how to understand the Shard of SolrCloud" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report