caching - Howto handle infinispan cache creating and deployment -


we have infinispan cluster serving cache server our applications. every time need new cache, have edit config files, , redeploy cluster, problematic. obvious reasons, don't want redeploy cache cluster. can add new cache definition through web interface, or cli. has downside of not recording configuration in repo. ideally want able add cache definitions in way persistent in code repo. in case of disaster, can redeploy cache cluster.

we looked creating cache definition through source code, @ application startup, doesn't seems possible.

does has idea best practises issue?

after r&d, found:

  • programatic creation of caches, possible through jcache implementation in infinispan, not find way configure it. end result empty cache definition, no properties

  • what ended doing create caches using jboss cli. use script create cache definitions, , commit script version control system. way can recreate cache server anytime rerunning script. downside of approach going need install jboss-cli on deploying machine - ci probably- inconvenient. decided step manually time being.


Comments