Hello, Jim,
I would recommend making the configuration changes directly in the infinispan configuration (infinispan.xml), but I would *very, very strongly* recommend storing that modified configuration outside of the unpacked war file.
As an example, this is my JAVA_OPTS (at present) for our fedora4 instance:
JAVA_OPTS="-Dfile.encoding=UTF-8 \
-Dfcrepo.home=/mnt/data/fcrepo \
-Dfcrepo.modeshape.configuration=file:/etc/fcrepo/repository.json \
-Dfcrepo.activemq.configuration=file:/etc/fcrepo/activemq.xml \
-Dfcrepo.ispn.configuration=/etc/fcrepo/infinispan.xml \
-Dfcrepo.auth.webac.authorization=/etc/fcrepo/root-authentication.ttl \
-Dfcrepo.spring.audit.configuration=file:/etc/fcrepo/audit.xml \
-Dlogback.configurationFile=/etc/fcrepo/logback.xml \
-Dfcrepo.ispn.alternative.cache=ispn.alt.cache \
-Dfcrepo.ispn.binary.cache=ispn.binary.cache \
-Dfcrepo.ispn.cache=ispn.cache \
-Dfcrepo.ispn.binary.alternative.cache=ispn.binary.alt.cache \
-Dfcrepo.ispn.repo.cache=ispn.repo.cache \
-Dfcrepo.modeshape.index.directory=modeshape.index \
-Dfcrepo.binary.directory=binary.store \
-Dfcrepo.activemq.directory=activemq \
-Dcom.arjuna.ats.arjuna.common.ObjectStoreEnvironmentBean.default.objectStoreDir=arjuna.common.object.store \
-Dcom.arjuna.ats.arjuna.objectstore.objectStoreDir=arjuna.object.store \
-Dnet.sf.ehcache.skipUpdateCheck=true \
-Dfcrepo.audit.container=/audit \
-XX:+UseConcMarkSweepGC
-XX:+CMSClassUnloadingEnabled \
-XX:+UseG1GC
-XX:ConcGCThreads=5 \
-XX:MaxGCPauseMillis=200
-XX:ParallelGCThreads=20 \
-XX:+UseParNewGC
-XX:MaxMetaspaceSize=512M \
-Xms1024m
-Xmx2048m"
You will see that all of the configuration files are stored outside of the unpacked war file. In my case, that's /etc/fcrepo, but it could be any place that makes sense for your system.
All of those configuration files are highly customized, and by placing them in a directory that I control, any of my changes aren't overwritten when re-deploying a war file.
At a minimum, I would highly recommend that any production deployments of fedora store at least these configuration files separately, and if you customize these at all, you should absolutely do this.
repository.json (this is the central config for modeshape, and you should control that)
activemq.xml (you should at least turn the topic into a queue)
infinispan.xml
root-authentication.ttl (if you're using webac)
logback.xml (to make logging configuration more sensical -- e.g. by writing to /var/log/fcrepo/fcrepo.log rather than catalina.out)
Regards,
Aaron
> --
> You received this message because you are subscribed to the Google Groups "Fedora Tech" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
fedora-tech...@googlegroups.com.
> To post to this group, send email to
fedor...@googlegroups.com.
> Visit this group at
https://groups.google.com/group/fedora-tech.
> For more options, visit
https://groups.google.com/d/optout.