-
1. Re: Binary store and replicated cluster
hchiorean Aug 31, 2015 4:45 AM (in response to sberthez)When you're running in cluster and are storing lots of binaries, the best approach is probably to use a central binary store (e.g. database backed). "Binary contention" will not be much of a problem because ModeShape uses references when multiple binary values are "shared". (see https://docs.jboss.org/author/display/MODE40/Binary+values ). The other option you have is to use an Infinispan backed binary store which in turn can be replicated. This could provide better locality and hence faster access (as opposed to network trips to a DB) but if you have lots of binary data, it might not be the best idea. Of course you can also try FS binary storage and rely on some sort of NFS for the "sharing" aspect.
There is no silver bullet/general performance recommendation. The best thing is to prototype different configurations and see which one works best for your use case.
-
2. Re: Binary store and replicated cluster
sberthez Aug 31, 2015 6:13 AM (in response to hchiorean)Thanks. Do you know if FileSystemBinaryStore works fine with NFS especially with problem related to file lock ?
Basically the proof of concept i develop is an ECM application (files with meta data) and binary values are mostly used to store files. In this context, full text search performance is more important than performance to stream the content because files are requested/stored on demand. Binaries values are not accessed frequently, there is no benefit to replicate binary values. An ideal architecture could be a NFS store for binary values but a replicated store for extracted text in order to have better performances for search on each cluster. It seems it is not possible out of the box. I will perhaps need to develop my own store engine by extending FileSystemBinaryStore or other.
I have quickly tested with a MongoDB as binary store and it works fine but for now i did not run performance test. It could be interesting to use MongoDB cluster but only replicate the part related to extracted text. I suppose i can do the same with Infinispan.
Anyway, i think i have now a better overview on the way it is working.
-
3. Re: Binary store and replicated cluster
hchiorean Aug 31, 2015 6:29 AM (in response to sberthez)Thanks. Do you know if FileSystemBinaryStore works fine with NFS especially with problem related to file lock ?
we've never tested locally the FS binary store on NFS. Maybe someone else from the community has and could post their experience here...
-
4. Re: Binary store and replicated cluster
sberthez Aug 31, 2015 8:17 AM (in response to hchiorean)Thanks i will ask.
-
5. Re: Binary store and replicated cluster
dharrison May 18, 2017 7:47 PM (in response to sberthez)Did you get an answer on this one?