Hi,

I am using Apache Ignite in client mode true with my web application. I am
using Java Configuration using IgniteConfiguration and CacheConfiguation
beans to configure the Caches and my Ignite 
Configuration.

I want to the update the  Apache Ignite Cache Configuration without
restarting the web application.

So, I have externalised the cache configuration (type,expiry and eviction
policies) to a properties file in a file based repository maintained by
Spring Cloud Configuration server.

Also, I am using SpringCacheManager and Spring Cache abstraction which
includes the @Cacheable annotation at method level.

I understand that caches are created automatically at first access and need
not be created in advance using Apache Ignite Configuration.

So, whenever I want to change any of the attributes of any of the caches I
update the configuration in 
 repository and then push the changes to the web application using Spring
Boot Actuator. I only reapply the changes to the CacheConfiguration and
IgniteConfiguration beans and set them again to SpringCacheManager.

The changes would typically be changing the expiration policy interval for
specific caches.


My question is I do not see the changes reflected when I push the changes to
the application by dynamically updating Configuration beans again and set
them to the SpringCacheManager bean instance will Apache Ignite update the
cache configuration in servers in the Apache Ignite instance running outside
my application in a different JVM. Since I use clientMode false.

Is this possible. Can we dynamically update/change the properties like
change the cache mode or change the expiry times at runtime.

Also, I get an checked exception about inconsistencies in Cache
Configuration and I am trying to change a cache mode to PARTITIONED in local
cache whereas in Remote it is REPLICATED.

Can someone guide me if it is possible to update the attributes in this way
and will the changes be reflected.










--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Dynamically-update-the-Cache-Configuration-without-restsrting-client-and-serve-tp14303.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to