Dear Mark, I'm not entirely familiar with how the file descriptors are being allocated in cfexecd. But I'll tell you roughly what is done in the cfagent.conf. I can't post the exact configuration for security reasons.
The major work that I configure to run daily is copying a tree of files from a master running cfservd (Hr06.Min00_05 - UTC). That is not very large in size in terms of MB but there is indeed a large volume of files in there each pretty small in size. I also have some tasks configured to run to check existence of some important symlinks and check whether some aged files exist in certain preset locations and critical processes running (starting if not found). That is run every 30 minutes. I will also pull /var/cfengine/inputs from the master every 30 minutes, although the config have been pretty much unchanged for a few months already. That is a small tree with a small no. of files. FYI, I got the first MAXFD error log about 5 hours after I restarted cfexecd. Regards, Bernard Chan. 於 一,2008-06-16 於 08:12 +0200,Mark Burgess 提到: > The thing that makes me ask is that this message has come much more > quickly than I would have expected after upgrade. I am suprised you have > managed to fill up 1000 file descriptors already. Have you really had > 1000 runs of cfexecd already? > > > > Bernard Chan wrote: > > Dear Mark, > > > > I'm certain that the old processes must be killed and restarted. That is > > because the servers needed to be rebooted (our site setup puts all > > of /usr in SquashFS and as a read-only FS to update it would require a > > system reboot). That will have cfexecd, cfservd and cfagent everything > > freshly started from the SquashFS. /var/log/messages also show that the > > system has already been restarted. > > > > Because the server itself is for production use, I have instructed > > teammate to downgrade to v2.2.2 that was previously running fine. > > > > Regards, > > Bernard Chan. > > > > 於 一,2008-06-16 於 07:20 +0200,Mark Burgess 提到: > >> Hi Bernard, > >> > >> perhaps a silly question, but are you absolutely sure that the version > >> that is being run is 2.2.7? Have you killed any old processes? > >> > >> Mark > >> > >> Bernard Chan wrote: > >>> Dear Mark and everybody on the list, > >>> > >>> I have upgraded our v2.2.6 systems to v2.2.7 but still got the MAXFD > >>> errors. Would anyone help? > >>> > >>> I found these in /var/log/messages. > >>> > >>> Jun 16 00:30:47 asterisk102-32bit cfexecd[3361]: Couldn't open pipe to > >>> command /var/cfengine/bin/cfagent -Dfrom_cfexecd:scheduled_run > >>> Jun 16 00:30:47 asterisk102-32bit cfexecd[3361]: cfpopen: Illegal seek > >>> Jun 16 01:00:47 asterisk102-32bit cfexecd[3361]: File descriptor 145 of > >>> child 30069 higher than MAXFD, check for defunct children > >>> Jun 16 01:00:47 asterisk102-32bit cfexecd[3361]: Couldn't open pipe to > >>> command /var/cfengine/bin/cfagent -Dfrom_cfexecd:scheduled_run > >>> Jun 16 01:00:47 asterisk102-32bit cfexecd[3361]: cfpopen: Illegal seek > >>> Jun 16 01:30:48 asterisk102-32bit cfexecd[3361]: File descriptor 146 of > >>> child 31065 higher than MAXFD, check for defunct children > >>> Jun 16 01:30:48 asterisk102-32bit cfexecd[3361]: Couldn't open pipe to > >>> command /var/cfengine/bin/cfagent -Dfrom_cfexecd:scheduled_run > >>> Jun 16 01:30:48 asterisk102-32bit cfexecd[3361]: cfpopen: Illegal seek > >>> Jun 16 02:00:48 asterisk102-32bit cfexecd[3361]: File descriptor 147 of > >>> child 31994 higher than MAXFD, check for defunct children > >>> Jun 16 02:00:48 asterisk102-32bit cfexecd[3361]: Couldn't open pipe to > >>> command /var/cfengine/bin/cfagent -Dfrom_cfexecd:scheduled_run > >>> Jun 16 02:00:48 asterisk102-32bit cfexecd[3361]: cfpopen: Illegal seek > >>> > >>> and found the defunct children in ps -efww. > >>> > >>> The system being deployed is Linux i686. > >>> > >>> Regards, > >>> Bernard Chan. > >>> > >>> 於 三,2008-06-11 於 18:55 +0200,Mark Burgess 提到: > >>>> This is a minor bugfix release with no new features. It corrects a > >>>> threading error in cfexecd which caused hanging file descriptors. > >>>> > >>>> MD5 (cfengine-2.2.7.tar.gz)= 8ee6d6d58ba6eca649c199c6c7074a67 > >>>> SHA1(cfengine-2.2.7.tar.gz)= c96fd0c824a1b25fc1fd4720663cb1da89ad6025 > >>>> > >>>> The aim is that this version should remain stable for the foreseeable > >>>> future. Hopefully the next release will be 3.0.0 > >>>> > >>> _______________________________________________ > >>> Bug-cfengine mailing list > >>> [email protected] > >>> https://cfengine.org/mailman/listinfo/bug-cfengine > > > > _______________________________________________ > > Bug-cfengine mailing list > > [email protected] > > https://cfengine.org/mailman/listinfo/bug-cfengine _______________________________________________ Bug-cfengine mailing list [email protected] https://cfengine.org/mailman/listinfo/bug-cfengine
