Skip to content

Commit

Permalink
k8s has smaller rescan interval
Browse files Browse the repository at this point in the history
  • Loading branch information
leeliu committed Mar 27, 2017
1 parent d09df2b commit b9e9ffc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ checkElevated()
if (process.env.LOGDNA_PLATFORM) {
config.platform = process.env.LOGDNA_PLATFORM;
config.tags = config.tags ? config.tags + ',' + config.platform : config.platform;

if (~config.platform.indexOf('k8s')) {
config.RESCAN_INTERVAL = config.RESCAN_INTERVAL_K8S;
}
}

return distro()
Expand Down
1 change: 1 addition & 0 deletions lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.exports = {
AUTHERROR_DELAY: 60000, // 1 min
AUTHFAIL_DELAY: 3600000, // 1 hr
RESCAN_INTERVAL: 60000, // 1 min
RESCAN_INTERVAL_K8S: 5000, // 5 sec
FLUSH_INTERVAL: 250,
FLUSH_LIMIT: 5000,
BUF_LIMIT: 10000,
Expand Down

0 comments on commit b9e9ffc

Please sign in to comment.