[关闭]
@sewise-dev 2016-11-03T04:11:41.000000Z 字数 929 阅读 668

VPaas平台PHP 分布式管理主机上报接口文档

分布式管理


更新历史

编号 版本 说明 作者 日期
1 v1.0 1.创建文档 Seven 2016-11-03

目录


【备注】

1. 节点自动上报

场景:主机在服务期内自动上报当前状态信息到cdnMaster,master根据调度策略进行分配host,达到监控和调度主机的目的。

HTTP请求状态返回格式

返回字段 字段类型 说明
netrx String 收到的总流量
host String 节点ip
cpuuser String cpu使用率
speed String 当前的网络消耗带宽
nettx String 发送的总流量
cpusys String cpu系统类型
hls_connections Integer hls的连接数
cpuwa String 等待占用的cpu
cpuidle String 空闲cpu
memtotal String 内存总量
tcpconnections String 当前 tcp连接数,tcpconnections>connections
disktotal String 磁盘总量
memused String 内存占用量
diskused String 磁盘占用量
connections Integer 总连接数,rtmp连接= 总连接数-hls连接数
接口示例

Request
curl -X POST -H "Content-Type:text/xml" -d
{"netrx" : 13322.45MB "host" : 192.168.1.133 "cpuuser" : 0.3% "speed" : 0.0MB "nettx" : 88.48MB "cpusys" : 0.0% "hls_connections" : 0 "cpuwa" : 0.0% "cpuidle" : 99.7% "memtotal" : 992.5MB "tcpconnections" : 2 "disktotal" : 48399.05MB "memused" : 415.47MB "diskused" : 6322.35MB "connections" : 0 } http://192.168.x.xxx/?mod=cloudnode&do=nodereport
Response
{"success":true}

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注