From 7a02a65f7952722416f8d0f0136cb0ad6c3f756d Mon Sep 17 00:00:00 2001 From: Lopez Date: Tue, 16 Jan 2024 15:19:48 -0300 Subject: [PATCH 1/2] Restores value of config vm_memballoon_stats_period back to 60 --- .../main/java/com/cloud/agent/properties/AgentProperties.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/src/main/java/com/cloud/agent/properties/AgentProperties.java b/agent/src/main/java/com/cloud/agent/properties/AgentProperties.java index 0e979d370f40..c446f7592714 100644 --- a/agent/src/main/java/com/cloud/agent/properties/AgentProperties.java +++ b/agent/src/main/java/com/cloud/agent/properties/AgentProperties.java @@ -724,9 +724,9 @@ public Property getWorkers() { /** * The time interval (in seconds) at which the balloon driver will get memory stats updates. This is equivalent to Libvirt's --period parameter when using the dommemstat command. * Data type: Integer.
- * Default value: 0 + * Default value: 60 */ - public static final Property VM_MEMBALLOON_STATS_PERIOD = new Property<>("vm.memballoon.stats.period", 0); + public static final Property VM_MEMBALLOON_STATS_PERIOD = new Property<>("vm.memballoon.stats.period", 60); /** * The number of iothreads From fa25d98761709404d39e848ce3df10d3c1867ba7 Mon Sep 17 00:00:00 2001 From: Lopez Date: Thu, 25 Jan 2024 12:20:13 -0300 Subject: [PATCH 2/2] address Daniel review --- agent/conf/agent.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/conf/agent.properties b/agent/conf/agent.properties index b15534a0be6a..12fcd232af99 100644 --- a/agent/conf/agent.properties +++ b/agent/conf/agent.properties @@ -223,7 +223,7 @@ hypervisor.type=kvm # The time interval (in seconds) at which the balloon driver will get memory stats updates. # This is equivalent to Libvirt's --period parameter when using the dommemstat command. -# vm.memballoon.stats.period=0 +# vm.memballoon.stats.period=60 # Set to true to check disk activity on VM's disks before starting a VM. This only applies # to QCOW2 files, and ensures that there is no other running instance accessing