gong really slow

37 views
Skip to first unread message

trigger-man

unread,
Feb 10, 2014, 6:32:18 PM2/10/14
to trigge...@googlegroups.com
I was able to import rancid into netdevices. But for some reasons, gong is really slow. it takes about 45 seconds to search and login to a device. Any ideas and help would be really appreciated.

>>> len(dev)
1466


Jathan McCollum

unread,
Feb 13, 2014, 11:39:41 AM2/13/14
to trigge...@googlegroups.com
Hello again-

Can you tell I'm catching up on email?

That is SUPER slow. I don't have enough information to help you yet. 

Is it really slow when you first import NetDevices? For example...

>>> from trigger.netdevices import NetDevices()
>>> dev = NetDevices() # <= Slowness here

Sometime later (45 seconds???)

>>> len(dev)
1466

Or is it only when using "gong" to connect to devices?

Please let me know. NetDevices is usually the one part of Trigger that could take the longest depending on how you're populating it. You said, RANCID, indicating that you pointed Trigger to a router.db file. 

If you could give me some more information, I'll do my best to help you figure out the slowness.


--
You received this message because you are subscribed to the Google Groups "Trigger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trigger-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Jathan.
--

trigger-man

unread,
Feb 15, 2014, 2:33:32 PM2/15/14
to trigge...@googlegroups.com
Hi Jathan - Thanks. So importing Netdevices takes few minutes. Thats expected I would believe since I am importing devices from Rancid's router.db and there are about 1400 devices.

Once the import is complete, I go to the command prompt and I type 'gong ac11', it took about 45 seconds to come up with the 6 possible matches.Please let me know if you need more details. Really appreciate you taking time.

root@***** ~ # gong ac11
6 possible matches found for 'ac11':

Thanks
Mani

Jathan McCollum

unread,
Feb 20, 2014, 10:59:40 AM2/20/14
to trigge...@googlegroups.com
Something isn't right. There's no way it should take that long. In the context of Trigger 1400 devices is not that many.

If you could try a few things I would like to help you get to the bottom of this. After each of these, try loading NetDevices again and let me know the result.

1. Try disabling ACL support. Set WITH_ACLS=False within settings.py. I want to rule out that it's not the ACL associations feature causing slowness.

2. Copy your router.db file to a temporary location and point Trigger to it, e.g. set NETDEVICES_SOURCE=/tmp/rancid. I want to rule out that there isn't a bug in the RANCID support

Thanks!
Reply all
Reply to author
Forward
0 new messages