Get Small File Action
Get WAL size
Requestβ
GET fe_host:fe_http_port/api/get_wal_size?host_ports=host1:port1,host2:port2...
Descriptionβ
This HTTP interface allows users to obtain the number of WAL files for specified Backends (BEs). If no BE is specified, it returns the number of WAL files for all BEs.
Path parametersβ
None
Query parametersβ
host_ports
The IP and HTTP port of the BE.
Request bodyβ
None
Responseβ
{
"msg": "OK",
"code": 0,
"data": ["192.168.10.11:9050:1", "192.168.10.11:9050:0"],
"count": 0
}
Examplesβ
To obtain the number of WAL files for all BEs.
curl -u root: "127.0.0.1:8038/api/get_wal_size"
Response:
{
"msg": "OK",
"code": 0,
"data": ["192.168.10.11:9050:1", "192.168.10.11:9050:0"],
"count": 0
}In the returned result, the number following each BE indicates the number of WAL files for that BE.
To obtain the number of WAL files for a specified BE.
curl -u root: "127.0.0.1:8038/api/get_wal_size?192.168.10.11:9050"
Response:
{
"msg": "OK",
"code": 0,
"data": ["192.168.10.11:9050:1"],
"count": 0
}In the returned result, the number following the BE indicates the number of WAL files for that BE.