>>> I would like to be able to limit the -jN when there is no distcc host >>> available or when compiling c++ code, otherwise my poor laptop is dead with >>> -j5 compiling pwlib when the network is down.... >> As far as I can tell distcc isn't smart enough for dynamic load balancing. >> One could hack portage to "test" each server in the distcc host list and >> remove missing servers for each run - doesn't look elegant to me. > dn > Yes, might be a solution, even if not elegant. I am thinking also of > automating distcc configuration (i.e. no need to run --set-hosts) and one > idea is to use DNS with some TXT record, but that is just an idea - no > patching is done yet.
you may be interested in the SRV DNS record, take a look at http://www.dns-sd.org/ServiceTypes.html -- gentoo-dev@gentoo.org mailing list