Externalization of Hazelcast.yml file without restarting springboot application

86 views
Skip to first unread message

Mahi Sharma

unread,
Sep 14, 2022, 12:35:10 PM9/14/22
to Hazelcast

Hi Team,

I am trying to externalize the hazelcast.yml in springboot application.So move the file to config server repo and accessing through UrlYamlConfig but if we are changing any properties in runtime then it is not reflecting without restart of springboot application.So always it is require to restart the application if i am modifying any properties in hazelcast.yml. which violates  externalization.

Is there any way to achieve this without restarting the springboot application , the latest hazelcast config properties will be apply.

Thanks,
Mahi

Josef Cacek

unread,
Sep 16, 2022, 4:11:56 AM9/16/22
to haze...@googlegroups.com
Hi Mahi,

Hazelcast doesn't reload configuration during the member run. Still,
some parts of the configuration can be updated dynamically at runtime.
https://docs.hazelcast.com/hazelcast/5.1/configuration/dynamic-config

If the dynamic config doesn't cover your use case, maybe switching
from embedded mode to client-server could help.
Some parts of the configuration can be changed during the cluster
rolling restart. For others, you could use the Blue-Green deployment
feature (available in Hazelcast Enterprise):
https://docs.hazelcast.com/hazelcast/5.1/getting-started/blue-green

Regards,
-- Josef
> --
> You received this message because you are subscribed to the Google Groups "Hazelcast" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/e6315c4b-b06b-4f6a-b7c8-47407f7b6004n%40googlegroups.com.

--
This message contains confidential information and is intended only for the
individuals named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be intercepted,
corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.
The sender therefore does not accept liability for any errors or omissions
in the contents of this message, which arise as a result of e-mail
transmission. If verification is required, please request a hard-copy
version. -Hazelcast
Reply all
Reply to author
Forward
0 new messages