Skip to content
Snippets Groups Projects
Commit 1f372dc3 authored by Дмитрий Кольцов's avatar Дмитрий Кольцов
Browse files

fix(webui): add memory info to replicasets

parent f8029b87
No related branches found
No related tags found
1 merge request!704deps(webui): bump to 0.1.3
Pipeline #25920 passed
......@@ -121,9 +121,13 @@ local function list_replicasets()
version = VERSION_PLACEHOLDER,
grade = is_leader and instance.current_grade[1],
-- frontend expects number
capacity =
capacityUsage =
is_leader
and instance_memory_info.quota_used / instance_memory_info.quota_size * 100,
memory = is_leader and {
used = instance_memory_info.quota_used,
usable = instance_memory_info.quota_size,
},
}
else
local replicaset = acc[instance.replicaset_uuid]
......
......@@ -56,7 +56,11 @@ def test_webui(cluster_with_webui: Cluster):
}
],
"instanceCount": 1,
"capacity": 100,
"capacityUsage": 100,
"memory": {
"usable": 33554432,
"used": 33554432,
},
"uuid": instance.replicaset_uuid(),
"id": "r1",
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment