文章分类 -  consul基本使用

摘要:帮助信息 consul -h 列出数据中心 consul catalog datacenters 列出节点 consul catalog nodes 列出所有服务器 consul catalog services 查看调试信息 consul info 查看集群成员信息 consul members 阅读全文
posted @ 2024-04-07 17:44 羊脂玉净瓶 阅读(4) 评论(0) 推荐(0) 编辑
摘要:这里用三台机器演示 IP地址 角色 192.16.30.152 server-01 192.16.30.153 server-02 192.16.30.154 server-03 创建consul相关的文件夹,在三台机器都要创建 mkdir -p /usr/local/consul/{conf,da 阅读全文
posted @ 2023-07-04 17:27 羊脂玉净瓶 阅读(128) 评论(0) 推荐(0) 编辑
摘要:首先我们要运行consul,运行有两种模式,分别是server和client,通过下面的命令开启: consul agent -server # server运行模式 consul agent # client 运行模式 阅读全文
posted @ 2023-07-03 13:20 羊脂玉净瓶 阅读(14) 评论(0) 推荐(0) 编辑
摘要:Consul 下载地址:https://www.consul.io/downloads 参数说明:https://www.consul.io/docs/agent/options 一、介绍 Consul是HashiCorp公司推出的开源软件,通过 GO 语言编写,提供服务注册和发现、配置、多数据中心 阅读全文
posted @ 2023-06-30 14:48 羊脂玉净瓶 阅读(134) 评论(0) 推荐(0) 编辑
摘要:环境 系统版本:centos7 节点信息: 节点1:192.168.7.154 节点2:192.168.7.155 节点3:192.168.7.156 部署过程 在192.168.7.154 上执行 创建consul的目录 mkdir /data/consul/{bin,conf,data,logs 阅读全文
posted @ 2023-06-29 16:41 羊脂玉净瓶 阅读(65) 评论(0) 推荐(0) 编辑
摘要:常用端口说明 8500 http 端口,用于 http 接口和 web ui 8300 server rpc 端口,同一数据中心 consul server 之间通过该端口通信 8301 serf lan 端口,同一数据中心 consul client 通过该端口通信 8302 serf wan 端 阅读全文
posted @ 2023-03-29 15:46 羊脂玉净瓶 阅读(254) 评论(0) 推荐(0) 编辑
摘要:查看节点信息 # consul operator raft list-peers Node ID Address State Voter RaftProtocol SERVER-03 e7808603-f26e-04ee-5044-2f2b63f1dfd8 192.168.7.156:8300 le 阅读全文
posted @ 2023-03-29 15:37 羊脂玉净瓶 阅读(415) 评论(0) 推荐(0) 编辑
摘要:1.常用服务注册与发现框架常见服务发现框架 Consul、Eureka、 ZooKeeper以及Etcd ZooKeeper是这种类型的项目中历史最悠久的之一,它起源于Hadoop。它非常成熟、可靠,被许多大公司(YouTube、eBay、雅虎等)使用。其中consul并不需要专门的sdk集成到服务 阅读全文
posted @ 2023-03-29 12:12 羊脂玉净瓶 阅读(678) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示