Forum: Cfengine Help
Subject: Unix_GetInterfaceInfo() too slow to read > 100 ip's on one interface,
possible solution?
Author: lero
Link to topic: https://cfengine.com/forum/read.php?3,17516,17516#msg-17516
Hi,
We have some servers that has more than 100 IP's on one interface (via
iproute2). For the future, we are going to use up to 900 IP's (it's a firewall).
When i run cf-agent or cf-promises, it takes about 15 minutes to scan all these
IP's.
One solution i found was to skip it. I've added this to sysinfo.c, just after
the ignore loopback statement:
if (strcmp(ifp->ifr_name,"eth2") == 0)
{
continue;
}
I saw that you guys already skip virtual network interfaces (ethX:X).. maybe
iproute2 ip interfaces should be skipped too?
Thanks in advance.
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine