api: add system/shard_to_numa_node_mapping

Intended for test usage.
(Specifically there's a test which checks memory usage by compression
dictionaries, and that depends on the number of NUMA nodes, since dicts
get a copy for each NUMA node).
This commit is contained in:
Michał Chojnowski
2026-05-29 12:32:35 +02:00
parent 7a387a499f
commit d0c4d8f95d
2 changed files with 23 additions and 0 deletions

View File

@@ -224,6 +224,24 @@
"parameters":[]
}
]
},
{
"path":"/system/shard_to_numa_node_mapping",
"operations":[
{
"method":"GET",
"summary":"Get the shard-to-NUMA-node mapping. The nth element is the NUMA node ID of the nth shard.",
"type":"array",
"items":{
"type":"long"
},
"nickname":"get_shard_to_numa_node_mapping",
"produces":[
"application/json"
],
"parameters":[]
}
]
}
]
}