Closed meatballhat closed 8 years ago
@@ master #18 diff @@
==========================================
Files 10 11 +1
Lines 566 665 +99
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 325 398 +73
- Misses 214 232 +18
- Partials 27 35 +8
Powered by Codecov. Last update e3143f7...160e925
yey
a full lifecycle example:
{
"data": [
{
"event": "prelaunching",
"timestamp": "2016-09-18T21:40:31.192935087Z"
},
{
"event": "launching",
"timestamp": "2016-09-18T21:48:56.635388471Z"
},
{
"event": "preterminating",
"timestamp": "2016-09-18T22:56:22.333633842Z"
},
{
"event": "heartbeat",
"timestamp": "2016-09-18T22:56:22.508798533Z"
},
{
"event": "terminating",
"timestamp": "2016-09-18T22:56:22.604577654Z"
}
],
"meta": {
"instance_id": "i-f9181dee"
}
}
This is not a full event audit per instance, but instead last-in captures the following named events with timestamps. The only event that is expected to occur multiple times is
heartbeat
.prelaunching
- an SNS notification has been received with anautoscaling:EC2_INSTANCE_LAUNCHING
transition for a given instance with token for confirmation after the instance "phones home" with...launching
- an instance has "phoned home" once it begins to receive work. In the case of travis-worker, this happens when a "start hook" is executed.heartbeat
- something has hitGET /heartbeats/{instance_id}
, which is an unauthenticated route, so hopefully it was the instance. maybe.preterminating
- an SNS notification has been received with anautoscaling:EC2_INSTANCE_TERMINATING
transition for a given instance with a token for confirmation after the instance "phones home"terminating
- an instance has "phoned home" once it has stopped receiving work. In the case of travis-worker, this happens when a "stop hook" is executed.