Thanks Sanne for the detailed explanation. Please see my comments below.
sanne.grinovero wrote:
If your application requires immediate replication you should verify that the backend is configured to be synchronous; for JGroups that means you would need Hibernate Search 4.3.0.Final as 4.2.0.Final could only use JGroups in asynchronouse mode.
Ok. Will wait for HS 4.3.0.Final
Quote:
It seems you already configured Infinispan for the Directory - correct as that's a requirement - but make sure you find an appropriate tuning for the Infinispan (and your network) configuration first before trying the multiple nodes, as Infinispan can get slower than a plain FSDirectory when not properly configured.
I have tried the different tuning options as mentioned in hibernate search and infinispan docs. I have increased the OS buffer size and ran the performance tests that comes bundled with JGroups which showed that the network can handle large messages. Now when i increase the default chunk size from 16 KB to say 7 MB and restrict the segment size generated under 7 MB, I used to get the Read past EOF exception during initial state transfer using replication. I noticed that the exception was thrown for a particular entity, X, which was annotated with @IndexedEmbedded inside entity Y, but the entity X itself is not indexed while using MassIndexer. When I also included X to be indexed using MassIndexer, the problem went away. Next, the initial state transfer was taking a lot of time even though I've configured the chunk size and chunk batch size w.r.t our network settings. Finally, I've kept the chunk size as 512 KB and without any segment size restriction and chunk size batch to 100 and now its working fine. Any input from your end will also be helpful.
Quote:
Also I'm not sure what your definition of "high load" would be; consider that beyond a certain point tuning won't be enough and you will need to enable sharding. When enabling sharding it's good to remember that each shard can use a different master.
I haven't tried index sharding yet. Will give it a shot