Hybris数据库Jndi设置导致jgroup群集故障

问题描述

我们为数据库连接池设置了Jndi。此后,所有节点的jgroup JDBC_PING均失败。具体错误消息是

[错误] 2020-09-09 23:29:14.306 [(223)jgroups-71,hybris-broadcast,hybrisnode-1] [JDBC_PING] JGRP000115:无法打开与数据库的连接

数据库可以与应用程序的其他部分正常工作。

试图使用udp,但不起作用。

任何帮助将不胜感激。

Hybris 6.6版 在local.properties中

#db settings

db.url=jdbc:MysqL://<<ip address>>/hybrisdb?useConfigs=maxPerformance&characterEncoding=utf8&useSSL=false
db.driver=com.MysqL.jdbc.Driver
db.pool.name=hybrisDS
db.pool.fromJNDI=java:comp/env/jdbc/hybrisDS
db.pool.fromJNDI.dbtype=MysqL

#cluster settings

clustermode=true
cluster.broadcast.methods=jgroups
cluster.broadcast.method.jgroups=de.hybris.platform.cluster.jgroups.jgroupsbroadcastMethod
cluster.broadcast.method.jgroups.tcp.bind_port=7800
cluster.broadcast.method.jgroups.channel.name=hybris-broadcast
cluster.broadcast.method.jgroups.configuration=jgroups-tcp.xml

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)