sanne.grinovero wrote:
Hi Andreas,
if you want to configure both nodes equally you should at least set
Code:
hibernate.search.default.exclusive_index_use=false
or each node will assume it is the only writer (and attempt to acquire an exclusivity lock which is likely the error you are having).
This configuration might be perfect for failover & simplicity, however this doesn't scale too well if you have a large amount of writes to handle: to be able to scale better on writes you should pick a node to be configured as Master: this node will require a different set of properties.
Could you explain why it is important for you to have both nodes configured exactly the same? You could for example use system/environment properties: in that case the configuration files would be the same, but you would still need to set different environment properties.
Hello!
Thank you for the answer.
Yes, we ended up using hibernate.search.default.exclusive_index_use=false and no Master/Slave. Our application doesn't have intensive update operations to the index, mostly reading. The reason we don't want Master/Slave configuration is failover and ease to add and remove nodes to the cluster. As I understand it, all the writing to the index must be performed by the Master node and we don't want those restrictions either, all nodes should be able to update.
Regards
Andreas