摘要: Node接口 Node是raft应用模块在节点上的抽象,也是应用模块和算法模块交互的入口 应用模块持有Node作为算法模块的引用,通过调用Node接口的API与算法模块通信,通信方式是通过若干个Channel异步完成的。 // Node represents a node in a raft clu 阅读全文
posted @ 2024-05-03 12:40 ling_2945 阅读(47) 评论(0) 推荐(0)
摘要: 以下是一个python的数据库插入语句 self.cur.execute(''' INSERT INTO books ( url, title, product_type, price_excl_tax, price_incl_tax, availability, num_reviews, rati 阅读全文
posted @ 2024-04-16 20:32 ling_2945 阅读(15) 评论(0) 推荐(0)
摘要: etcd是什么 存储:Kubernetes集群所有的配置信息和状态数据都会被持久化存储在etcd中,包括节点信息、Pods、ReplicaSets、Services、ConfigMaps、Secrets等各类资源对象。 协调:通过Raft协议,etcd集群中的各个节点达成一致,确保任何时候集群状态的 阅读全文
posted @ 2024-04-06 08:55 ling_2945 阅读(86) 评论(0) 推荐(0)
摘要: 导读 记录一次搭建服务的成果 框架 graph TB C(Client) --> ig(ingress) ig --> np((nginx-php\nservice)) ig --> tc((tomcat\nservice)) np --> ng1(nginx) np --> ng2(nginx) 阅读全文
posted @ 2024-04-04 09:24 ling_2945 阅读(20) 评论(0) 推荐(0)
摘要: 导读 原文:The Future of Ops is Platform Engineering 作者:Charity 地址:https://charity.wtf/2022/09/30/the-future-of-ops-is-platform-engineering/ 本文为部分翻译,总结,内容用 阅读全文
posted @ 2024-04-02 17:28 ling_2945 阅读(53) 评论(0) 推荐(0)
摘要: 远程用户试图将容器服务设置成开机自启时遇到两次,解决方式是 root权限增加/etc/rc.d/rc.local的执行权限 sudo chmod +x /etc/rc.d/rc.local root权限设置该用户为启用linger会话 sudo linginctl enable-linger <用户 阅读全文
posted @ 2024-03-29 12:44 ling_2945 阅读(25) 评论(0) 推荐(0)
摘要: 导读 原文:Four Ways to Build Web Apps 作者:Tom Hummel 地址:https://tomhummel.com/posts/four-web-apps/ 本文为部分翻译加精简,内容用作学习交流 1.Hugo静态框架 + 渐进式网页应用程序 尽管JAM Stack技术 阅读全文
posted @ 2024-03-26 17:21 ling_2945 阅读(77) 评论(0) 推荐(0)
摘要: 网络分区问题 网络分区导致选举永远无法达成共识,选举不断超时,任期号将不断增加 为避免这个问题,candidate会探测网络环境以免发起无意义的竞选 集群变更 leader收到配置变更要求,会广播配置变更日志,日志包括新结点和老节点,在收到老节点的多数派认可后,leader后提交该请求 在处理配置变 阅读全文
posted @ 2024-03-24 13:00 ling_2945 阅读(131) 评论(0) 推荐(0)
摘要: 读写流程(etcd graph TB client(client/etcdCMD\n客户端) <-- request/response --> API(API\n接口) API <--> log(WAL\n预写日志) log -- input --> store(MVCC key value sto 阅读全文
posted @ 2024-03-24 12:34 ling_2945 阅读(45) 评论(0) 推荐(0)
摘要: 导读: 参考:Exploring Podman: A More Secure Docker Alternative 作者:Marin Bezhanov 网址:https://betterstack.com/community/guides/scaling-docker/podman-vs-docke 阅读全文
posted @ 2024-03-23 20:07 ling_2945 阅读(742) 评论(0) 推荐(0)