Description of problem: The ypbind manual page says that it checks the current server every 20s to confirm it is up, and also pings all configured servers every 15 minutes to check on which is currently the fastest to respond. In fact it pings the servers every minute which may cause ypbind to flip the servers very often. Version-Release number of selected component (if applicable): ypbind-1.19-12 How reproducible: Always Steps to Reproduce: 1. configure ypbind to try to contact more servers, i.e. add two servers to /etc/yp.conf (one of them must be reachable): ypserver 192.168.1.1 ypserver 192.168.1.2 2. start ypbind in the debug mode ypbind -debug 3. it logs out the pings of the servers Actual results: The "Check new for fastest server." logs appear every minute: Expected results: The "Check new for fastest server" logs appear every 15 minutes (as documented) Additional info: This seems to be caused by the ypbind-mt-1.19-log-binds.patch which contains the following chunk: @@ -1031,7 +1067,8 @@ test_bindings (void *param __attribute__ pthread_exit (&success); lastcheck += ping_interval; - if (lastcheck >= 900) /* 900 = 15min. */ + //if (lastcheck >= 900) /* 900 = 15min. */ + if (lastcheck >= 60) /* 900 = 15min. */ At the first glance it looks like this has been added for the debugging purposes to test the patch for the bug #198689. We should revert this part or explain why does the interval have to be shortened this much and fix the documentation.
Correct, it seems it was added for debugging purposes. The limit should be set back to 900.
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux.
This request was erroneously denied for the current release of Red Hat Enterprise Linux. The error has been fixed and this request has been re-proposed for the current release.
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Each NIS client can bind to different NIS servers, but can only be bound to one server at a time. To maintain its connection to a server, an NIS client checks connection to an active server every 20 seconds and once in a while tries to find the fastest available server. Previously, clients searched for the fastest server every minute, which sometimes caused heavy traffic and response delays. With this update, clients search for the fastest server every 15 minutes, preventing this bug.
just a note, with RHEL5.8-SERVER-20111030.0 BETA 1.0 - ypbind-1.19-12.el5_6.1 this fails our regression testing, it seems that ypbind doesn't do the checks at all (IOW, the debug log does not contain any single occurence of "Checking for new fastest server.")
(In reply to comment #20) > just a note, with RHEL5.8-SERVER-20111030.0 BETA 1.0 - ypbind-1.19-12.el5_6.1 > this fails our regression testing, it seems that ypbind doesn't do the checks > at all (IOW, the debug log does not contain any single occurence of "Checking > for new fastest server.") seems like misconfiguration which wasn't discovered before thanks to different lab environment test updated: [kvolny@kvolny bz594668-ypbind-probes-for-the-fastest-server-too-often]$ cvs diff -r 1.9 runtest.sh Index: runtest.sh =================================================================== RCS file: /cvs/dist/tests/ypbind/Regression/bz594668-ypbind-probes-for-the-fastest-server-too-often/runtest.sh,v retrieving revision 1.9 retrieving revision 1.10 diff -r1.9 -r1.10 37a38 > rlFileBackup /etc/yp.conf 42a44 > echo 'domain AZOR server 1.2.3.4' >> /etc/yp.conf 73a76 > rlFileRestore