目前我正在为我们的服务器设置监控服务。我找到了一些文章,推荐使用:Netdata, prometheus and grafana
所以我想知道使用这三种方法有什么好处。任何人都可以向我解释一下,为什么推荐 prometheus 和 grafana,如果 netdata 似乎与这两者做同样的事情?
即使在 netdata-documentations 中,也有一篇关于此设置的文章: https: //learn.netdata.cloud/docs/agent/backends/prometheus/#filtering-metrics-sent-to-prometheus
这个星座有什么好处呢?
我一直在尝试下载适用于我的 gitian VM 的精确版本,以便为 Windows 编译我的加密货币。我过去已经成功完成过多次,甚至在前一周又成功完成了一次,问题是当我跑步时
bin/make-base-vm --lxc --arch amd64 --suite precise
Run Code Online (Sandbox Code Playgroud)
在 cd gitian-builder 中,它现在给我错误
Failed getting release file http://127.0.0.1:3142/archive.ubuntu.com/ubuntu/dists/precise/Release
Run Code Online (Sandbox Code Playgroud)
我访问了链接http://archive.ubuntu.com/ubuntu/dists/,但无法再看到精确的内容。我在另一个链接上找到了相同的文件: http: //archive.canonical.com/ubuntu/dists/precise/,它清楚地显示了精确的分布。我想我可以更改 gitian-builder/bin 内 make-base-vm 文件中的链接,以便它可以在内部精确运行链接,这样它就可以获取发布,但由于关键错误而无法工作。
我知道在 publix 后缀中可以有至少 2 个标签(例如test.co.example),但是否可以有 3 个或更多(例如test.co.jp.example)?我不是在问是否可以有多个域名,而只是在 URL 中的后缀(例如.com)。
如果不可能,为什么?
ProxyJump在不需要时使用有什么缺点吗?
我们在许多机器之间使用共享的 .ssh/config 文件,其中一些在 jumpbox 后面,而另一些则没有。对于位于特定跳箱后面的两台机器,仍然使用该ProxyJump选项是否有不利之处?(我猜会有难以察觉的额外延迟,但就是这样)。
现在我们的共享配置使用此设置仅ProxyJump在需要时使用:
Match Host example Exec "! nslookup $(nslookup internal.site.com | head -1 | grep -o '[0-9]\+\([.][0-9]\+\)\{3\}') | grep -o 'name = .\+site.com\.$'"
ProxyJump jumpbox
Host example
HostName example.internal.site.com
Run Code Online (Sandbox Code Playgroud)
但是,Match Exec检查有点脆弱,不一定在所有系统上都能正常工作。
我有一个多核 Kubernetes 集群,其中有多个 Pod,配置的 CPU 限制为 500 毫核:
resources:
limits:
cpu: "500m"
Run Code Online (Sandbox Code Playgroud)
在单个 Pod 中是否可以有多个线程并行运行(同时,在同一时刻)?
根据我的理解,当限制小于 1000 毫核时,pod 永远不可能有多个线程并行运行。这是对的吗?
搭建实验实验室集群,通过10G光纤连接接收数据的写入速度为本地写入速度的10%。
测试两台相同机器之间的传输速度;iperf3显示良好的内存到内存速度为9.43Gbits/s。磁盘(读取)到内存传输的速度(9.35Gbit/s):
test@rbox1:~$ iperf3 -s -B 10.0.0.21
test@rbox3:~$ iperf3 -c 10.0.0.21 -F /mnt/k8s/test.3g
Connecting to host 10.0.0.21, port 5201
Sent 9.00 GByte / 9.00 GByte (100%) of /mnt/k8s/test.3g
[ 5] 0.00-8.26 sec 9.00 GBytes 9.35 Gbits/sec
Run Code Online (Sandbox Code Playgroud)
但是发送超过 10G 的数据并写入另一台机器上的磁盘要慢一个数量级:
test@rbox1:~$ iperf3 -s 10.0.0.21 -F /tmp/foo -B 10.0.0.21
test@rbox3:~$ iperf3 -c 10.0.0.21
Connecting to host 10.0.0.21, port 5201
[ 5] local 10.0.0.23 port …Run Code Online (Sandbox Code Playgroud) 概括:
我有一个运行 kubectl port-forward 的 docker 容器,将作为 k8s 服务运行的 postgres 服务的端口 (5432) 转发到本地端口 (2223)。在 Dockerfile 中,我暴露了相关端口 2223。然后我通过发布该端口来运行容器 ( -p 2223:2223)
现在,当我尝试通过访问 postgres 时psql -h localhost -p 2223,出现以下错误:
psql: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
Run Code Online (Sandbox Code Playgroud)
但是,当我docker exec -ti对上述容器执行操作并运行上述 psql 命令时,我能够连接到 postgres。
Dockerfile 命令:
EXPOSE 2223
CMD ["bash", "-c", "kubectl -n namespace_test port-forward service/postgres-11-2 2223:5432"]
Run Code Online (Sandbox Code Playgroud)
Docker 运行命令:
docker run -it --name=k8s-conn-12 -p 2223:2223 my_image_name:latest
Run Code Online (Sandbox Code Playgroud)
docker …
在哪里可以直接连接网络磁盘而不创建 VHD 等?我想通过网络将驱动器从一台计算机直接连接到另一台计算机,例如 iSCSI,但不创建 VHD。
不能接受的:
极有可能的 Windows/Windows Server 程序
windows network-attached-storage iscsi network-share windows-server-2019
我试图理解为什么我无法apt-get update从 docker 容器内运行debian:latest或ubuntu:latest.
ping 8.8.8.8从容器内或其他地址ping google.com从容器内或其他域apt-get update如果我用以下命令启动容器就可以了--network hostapt-get updatebridge如果容器连接到默认网络或任何其他用户定义的网络且适配器设置为桥接,则不起作用apt-get update将超时:
root@66230c3e7572:/# apt update
Err:1 http://deb.debian.org/debian buster InRelease
Connection failed [IP: 199.232.138.132 80]
Err:2 http://security.debian.org/debian-security buster/updates InRelease
Connection failed [IP: 151.101.194.132 80]
Err:3 http://deb.debian.org/debian buster-updates InRelease
Connection failed [IP: 199.232.138.132 80]
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date. …Run Code Online (Sandbox Code Playgroud) 我可以发出一个命令来告诉我当前的 dovecot 配置文件集是否有效或者是否存在问题?
我刚刚更改了我的 dovecot 配置文件。在尝试重新启动服务之前,我只想进行一次快速的健全性检查,以确认我是否犯了一个大错误。
我正在寻找与以下任何一项相同的鸽舍:
nginx -t
apachectl -t
postfix check
Run Code Online (Sandbox Code Playgroud)
如果有某种方法可以检查我的鸽舍配置的有效性,请告诉我。
debian ×2
docker ×2
kubernetes ×2
ubuntu ×2
10gbethernet ×1
apt ×1
cpu-usage ×1
domain ×1
dovecot ×1
email-server ×1
fiber ×1
grafana ×1
iscsi ×1
kubectl ×1
monitoring ×1
netdata ×1
networking ×1
nvme ×1
optimization ×1
prometheus ×1
proxy ×1
psql ×1
ssh ×1
threads ×1
url ×1
windows ×1