28.4. Distributed Garbage Collection (STABLE)
pbcast.STABLEsub-element under the JGroups
configelement. Here is an example configuration.
<pbcast.STABLE stability_delay="1000" desired_avg_gossip="5000" max_bytes="400000"/>
pbcast.STABLEelement are as follows.
- desired_avg_gossip specifies intervals (in milliseconds) of garbage collection runs. Set this to
0to disable interval-based garbage collection.
- max_bytes specifies the maximum number of bytes received before the cluster triggers a garbage collection run. Set to
0to disable garbage collection based on the bytes received.
- stability_delay specifies the maximum time period (in milliseconds) of a random delay introduced before a node sends its
STABILITYmessage at the end of a garbage collection run. The delay gives other nodes concurrently running a
STABLEtask a chance to send first. If used together with
max_bytes, this attribute should be set to a small number.
max_bytesattribute when you have a high traffic cluster.