单节点的 Solr 和 Zookeeper
Solr and Zookeeper with a single node
我在我的本地机器上安装了 Solr 云 运行ning 和内部 Zookeeper(即 Zookeeper),Solr 在内部使用单个节点。
我的问题是,当我将 Solr 移至生产环境时,建议 运行 Zookeeper 在 isolated/separate/external 实例中还是使用 Zookeeper 的内部实例更好与 Solr 一起出现?
在生产环境中使用 solr 内部 zookeeper discouraged
。这甚至在 SolrCloud 文档中有说明。
Although Solr comes bundled with Apache ZooKeeper, you should consider yourself discouraged from using this internal ZooKeeper in production, because shutting down a redundant Solr instance will also shut down its ZooKeeper server, which might not be quite so redundant. Because a ZooKeeper ensemble must have a quorum of more than half its servers running at any given time, this can be a problem.
此问题的解决方案是设置外部 ZooKeeper 集成。你应该在不同的机器上创建这个集合,这样如果任何一个 solr 机器出现故障,它就不会影响 zookeeper 和其余的 solr 实例。我知道目前您正在使用一个 solr 实例。
我在我的本地机器上安装了 Solr 云 运行ning 和内部 Zookeeper(即 Zookeeper),Solr 在内部使用单个节点。
我的问题是,当我将 Solr 移至生产环境时,建议 运行 Zookeeper 在 isolated/separate/external 实例中还是使用 Zookeeper 的内部实例更好与 Solr 一起出现?
在生产环境中使用 solr 内部 zookeeper discouraged
。这甚至在 SolrCloud 文档中有说明。
Although Solr comes bundled with Apache ZooKeeper, you should consider yourself discouraged from using this internal ZooKeeper in production, because shutting down a redundant Solr instance will also shut down its ZooKeeper server, which might not be quite so redundant. Because a ZooKeeper ensemble must have a quorum of more than half its servers running at any given time, this can be a problem.
此问题的解决方案是设置外部 ZooKeeper 集成。你应该在不同的机器上创建这个集合,这样如果任何一个 solr 机器出现故障,它就不会影响 zookeeper 和其余的 solr 实例。我知道目前您正在使用一个 solr 实例。