On this page

Get the Server Stats

Get the Server Stats on which BangDB server is running. It returns basic statistics of the machine and the database process.

Method : GET 

URI : /server/stat

Example

curl -X GET http://192.168.1.105:18080/server/stat

Response

{
"server": {
"node_name": "bangdb",
"version": "#146~16.04.1-Ubuntu SMP Tue Apr 13 09:27:15 UTC 2021",
"release": "4.15.0-142-generic",
"machine_arch": "x86_64",
"system": "\"Ubuntu 16.04.7 LTS\"\n",
"ram_mb": 15831,
"num_cpu": 12,
"listen_tcp_sock": 10,
"established_tcp_sock": 7,
"avg_user_cpu": 3.07,
"avg_sys_cpu": 0.5600000000000001,
"avg_iowait_cpu": 0.16,
"avg_idle_cpu": 95.68000000000001,
"num_open_files": 105314,
"num_disk": 2,
"total_disk_space_GB": 1024,
"used_disk_space": "6%\n"
},
"bangdb_process": {
"pid": 26717,
"bangdb_ip_port": "NULL",
"vm": 8886,
"maxrss_mb": 148,
"user_time_sec": 56,
"sys_time_sec": 0,
"page_reclaims": 34187,
"page_fault_IO": 1,
"block_input": 0,
"block_output": 4304,
"context_switch_vol": 1695,
"context_switch_forced": 255
}

Database related query starts with /db/<dbname>

Was this article helpful to you? Yes No