[英]Is data in solr backed by postgres in ckan
I would like to create a high availability ckan in Azure.我想在 Azure 中创建一个高可用性 ckan。 I know I can have a postgres as a service and rediss as a service, I can have ckan run behind a load balancer, only thing that bothers me is solr.我知道我可以将 postgres 作为服务和 redis 作为服务,我可以让 ckan 在负载均衡器后面运行,唯一困扰我的是 solr。 Since there is no Solr as a service in Azure, how can I make sure my solr instance is highly available.由于 Azure 中没有 Solr 作为服务,我如何确保我的 solr 实例是高可用的。
Does ckan keeps data in postgres and a duplicate of that data in solr for indexing? ckan 是否将数据保存在 postgres 中,并将该数据的副本保存在 solr 中以进行索引? If yes then, that will help me as if anytime my solr instance goes does in a VM (rarely) I will create new one and replicate the data from postgres.如果是,那么这将对我有所帮助,就好像我的 solr 实例在 VM 中运行时一样(很少),我将创建新实例并从 postgres 复制数据。
Firstly, you can have SOLR with HA configuration using the SOLR Zookeeper首先,您可以使用 SOLR Zookeeper 配置具有 HA 配置的 SOLR
https://lucene.apache.org/solr/guide/6_6/setting-up-an-external-zookeeper-ensemble.html#SettingUpanExternalZooKeeperEnsemble-SettingupaZooKeeperEnsemble https://lucene.apache.org/solr/guide/6_6/setting-up-an-external-zookeeper-ensemble.html#SettingUpanExternalZooKeeperEnsemble-SettingupaZooKeeperEnsemble
Secondly, you can always reindex the SOLR in CKAN using the following command:-其次,您始终可以使用以下命令在 CKAN 中重新索引 SOLR:-
https://docs.ckan.org/en/ckan-2.7.3/maintaining/paster.html#search-index-rebuild-search-index https://docs.ckan.org/en/ckan-2.7.3/maintaining/paster.html#search-index-rebuild-search-index
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.