Greetings @Pedro, apologies for the late reply on your question. To answer your question, when running on a Payara Micro cluster in Kubernetes, as long as the Payara Micro instances are correctly configured using the kubernetesdiscovery mode and the requirements in the K8S cluster are set correctly, when pods are killed by the cluster their corresponding Payara Micro instances should leave the DataGrid/Hazelcast cluster in tandem.
According to everything, the issue was that I hadn’t configured graceful shutdown properly. Payara and Hazelcast obviously need a bit of time to exchange information and allow the pod to terminate correctly.
One mystery remains: why does CPU usage gradually increase over time due to Hazelcast? It happens very slowly and doesn’t cause anything critical, but still…