Newsgroups: comp.sys.apollo Path: utzoo!utgpu!cunews!bnrgate!bwdls61!bwdla54!tonyf From: tonyf@bnr.ca (Tony Farrow) Subject: Re: reducing the delay between edrgy and getpwuid() etc ... Message-ID: <1991Feb20.211014.5823@bwdls61.bnr.ca> Keywords: edrgy delay Sender: usenet@bwdls61.bnr.ca (Use Net) Reply-To: tonyf@bnr.ca (Tony Farrow) Organization: bnr References: <1093@usage.csd.unsw.oz.au> <384@camdev.comm.mot.com?> <1991Feb20.185751.22334@alchemy.chem.utoronto.ca> Date: Wed, 20 Feb 1991 21:10:14 GMT We have experienced this problem, but have had to use greater delays in the timing. #define RegistryRetry 10 #define RegistrySleep 20 /* Loop til user has been added to the Registry or the RetryLimit is reached for (i = 0; ((!add_usr_rgy_ok(dir)) && (i < RegistryRetry)); i++) { call_registry(batchfile); /* system call with a shell script */ fprintf(logfd,"[SYS_ADMIN] add_usr_rgy: Sleeping waiting for ... sleep(RegistrySleep * i); } There has been an application written by the Specials Group (sp?) at APOLLO to provide a NIS(YP)/Registry interface where updates from flat NIS files are updated into the Registry. I assume that this application is using a registry API. Our scheme here seems to work with ~180 node networks with about 10 registry slaves. regards, tony -- *--------------------------+----------------------------------------* | Tony Farrow | NetNorth/BITNET: TONYF@BNR.CA | | Internet Systems | | | Bell-Northern Research | UUCP: ...uunet!bnrgate!bwdla54!tonyf | | P.O. Box 3511, Station C | Phone: (613)763-4903 ESN: 393-4903 | | Ottawa, Canada K1Y 4H7 | FAX: (613)763-3283 ESN: 393-3283 | *--------------------------+----------------------------------------*