From 4eab96336f582c2c190d4ec8ef30133e96f6d6cf Mon Sep 17 00:00:00 2001 From: devicenull Date: Wed, 11 Jan 2017 14:36:12 -0500 Subject: Add suggestion to set `ip` variable in CSV reader We have around ~1000 nodes, and oxidized was taking 30s to do the initial config load. After adding the 'ip' variable to our CSV, load time dropped to less than 1 second. --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c64a270..fe58322 100644 --- a/README.md +++ b/README.md @@ -409,7 +409,7 @@ vars: ### Source: CSV -One line per device, colon seperated. +One line per device, colon seperated. If `ip` isn't present, a DNS lookup will be done against `name`. For large installations, setting `ip` will dramatically reduce startup time. ``` source: @@ -419,11 +419,12 @@ source: delimiter: !ruby/regexp /:/ map: name: 0 - model: 1 - username: 2 - password: 3 + ip: 1 + model: 2 + username: 3 + password: 4 vars_map: - enable: 4 + enable: 5 ``` ### SSH Proxy Command -- cgit v1.2.1