Hazelcast creates 3 nodes/members when configured as Hibernate L2 cache

醉酒当歌 提交于 2019-12-24 22:01:17

问题


Hazelcast creates 3 nodes/members when configured as Hibernate L2 cache.

Why? How do I control this?

I am using Hazelcast 3.2.6 with default configuration and Grails 2.2.3.


回答1:


You can set up an instanceName for all Hazelcast instances used in the Hibernate configurations. Then all will reuse the same HazelcastInstance (referred to by the name).

To set the instance name please use the following property in the Hibernate config all set to the same value:

hibernate.cache.hazelcast.instance_name

Set as:

<property name="hibernate.cache.hazelcast.instance_name">common_name</property>


来源:https://stackoverflow.com/questions/27186880/hazelcast-creates-3-nodes-members-when-configured-as-hibernate-l2-cache

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!