hi all,
in func chkNRun_cluster_mon of /usr/bin/contrail-cmon-monitor.sh
it would check connections of haproxy and restart the haproxy while the vip
is not in this node with the msg "Restarted HAP becuase of stale dips"
and we found that contrail-analytics-api would request 127.0.0.1:8081 time
and again
this operation would cause the haproxy restart while it is no-vip node
so, we would see the haproxy restart time and again which on no-vip nodes
is it right status ?
below is the tcp stream of 127.0.0.1:8081:
===========================tcpdump data==============================
POST /analytics/query HTTP/1.1
Host: 127.0.0.1:8081
Content-Length: 420
Content-type: application/json; charset="UTF-8"
Accept-Encoding: gzip, deflate, compress
Accept: */*
User-Agent: python-requests/1.1.0 CPython/2.6.6 Linux/2.6.32-431.el6.x86_64
{"table": "StatTable.VirtualMachineStats.if_stats", "start_time":
1452915490993658, "where": [[{"name": "name", "value":
"70ad6796-1f7f-41d3-b0ef-4555fd772cde", "op": 1}]], "end_time":
1452919090993658, "select_fields": ["COUNT(if_stats)",
"SUM(if_stats.in_bw_usage)", "SUM(if_stats.in_bytes)", "SUM(if_stats.in_pkts)",
"if_stats.name", "SUM(if_stats.out_bw_usage)", "SUM(if_stats.out_bytes)",
"SUM(if_stats.out_pkts)"]}HTTP/1.1 200 OK
Content-Type: application/json
Date: Sat, 16 Jan 2016 04:38:12 GMT
Transfer-Encoding: chunked
b
{"value": [
116
{"if_stats.name":"default-domain:jw_test:41ecdd42-31d2-4b18-97fa-7dbf585aabc3","SUM(if_stats.in_bw_usage)":0,"SUM(if_stats.in_bytes)":5037,"SUM(if_stats.in_pkts)":56,"SUM(if_stats.out_bw_usage)":0,"SUM(if_stats.out_bytes)":5151,"SUM(if_stats.out_pkts)":53,"COUNT(if_stats)":1}
2
]}
0
==========================================
any help?
thx,
Keyang Li
[email protected]
_______________________________________________
Dev mailing list
[email protected]
http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org