This content has been marked as final.
Show 5 replies
-
1. Re: File based storage in a cluster
mircea.markus Jan 25, 2010 7:59 PM (in response to meetoblivion)1. Can I store it on disk, and have it survive a restart?
Generally yes, at least the ones that ship with ISPN by default.
Will infinispan load the data automatically from this location at start up?
Yes, just set the preload attribute to true:
<loaders passivation="false" shared="true" preload="true">
2. There's going to be two nodes, and we're big on shared file systems (OCFS). Should the disk be shared?
so that you store all the data only once? Yep, that is possible. Just use a SingletonStore:
<singletonStore enabled="true" pushStateWhenCoordinator="true" pushStateTimeout="20000"/>
-
2. Re: File based storage in a cluster
meetoblivion Jan 25, 2010 9:34 PM (in response to mircea.markus)well, not just possible but is it advisable? Personally, I dont' like the idea of shared file systems, but an SA I work with seems to like them a lot. I'd prefer to have a separate file system on each server, but if there's strong recommendation to put it shared, I can get it on a shared file system. -
3. Re: File based storage in a cluster
mircea.markus Jan 26, 2010 8:48 AM (in response to meetoblivion)Just to make sure I understood your setup correctly: you want all your servers to store data in the same, network-shared directory. That should work perfectly fine, just make sure you use the singletonStore, as mentioned. I.e. is advisable, and will even increase performance as at all times only one node will write write to the persistent storage. -
4. Re: File based storage in a cluster
meetoblivion Jan 26, 2010 11:21 AM (in response to mircea.markus)Right, that pretty much describes the situation we have. I don't believe our cache will be all that large, so i'm trying to figure out what exactly is going to be the performance difference in both cases. -
5. Re: File based storage in a cluster
manik Jan 27, 2010 5:38 AM (in response to meetoblivion)You could try both approaches and see which performs better for your use case. The change would only be in the config file so switching would be trivial.