如何在使用distcc运行构建时检查是否所有列出的服务器都在实际使用



我是第一次使用distcc,并且已经阅读了Readme。

要设置,我有三个Ubuntu服务器:主机和客户端:

根据自述,听起来我们需要在所有这些机器上安装它们。我已经完成了。https://github.com/distcc/distcc/blob/master/INSTALL

在所有三台服务器上运行命令:

sudo apt-get-install gcc make python3 python 3 dev libiberty dev

/autogen.sh./configure制作安装

他们完成了,没有任何错误。

在这三台机器上创建ssh密钥,然后将其添加到授权主机部分。执行ssh并确认他们能够在没有任何密码的情况下从主系统登录到代理系统

现在,在主服务器上,我运行了以下两个客户端:

Export DISTCC_POTENTIAL_HOSTS='localhost 172.31.33.11 172.31.37.109'

创建了一个hello world make文件:

#.DEFAULT_GOAL := generate
.PHONY: all say_hello generate clean
all: say_hello generate
say_hello:
@echo "Hello World"
generate:
@echo "Creating empty text files..."
touch file-{1..10}.txt
clean:
@echo "Cleaning up....."
rm -f *.txt

使用以下命令运行构建

make
Hello World
Creating empty text files...
touch file-{1..10}.txt
root@ip-172-31-24-96:/data/helloworls#

因此,在这里,它看起来确实如预期的那样发挥了作用。

按照文档中的规定运行命令:

pump make -j40 CC="distcc gcc" --debug
__________Using distcc-pump from /usr/local/bin
__________Found 1 available distcc servers
GNU Make 4.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating goal targets....
File 'all' does not exist.
File 'say_hello' does not exist.
Must remake target 'say_hello'.
File 'generate' does not exist.
Must remake target 'generate'.
Hello World
Creating empty text files...
touch file-{1..10}.txt
File 'all' does not exist.
File 'all' does not exist.
Must remake target 'all'.
Successfully remade target file 'all'.
__________Shutting down distcc-pump include server
root@ip-172-31-24-96:/data/helloworls# ls
Makefile  file-{1..10}.txt
root@ip-172-31-24-96:/data/helloworls#

问题:

1> How do we really know that the two client servers have been used during this build
2> Is setting the client servers same as that of the master, If no is there a difference
3> How do we see the UI distcc Monitor
4> How can i join a range of machines which does not have DistCC installed

谢谢

要监视distcc,可以在启动构建的客户端上使用distccmon-text。这将输出distcc中作业的当前状态。

要永久监视,可以使用watch -n 1 distccmon-text每秒更新一次状态。

我自己还没有使用过gui应用程序distccmon。但我看到了截图。如果您在该系统上有可用的GUI,那么这也应该是一个替代方案。

相关内容

  • 没有找到相关文章

最新更新