概述 iSCSI 是比较常见的网络存储协议,很多容器的存储方案都有使用 iSCSI,Longhorn 就是基于 iSCSI 构建的块存储方案,下面会分别从 iSCSI 和 Longhorn 的角度相
engine 的进程状况 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 root@instance-manager-e-01f96248:/tmp# pstree -a -n -u tini -- engine-manager --debug daemon --listen 0.0.0.0:8500 `-longhorn-instan --debug daemon --listen 0.0.0.0:8500 |-tgtd -f | `-108*[{tgtd}] |-tee /var/log/tgtd.log |-27*[{longhorn-instan}] |-longhorn controller pvc-29a9e2af-d804-41e9-8eaf-566d272aa0cd --frontendtgt-blockde | `-24*[{longhorn}] |-longhorn controller pvc-394ae54e-e59b-41df-b19f-c5fdb87df707 --frontendtgt-blockde | `-33*[{longhorn}] |-longhorn controller pvc-fd29a9be-83d4-4f6e-b9a5-2e88879818cc --frontendtgt-blockde | `-31*[{longhorn}] |-longhorn controller pvc-e5abfb38-fb17-46a3-b4b7-c3f01006f7b2
概述 Longhorn 是一个容器集群的分布式块存储方案。按照默认的部署方式,Longhorn 的组件会部署到所有节点,万一整个 Kubernetes 集群中,只有少数节点是符合做存
概述 longhorn-csi-plugin 是 Longhorn 的重要组件,关于 CSI 卷的操作都包含在相关的代码中。 代码分析 从 longhorn-csi-plugin 的定义中找到原来 longhorn-csi-plugin 的代码主要也是写在了 longhorn-manager 里。 1 2 3 4 5 6 7 8 9 10 11 12 13
概述 其实标准库 log 包只有短短三百多行代码,非常适合拿来分析。 代码分析 首先,这是 log 包的一些引用的标准库,包括 fmt, io, os 等输出的包,也包括像 runtime 和 sync 这些
概述 本文主要是根据 Modules 的翻译和实践操作。 Go Modules 是从 Go 1.11 开始,就引入了依赖管理工具,并在最近发布的 Go 1.14 开始稳定了,可以用于生产环境。Go 官方鼓励大