ravthan / all-eyes

Automatically exported from code.google.com/p/all-eyes
0 stars 0 forks source link

Change in the flow of heartbeat messages #117

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
From log line:

[INFO] Writing messages: 
[:10:1353897071108448-4:00:PM:][:10:1353897069159780-2:22:PM:0003:11:A0:myproc_m
yproc_ignore:][:10:1353897077119571-3:00:FM:][:10:1353897067296351-1:22:SM:9999:
00:A0:SM:][:10:1353897077114349-3:00:FD:][:10:1353897069139791-2:22:SM:0001:11:A
1:tcp_22_sshd_logmsg:][:10:1353897070106476-3:22:PM:0003:11:A1:myproc2_myproc2 
-a_logmsg:][:10:1353897067295841-1:22:PM:9999:00:A0:PM:][:10:1353897071106520-4:
22:SM:0002:11:A1:tcp_8080_httpd_logmsg:][:10:1353897070106009-3:22:SM:0002:11:A0
:tcp_80_httpd_ignore:][:10:1353897067115263-1:00:SF:][:10:1353897072107125-5:00:
SM:]

I see it now below are the messages from the above log entry that are being 
sent to the Manager from the proxy:

[:10:1353897071108448-4:00:PM:]
[:10:1353897069159780-2:22:PM:0003:11:A0:myproc_myproc_ignore:]
[:10:1353897077119571-3:00:FM:]
[:10:1353897067296351-1:22:SM:9999:00:A0:SM:]
[:10:1353897077114349-3:00:FD:]
[:10:1353897069139791-2:22:SM:0001:11:A1:tcp_22_sshd_logmsg:]
[:10:1353897070106476-3:22:PM:0003:11:A1:myproc2_myproc2 -a_logmsg:]
[:10:1353897067295841-1:22:PM:9999:00:A0:PM:]
[:10:1353897071106520-4:22:SM:0002:11:A1:tcp_8080_httpd_logmsg:]
[:10:1353897070106009-3:22:SM:0002:11:A0:tcp_80_httpd_ignore:]
[:10:1353897067115263-1:00:SF:]
[:10:1353897072107125-5:00:SM:]

Notice the message types. The proxy is now receiving both 00 (heartbeats) and 
22 (events).  It was only receiving event messages so this is a change.  The 
protocol between the proxy and the manager aborts once it receives a non-event 
message.

How do we want to fix this?

Original issue reported on code.google.com by tbrt....@gmail.com on 26 Nov 2012 at 2:55

GoogleCodeExporter commented 8 years ago
Added a check in the ae proxy to protect against the ae daemon gone bad 
(revision 980)

Original comment by tbrt....@gmail.com on 26 Nov 2012 at 3:08

GoogleCodeExporter commented 8 years ago

Original comment by tbrt....@gmail.com on 26 Nov 2012 at 3:09

GoogleCodeExporter commented 8 years ago
Verified with unit testing

Original comment by tbrt....@gmail.com on 9 Dec 2012 at 9:24