-
1. Re: Can multiple clients of Infinispan replicated cache share the same persistent file store?
galder.zamarreno Mar 27, 2019 10:48 AM (in response to prateekk.in)Shared file store can be tricky to handle. Depends on the guarantees/safety that is behind the file sharing. I'm aware of issues when using NFS. File based store is best used by each node locally.
For shared access, cassandra or DB are better suited.
-
2. Re: Can multiple clients of Infinispan replicated cache share the same persistent file store?
prateekk.in Mar 27, 2019 11:31 PM (in response to galder.zamarreno)In this case, its the Docker overlayFS drive that is mapping the multiple container paths to the same file path on the docker host's local file system. I wasn't able to find any information on whether the cache's file-store can be used (RW) simultaneously, nor the recommended approach of using embedded/remote infinispan in docker environments. The initial challenge itself is how to generate the mapping (unique file path or unique primary key) to configure infinispan's xml (or the bind mount in docker compose) beforehand - as i will have the docker containerId (=hostname inside container) only after it starts up. Perhaps the approach would be to set the file store programmatically by reading the hostname inside the container and using that with database file store. Thanks.