我正在尝试创建一个安装了dotCMS 5.2.6的三台服务器集群。它们必须与由3个elasticsearch节点组成的第二个集群进行接口。尽管我尝试将它们组合在一起,但我获得的最佳情况是使用dotCMS和弹性启动和运行,但从点管理后端(控制面板>配置>网络),我总是看到我的三个服务器的红色状态,因为索引红色的状态。

我测试了下列组合:
在plugins/com.dotcms.config/conf/dotcms-config-cluster-ext.properties中
AUTOWIRE_CLUSTER_TRANSPORT=false
es.path.home=WEB-INF/elasticsearch使用AUTOWIRE_CLUSTER_TRANSPORT=true似乎不会改变结果
在plugins/com.dotcms.config/ROOT/dotserver/tomcat-8.5.32/webapps/ROOT/WEB-INF/elasticsearch/config/elasticsearch-override.yml中
transport.tcp.port: 9301
discovery.zen.ping.unicast.hosts: first_es_server:9300, second_es_server:9300, third_es_server:9300使用transport.tcp.port: 9300会导致dotCMS启动失败,错误如下:
ERROR cluster.ClusterFactory - Unable to rewire cluster:Failed to bind to [9300]
Caused by: com.dotmarketing.exception.DotRuntimeException: Failed to bind to [9300]当然,端口9300正在监听使用transport.tcp.port: 9300配置的三个elasticsearch节点,在启动和创建集群时没有问题。
使用transport.tcp.port: 9301,dotCMS可以启动和加入弹性簇,但是索引状态总是红色,即使指数化似乎有效,而且没有明显的影响。
使用transport.tcp.port: 9309 (如dotCMS联机引用中的建议)或任何其他端口号导致与9301情况相同的结果,但是从点管理后端(控制面板>配置>网络),每台机器的索引信息仍然将9301作为ES端口。

主要问题
考虑到我的Elasticsearch集群运行良好(所有索引都是绿色的),而且dotCMS插件中的ElasticSearchoverride.yml不会影响后端报告的默认9301,我想知道在哪里可以编辑ES端口。
发布于 2020-03-30 17:45:40
在ES上启用HTTP接口了吗?如果没有,我将启用它,并查看集群健康状况和索引健康状态是什么。您可能需要调整预期的副本。
https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-health.html
和
https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-indices.html
FWIW,即将推出的dotCMS (5.3.0)版本不支持嵌入式elasticsearch,需要一个普通的外部ES节点/custer来连接。
https://stackoverflow.com/questions/60882749
复制相似问题