consul README

The project's README from github.com/hashicorp/consul. As one markdown file: README.md.

Consul logo Consul

License: BUSL-1.1 Docker Pulls Go Report Card Coverage

Consul is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure.

Consul provides several key features:

Consul runs on Linux, macOS, FreeBSD, Solaris, and Windows and includes an optional browser based UI. A commercial version called Consul Enterprise is also available.

Please note: We take Consul's security and our users' trust very seriously. If you believe you have found a security issue in Consul, please responsibly disclose by contacting us at [email protected].

Quick Start

A few quick start guides are available on the Consul website:

Documentation

Full, comprehensive documentation is available on the Consul website: https://developer.hashicorp.com/consul/docs

Contributing

Thank you for your interest in contributing! Please refer to CONTRIBUTING.md for guidance. For contributions specifically to the browser based UI, please refer to the UI's README.md for guidance.

consul (hashicorp/consul)

Searching Database…

30.1K ·GitHub
这是什么?Consul 是一个分布式、高可用、面向数据中心的解决方案,用于在动态的分布式基础设施中连接和配置应用程序。它天生具备数据中心感知能力,无需复杂配置即可支持任意数量的区域。
那它是我导入代码里的库,还是要部署的服务?是要部署的服务。Consul 以分布式系统的形式运行在 Linux、macOS、FreeBSD、Solaris 和 Windows 上,自带一个可选的浏览器界面,应用程序通过 DNS 和 HTTP 接口与它通信。
我怎么把它跑起来——需要先装 Kubernetes 吗?不用,Kubernetes 是可选的。Consul 官网提供了独立二进制安装、Minikube、Kind、完整 Kubernetes 安装以及部署 HCP Consul 的快速入门指南,还有完整的文档。
各个服务实际上是怎么通过它互相找到对方的?服务会把自己注册到 Consul,其他服务通过 DNS 或 HTTP 接口来发现它们。SaaS 提供商之类的外部服务也可以注册进来,这样所有东西都在同一个服务发现层里。
它能保证我各服务之间的流量安全吗?可以。Consul Service Mesh 通过自动 TLS 加密和基于身份的授权实现安全的服务间通信。应用程序可以使用 sidecar 代理(包括透明代理模式)来处理入站和出站的 TLS,API Gateway 则通过流量和授权策略管理外部访问。
如果我的某个服务挂了会怎样?健康检查会迅速提醒运维人员集群里出了问题。由于它与服务发现集成在一起,Consul 会停止向不健康的主机转发流量,并启用服务级别的熔断机制。
我可以用它来存放应用程序的配置吗?可以。动态应用配置(Dynamic App Configuration)是一个 HTTP API,用于在 Consul 中存储带索引的对象——常用于配置参数和应用程序元数据。
What are similar projects?istio, linkerd2, nomad, etcd, workflow, coredns, thanos, zuul
Creator
hashicorp
Size
500.8 MB
Stars
30.1K
Age
12y
Commits · 90 Days