pandastrike / orca

Distributed load testing framework
21 stars 3 forks source link

Log what the Orca node is failing to connect to #1

Closed lancelakey closed 11 years ago

lancelakey commented 11 years ago
[root@ip]# /usr/local/orca/bin/node -c /etc/orca/environment.cson -n test
Orca node running, waiting for announcements on 'orca:test'
Installing orca-test ...
npm install http://github.com/foo/foo-test/tarball/master
Error: connect ECONNREFUSED

In this case the Orca node was trying to connect to api.example.com I like that we're logging ECONNREFUSED I think it would be nice to additionally log what specifically the Orca node is failing to connect to, so that upon log inspection I can hopefully more quickly know if the connection failure is Redis, Mongo, Orca leader, the target being tested, etc.

automatthew commented 11 years ago

This is an issue with the test package's error handling, not Orca per se. Orca itself has, by design, no idea what work the test package is performing.

For this particular test, we can add logging to the setup phase to indicate what URL is being used for API discovery.