Skip to content

40min downtime on 2015-06-12 #100

Closed
Closed

Description

@cben

Case in point why I need better monitoring (#78):
the site was down twice on 2015-06-12, totalling ~40min:
http://stats.pingdom.com/imb1lncuugx2/1285351/2015/06
but I don't have any clear lead onto why.

I made no deployments since May 27.

RHcloud logs show a couple restarts, first of them representing 29min of downtime!
TODO: understand uptimerobot & pingbot's timezones — are these even related to the outage?

(the undefined lines are haproxy pings.)
That's probably not how long the restart took but how long since the server last was responsive enough to even log the incoming request. But why?

[2015-06-12T01:10:07.913Z] GET undefined / < 127.7.228.1 undefined
[2015-06-12T01:10:09.916Z] GET undefined / < 127.7.228.1 undefined
[2015-06-12T01:10:10.450Z] HEAD mathdown-cben.rhcloud.com / < 127.7.228.1 Ruby
[2015-06-12T01:10:10.509Z] HEAD mathdown-cben.rhcloud.com / < 127.7.228.1 Ruby
[2015-06-12T01:10:11.920Z] GET undefined / < 127.7.228.1 undefined
[2015-06-12T01:10:13.924Z] GET undefined / < 127.7.228.1 undefined
[2015-06-12T01:10:15.929Z] GET undefined / < 127.7.228.1 undefined
[2015-06-12T01:10:17.935Z] GET undefined / < 127.7.228.1 undefined
[2015-06-12T01:10:19.939Z] GET undefined / < 127.7.228.1 undefined
[2015-06-12T01:10:21.943Z] GET undefined / < 127.7.228.1 undefined
DEBUG: Sending SIGTERM to child...
DEBUG: Running node-supervisor with
DEBUG:   program 'server.coffee'
DEBUG:   --watch '/var/lib/openshift/546a6d7e5973cac907000028/app-root/data/.nodewatch'
DEBUG:   --ignore 'undefined'
DEBUG:   --extensions 'node|js|coffee'
DEBUG:   --exec 'coffee'
DEBUG: Starting child process with 'coffee server.coffee'
DEBUG: Watching directory '/var/lib/openshift/546a6d7e5973cac907000028/app-root/data/.nodewatch' for changes.
HttpServer up, e.g. http://localhost:8080/?doc=demo
[2015-06-12T01:39:41.894Z] GET undefined / < 127.7.228.1 undefined
[2015-06-12T01:39:43.939Z] GET undefined / < 127.7.228.1 undefined
[2015-06-12T01:39:45.946Z] GET undefined / < 127.7.228.1 undefined

...

[2015-06-12T03:56:29.192Z] GET undefined / < 127.7.228.1 undefined
[2015-06-12T03:56:31.194Z] GET undefined / < 127.7.228.1 undefined
[2015-06-12T03:56:33.196Z] GET undefined / < 127.7.228.1 undefined
DEBUG: Running node-supervisor with
DEBUG:   program 'server.coffee'
DEBUG:   --watch '/var/lib/openshift/546a6d7e5973cac907000028/app-root/data/.nodewatch'
DEBUG:   --ignore 'undefined'
DEBUG:   --extensions 'node|js|coffee'
DEBUG:   --exec 'coffee'
DEBUG: Starting child process with 'coffee server.coffee'
DEBUG: Watching directory '/var/lib/openshift/546a6d7e5973cac907000028/app-root/data/.nodewatch' for changes.
HttpServer up, e.g. http://localhost:8080/?doc=demo
[2015-06-12T04:01:35.483Z] GET undefined / < 127.7.228.1 undefined
[2015-06-12T04:01:37.506Z] GET undefined / < 127.7.228.1 undefined

Why? Who sent the SIGTERM and why? And why 2nd restart with no SIGTERM?

The other gear has similar 2 restarts though different times:

[2015-06-12T01:01:16.546Z] HEAD mathdown.net / < 10.79.191.211 Mozilla/5.0+(compatible; UptimeRobot/2.0; http://www.uptimerobot.com/)
[2015-06-12T01:01:17.061Z] GET undefined / < 10.79.191.211 undefined
[2015-06-12T01:01:19.066Z] GET undefined / < 10.79.191.211 undefined
DEBUG: Sending SIGTERM to child...
DEBUG: Running node-supervisor with
DEBUG:   program 'server.coffee'
DEBUG:   --watch '/var/lib/openshift/54e3b3f2fcf933a3060000cd/app-root/data/.nodewatch'
DEBUG:   --ignore 'undefined'
DEBUG:   --extensions 'node|js|coffee'
DEBUG:   --exec 'coffee'
DEBUG: Starting child process with 'coffee server.coffee'
DEBUG: Watching directory '/var/lib/openshift/54e3b3f2fcf933a3060000cd/app-root/data/.nodewatch' for changes.
HttpServer up, e.g. http://localhost:8080/?doc=demo
[2015-06-12T01:10:59.787Z] HEAD 54e3b3f2fcf933a3060000cd-cben.rhcloud.com / < 127.6.9.1 Ruby
[2015-06-12T01:10:59.839Z] HEAD 54e3b3f2fcf933a3060000cd-cben.rhcloud.com / < 127.6.9.1 Ruby
[2015-06-12T01:38:48.624Z] GET 54e3b3f2fcf933a3060000cd-cben.rhcloud.com / < 127.6.9.1 curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.16.2.3 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2

...

[2015-06-12T02:23:33.164Z] GET undefined / < 10.79.191.211 undefined
[2015-06-12T02:23:35.169Z] GET undefined / < 10.79.191.211 undefined
DEBUG: Running node-supervisor with
DEBUG:   program 'server.coffee'
DEBUG:   --watch '/var/lib/openshift/54e3b3f2fcf933a3060000cd/app-root/data/.nodewatch'
DEBUG:   --ignore 'undefined'
DEBUG:   --extensions 'node|js|coffee'
DEBUG:   --exec 'coffee'
DEBUG: Starting child process with 'coffee server.coffee'
DEBUG: Watching directory '/var/lib/openshift/54e3b3f2fcf933a3060000cd/app-root/data/.nodewatch' for changes.
HttpServer up, e.g. http://localhost:8080/?doc=demo
[2015-06-12T02:41:54.084Z] GET undefined / < 10.79.191.211 undefined
[2015-06-12T02:41:56.107Z] GET undefined / < 10.79.191.211 undefined

haproxy's log could be useful but it uses some mysterious format which I have no idea how to parse as a date/time (I'm tempted to try a stardate calculator ;-). Random sample:

[WARNING] 146/045116 (52453) : Server express/gear-54e3b3f2fcf933a3060000cd-cben is UP (leaving maintenance).
[WARNING] 161/210123 (52453) : Server express/gear-54e3b3f2fcf933a3060000cd-cben is DOWN, reason: Layer4 connection problem, info: "Connection refused", check duration: 1ms. 1 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.

Those lines were probably not from the time of the big downtime but there are quiet a few of these Layer4 "Connection refused" lines.

Activity

  1. cben commented on Jun 17, 2015

    @cben
    OwnerAuthor

    I don't see much to do about this specific incident, except improve monitoring & logging.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions