On Thursday 05 January 2006 18:21, Charles Jones wrote:
Lets say you have 1000 hosts. Lets then just for fun pretend that it will only take 1 second to log into the remote hosts, run several tests, and receive the result (it would actually take a bit longer than that).
1000 seconds (hosts) / 60 (minutes) = 16.666 minutes to poll those hosts!
So then you can say oh well just have 2-3 hobbit servers doing the polling then. Now you have 3 hobbit servers to deail with, monitoring them, upgrading them, etc.
Now lets look at a *real world* example of how long it takes to ssh in and execute a command:
[hobbit at hobbit ~]$ time ssh myhost.net df -h Filesystem size used avail capacity Mounted on /dev/dsk/c5t0d0s0 30G 10G 20G 35% / /devices 0K 0K 0K 0% /devices ctfs 0K 0K 0K 0% /system/contract proc 0K 0K 0K 0% /proc mnttab 0K 0K 0K 0% /etc/mnttab swap 6.6G 1000K 6.6G 1% /etc/svc/volatile objfs 0K 0K 0K 0% /system/object fd 0K 0K 0K 0% /dev/fd swap 6.6G 16K 6.6G 1% /tmp swap 6.6G 32K 6.6G 1% /var/run /dev/md/dsk/d0 639G 116G 523G 19% /raid /dev/md/dsk/d1 807G 504G 304G 63% /raid2
*real 0m1.912s* user 0m0.022s sys 0m0.008s
Almost 2 seconds there....and just for one command.
I keep wondering how long the equivalent snmp query takes ... or in fact gathering all the data asynchronously via snmp ...
Regards, Buchan
-- Buchan Milne ISP Systems Specialist B.Eng,RHCE(803004789010797),LPIC-2(LPI000074592)