Skip to content

Instantly share code, notes, and snippets.

@hub-cap
Last active August 29, 2015 14:07
Show Gist options
  • Save hub-cap/035c48c8cf20e392b8b0 to your computer and use it in GitHub Desktop.
Save hub-cap/035c48c8cf20e392b8b0 to your computer and use it in GitHub Desktop.
Mon Sep 29 18:20:18 2014 DBG: Connection: 127.0.0.1:15001 (127.0.0.1:15001) -> READY -> AUTHENTICATED
Mon Sep 29 18:20:18 2014 INF: 127.0.0.1:15001 (hostname=127.0.0.1 connID=2) -> Connected
Mon Sep 29 18:20:18 2014 DBG: 127.0.0.1:15001 (hostname=127.0.0.1 connID=2) -> machine: state=Default (connect)
Mon Sep 29 18:20:18 2014 DBG: 127.0.0.1:15001 (hostname=127.0.0.1 connID=2) -> machine: state=Handshake (handshake_success)
Mon Sep 29 18:20:18 2014 INF: 127.0.0.1:15001 (hostname=127.0.0.1 connID=2) -> Connection has been authenticated to 127.0.0.1:15001
Mon Sep 29 18:20:18 2014 DBG: 127.0.0.1:15001 (hostname=127.0.0.1 connID=2) -> Starting heartbeat interval, interval=5000ms
Mon Sep 29 18:20:18 2014 DBG: 127.0.0.1:15001 (hostname=127.0.0.1 connID=2) -> Not retrieving check manifest, because agent is not bound to an entity
Mon Sep 29 18:20:18 2014 DBG: 127.0.0.1:15001 (hostname=127.0.0.1 connID=2) -> Using timeout 304714ms
Mon Sep 29 18:20:23 2014 DBG: 127.0.0.1:15001 (hostname=127.0.0.1 connID=2) -> Sending heartbeat (timestamp=1412014823435,sent_heartbeat_count=0,got_pong_count=0)
Mon Sep 29 18:20:23 2014 DBG: 127.0.0.1:15001 (hostname=127.0.0.1 connID=2) -> SENDING: (endpoint:0) => {"target":"endpoint","source":"guidA","id":"0","params":{"timestamp":1412014823435},"v":"1","method":"heartbeat.post"}
Mon Sep 29 18:20:23 2014 DBG: 127.0.0.1:15001 (hostname=127.0.0.1 connID=2) -> Got pong (latency=0.000000,sent_heartbeat_count=1,got_pong_count=1)
Mon Sep 29 18:20:23 2014 DBG: 127.0.0.1:15001 (hostname=127.0.0.1 connID=2) -> Starting heartbeat interval, interval=5000ms
Mon Sep 29 18:20:28 2014 DBG: 127.0.0.1:15001 (hostname=127.0.0.1 connID=2) -> Sending heartbeat (timestamp=1412014828937,sent_heartbeat_count=1,got_pong_count=1)
Mon Sep 29 18:20:28 2014 DBG: 127.0.0.1:15001 (hostname=127.0.0.1 connID=2) -> SENDING: (endpoint:1) => {"target":"endpoint","source":"guidA","id":"1","params":{"timestamp":1412014828937},"v":"1","method":"heartbeat.post"}
Mon Sep 29 18:20:28 2014 ERR: 127.0.0.1:15001 (hostname=127.0.0.1 connID=2) -> Ignoring unexpected response object endpoint:0
SERVER SIDE
handshake
{u'target': u'endpoint', u'id': 0, u'source': u'agentA', u'params': {u'agent_name': u'virgo-example-agent', u'token': u'tokenA', u'bundle_version': u'0d0862c-0', u'agent_id': u'agentA', u'process_version': u'0d0862c'}, u'v': u'1', u'method': u'handshake.hello'}
sending {"result": {"timestamp": 1412014818, "heartbeat_interval": 5000}, "source": "endpoint", "target": "agentA", "id": 0, "v": "1"}
heartbeat 1
{u'target': u'endpoint', u'id': u'0', u'source': u'agentA', u'params': {u'timestamp': 1412014823435}, u'v': u'1', u'method': u'heartbeat.post'}
sending {"result": {"timestamp": 1412014823, "heartbeat_interval": 5000}, "source": "endpoint", "target": "agentA", "id": 0, "v": "1"}
hjeartbeat 2
{u'target': u'endpoint', u'id': u'1', u'source': u'agentA', u'params': {u'timestamp': 1412014828937}, u'v': u'1', u'method': u'heartbeat.post'}
sending {"result": {"timestamp": 1412014828, "heartbeat_interval": 5000}, "source": "endpoint", "target": "agentA", "id": 0, "v": "1"}
@hub-cap
Copy link
Author

hub-cap commented Sep 29, 2014

handshake
{u'target': u'endpoint', u'id': 0, u'source': u'agentA', u'params': {u'agent_name': u'virgo-example-agent', u'token': u'tokenA', u'bundle_version': u'0d0862c-0', u'agent_id': u'agentA', u'process_version': u'0d0862c'}, u'v': u'1', u'method': u'handshake.hello'}

sending {"result": {"timestamp": 1412014818, "heartbeat_interval": 5000}, "source": "endpoint", "target": "agentA", "id": 0, "v": "1"}

first heartbeat
{u'target': u'endpoint', u'id': u'0', u'source': u'agentA', u'params': {u'timestamp': 1412014823435}, u'v': u'1', u'method': u'heartbeat.post'}

sending {"result": {"timestamp": 1412014823, "heartbeat_interval": 5000}, "source": "endpoint", "target": "agentA", "id": 0, "v": "1"}

second heartbeat
{u'target': u'endpoint', u'id': u'1', u'source': u'agentA', u'params': {u'timestamp': 1412014828937}, u'v': u'1', u'method': u'heartbeat.post'}

sending {"result": {"timestamp": 1412014828, "heartbeat_interval": 5000}, "source": "endpoint", "target": "agentA", "id": 0, "v": "1"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment