User Tools

Site Tools


distcc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
distcc [2009/10/21 11:42] suapapadistcc [2013/08/03 05:04] (current) – external edit 127.0.0.1
Line 14: Line 14:
 ... ...
 </code> </code>
 +분산빌드를 시작하는 peer는 distccd 데몬을 시작할 필요 없음
  
 ===== 분산 빌드를 시작 하는 주 머신 == ===== 분산 빌드를 시작 하는 주 머신 ==
Line 22: Line 23:
 또는 DISTCC_HOSTS로 익스포트 또는 DISTCC_HOSTS로 익스포트
 <code bash> <code bash>
-DISTCC_HOSTS = "192.168.10.2/3 localhost/2 another_serv/n"+DISTCC_HOSTS="192.168.10.2/3 localhost/2 another_serv/n" 
 +</code> 
 +===== distcc서버들이 살아있나 검사 ===== 
 +<code python> 
 +#!/usr/bin/python 
 + 
 +from socket import * 
 +def isDistccSrvOK(addr, port = 3632): 
 +    try: 
 +        sok = socket(AF_INET, SOCK_STREAM) 
 +        sok.connect((addr, port)) 
 +    except: 
 +        return False 
 +    sok.close() 
 +    return True 
 + 
 +if __name__ == '__main__': 
 +    import sys 
 +    print isDistccSrvOK(sys.argv[1]) 
 </code> </code>
  
Line 43: Line 63:
   *[[http://distcc.samba.org/|discc]] old official homepage   *[[http://distcc.samba.org/|discc]] old official homepage
   *[[http://www.ibm.com/developerworks/kr/library/l-distcc.html|distcc로 컴파일 시간 줄이기]] in IBM DW   *[[http://www.ibm.com/developerworks/kr/library/l-distcc.html|distcc로 컴파일 시간 줄이기]] in IBM DW
- 
distcc.1256125329.txt.gz · Last modified: 2013/08/03 05:04 (external edit)