Skip to content

Commit fd3f518

Browse files
hotfix-remove-docker-timeout
1 parent d73c55e commit fd3f518

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

configs/.env

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ HASHIDS_LENGTH=6
2020
DOCKER_IMAGE_BUILDER_NAME="runnable/image-builder"
2121
DOCKER_IMAGE_BUILDER_VERSION="d1.3.1-v1.4.3"
2222
DOCKER_IMAGE_BUILDER_CACHE="/tmp"
23-
DOCKER_TIMEOUT=5000
2423
BUILD_END_TIMEOUT=100
2524
DATADOG_HOST="localhost"
2625
DATADOG_PORT=8125

lib/models/apis/docker.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ function Docker (dockerHost) {
2626
this.port = parsed.port || 4243;
2727
this.docker = dogerode(new Dockerode({
2828
host: this.dockerHost,
29-
port: this.port,
30-
timeout: process.env.DOCKER_TIMEOUT
29+
port: this.port
3130
}), {
3231
service: 'api',
3332
host: process.env.DATADOG_HOST,

lib/models/datadog/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function captureSocketCount (req, res, next) {
3636

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

4242
next();

0 commit comments

Comments
 (0)