[infinispan-dev] [OGM] Reasonable file safe storage defaults?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[infinispan-dev] [OGM] Reasonable file safe storage defaults?

Sanne Grinovero-3
Hi all,

we're updating Hibernate OGM to Infinispan 9.2, using now persisted counters.

To help people getting started, we include a default Infinispan
configuration which is suitable for OGM:
 - clustering enabled
 - transactions enabled
 - counters enabled

Of course being a general purpose default it won't be perfect but I'd
like it to be a fairly safe default to give people confidence.

What would you all think regarding:

<global-state>
            <persistent-location path="${java.io.tmpdir}/counters"/>
</global-state>

# Using /tmp?

We might want to pick an "Infinispan default path, something like
"/var/infinispan" for unix systems?

This might complicate the "easy default" as it would then require user
permissions to write in such a path.

# Is it consistent?

Does it even make sense to store the counters when we have no default
cachestore for the rest of the data?
Should we enable a File CacheStore by default, which path to use?

# Should Infinispan have such defaults?

Rather than coding in OGM an attempt to write to /var/infinispan
followed with user friendly warnings/errors and possibly a fallback,
should Infinispan include such logic?

Thanks,
Sanne
_______________________________________________
infinispan-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/infinispan-dev