Hi ! I'm a web developer and working with symfony. I have a problem and can't figure out how to solve it.
So I have a database of product. You can search them using ES. Everytime I change something on a product I have a listener that changes the ES index.
We have two servers (In case something wrong happen) and the user is randomly directed to one server or the other one. ES is running on both server.
The problem is when one of the products is changed, the listener only changes the product on one of the two servers. Leaving the other one with error.
I tried to find a solution. Maybe using a shared folder with the data for both of the elasticsearch ?
Maybe putting a listener on both ES and if one is changed, the other one too?
Anyway, I'm not looking for a definitive solution but if someone can give me a hint! Thank you!
I have two independant server so two different cluster. For the first one I have :
ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
127.0.0.1 33 91 6 1.98 2.34 2.02 mdi * wqkQSDF
And :
ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
127.0.0.1 43 63 20 1.41 1.80 1.70 mdi * DxHDBN4
I can share folder beetween the two folder so I thought I could changes the path.data :/var/lib/elasticsearch to path.data:/shared-folder what do you think of that ?
Definitely a bad design.
Just make your 2 nodes part of the same cluster and you're done.
Well you will need a 3rd master only small node to act as a tie breaker.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.