Skip to content

Commit

Permalink
hotfix-remove-docker-timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
anandkumarpatel committed Dec 29, 2014
1 parent d73c55e commit fd3f518
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion configs/.env
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ HASHIDS_LENGTH=6
DOCKER_IMAGE_BUILDER_NAME="runnable/image-builder"
DOCKER_IMAGE_BUILDER_VERSION="d1.3.1-v1.4.3"
DOCKER_IMAGE_BUILDER_CACHE="/tmp"
DOCKER_TIMEOUT=5000
BUILD_END_TIMEOUT=100
DATADOG_HOST="localhost"
DATADOG_PORT=8125
Expand Down
3 changes: 1 addition & 2 deletions lib/models/apis/docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ function Docker (dockerHost) {
this.port = parsed.port || 4243;
this.docker = dogerode(new Dockerode({
host: this.dockerHost,
port: this.port,
timeout: process.env.DOCKER_TIMEOUT
port: this.port
}), {
service: 'api',
host: process.env.DATADOG_HOST,
Expand Down
2 changes: 1 addition & 1 deletion lib/models/datadog/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function captureSocketCount (req, res, next) {

exec('lsof -p ' + process.pid + ' | wc -l', function (err, stdout) {
if (err) { return; }
client.gauge('api.openFiles', parseInt(stdout), 1, ['target:'+key]);
client.gauge('api.openFiles', parseInt(stdout), 1, ['pid:'+process.pid]);
});

next();
Expand Down

0 comments on commit fd3f518

Please sign in to comment.