[distcc] distcc at large sites. Patch to get hosts file from
dank at kegel.com
Sat Sep 3 14:04:47 GMT 2005
I'm looking at what it takes to deploy distcc in
large organizations that have multiple sites
(e.g. a Los Angeles office and a New York office)
with all workstations configured identically,
but with different compile clusters for each site.
You can't put the hosts list in /etc/distcc/hosts, because
each of the sites needs a different host list.
Possible solution: assuming the sites are
distinguishable by looking at the DNS domain,
have distcc look in /etc/distcc/$dnsdomain/hosts
for the hosts file.
Here's a proof-of-concept patch, including doc,
that enables this feature:
Comments, anyone? Seem useful to any other large sites out there?
It seems the recommended way to retrieve the DNS domain
is by calling gethostname(), then gethostbyname($hostname),
then scanning forward past the first dot.
distcc already calls gethostbyname() once, so it
relies on DNS working well. How bad is it to have
it call gethostbyname() a second time?
Possibly bad enough that this behavior should be off
by default, and enabled at configure time.)
Trying to get a job as a c++ developer? See http://kegel.com/academy/getting-hired.html
More information about the distcc