diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2016-02-03 00:31:39 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2016-02-03 00:31:39 +0200 |
commit | ed4a8c11d85f9340ed6a6a7acb92f25e4bc6c654 (patch) | |
tree | f4aeff1e0417f8bab943f1fe4eadd68859dd0903 /node.d/named.node.js | |
parent | 39c8ad506dea7ed69ca5fde220bf22f7146bbc71 (diff) |
optimization for lower CPU consumption for bind collection
Diffstat (limited to 'node.d/named.node.js')
-rwxr-xr-x | node.d/named.node.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/node.d/named.node.js b/node.d/named.node.js index 154fe20aa9..77c6f1a502 100755 --- a/node.d/named.node.js +++ b/node.d/named.node.js @@ -16,12 +16,12 @@ "servers": [
{
"name": "bind1",
- "url": "http://127.0.0.1:8888/json/v1",
+ "url": "http://127.0.0.1:8888/json/v1/server",
"update_every": 1
},
{
"name": "bind2",
- "url": "http://10.1.2.3:8888/json/v1",
+ "url": "http://10.1.2.3:8888/json/v1/server",
"update_every": 2
}
]
@@ -491,7 +491,7 @@ var named = { var added = 0;
if(this.enable_autodetect === true) {
- this.serviceExecute('local', 'http://localhost:8888/json/v1', this.update_every);
+ this.serviceExecute('local', 'http://localhost:8888/json/v1/server', this.update_every);
added++;
}
|