v14.0.10: Status Example and Fingerprints

9 views
Skip to first unread message

Evan Tahler

unread,
Jul 22, 2016, 4:37:27 PM7/22/16
to actionHero.js
https://github.com/evantahler/actionhero/releases/tag/v14.0.10

Fingerprints

  • Now every connection type/server will default to connection.fingerprint === connection.idunless otherwise specified (AKA: The Web Server). This will ensure that authentication schemes you build should work for all server types.
  • by @evantahler via #900

Status Action

  • The example status action which will ship with a newly generated actionhero project has been enhanced to report on memory consumption, requeue queue length, and the node.js process' event loop delay.
  • This status action is likely not to be appropriate for all deployments, but should serve a good example.
> curl "http:// localhost:8080/api/status"

{
  "nodeStatus": "Node Healthy",
  "problems": [],
  "id": "10.0.1.34",
  "actionheroVersion": "14.0.10",
  "uptime": 18863,
  "name": "actionhero",
  "description": "actionhero.js is a multi-transport API Server with integrated cluster capabilities and delayed tasks",
  "version": "14.0.10",
  "consumedMemoryMB": 32.9,
  "eventLoopDelay": 0.009,
  "resqueTotalQueueLength": 1,
  "serverInformation": {
    "serverName": "actionhero",
    "apiVersion": "14.0.10",
    "requestDuration": 29,
    "currentTime": 1469219570931
  },
  "requesterInformation": {
    "id": "ff9a4d458b08c3f0488ac7ddba77f239bc56e824-4691655f-cc87-4504-baa1-04e9aa13117d",
    "fingerprint": "ff9a4d458b08c3f0488ac7ddba77f239bc56e824",
    "remoteIP": "127.0.0.1",
    "receivedParams": {
      "action": "status",
      "apiVersion": 1
    }
  }
}

Packages

  • should updated to version ^10.0.0

Bugs

  • During shutdown/reboot actionhero would crash if the resque queue was unable to connect (#894)
Reply all
Reply to author
Forward
0 new messages