Consul is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure.
 
 
 
 
 
 
Go to file
Derek Menteer 04edace1de
Fix issue with streaming service health watches. (#17775)
Fix issue with streaming service health watches.

This commit fixes an issue where the health streams were unaware of service
export changes. Whenever an exported-services config entry is modified, it is
effectively an ACL change.

The bug would be triggered by the following situation:

- no services are exported
- an upstream watch to service X is spawned
- the streaming backend filters out data for service X (due to lack of exports)
- service X is finally exported

In the situation above, the streaming backend does not trigger a refresh of its
data.  This means that any events that were supposed to have been received prior
to the export are NOT backfilled, and the watches never see service X spawning.

We currently have decided to not trigger a stream refresh in this situation due
to the potential for a thundering herd effect (touching exports would cause a
re-fetch of all watches for that partition, potentially).  Therefore, a local
blocking-query approach was added by this commit for agentless.

It's also worth noting that the streaming subscription is currently bypassed
most of the time with agentful, because proxycfg has a `req.Source.Node != ""`
which prevents the `streamingEnabled` check from passing.  This means that while
agents should technically have this same issue, they don't experience it with
mesh health watches.

Note that this is a temporary fix that solves the issue for proxycfg, but not
service-discovery use cases.
2023-06-15 12:46:58 -05:00
.changelog Fix issue with streaming service health watches. (#17775) 2023-06-15 12:46:58 -05:00
.github Bump atlassian/gajira-transition from 3.0.0 to 3.0.1 (#17741) 2023-06-14 17:39:48 +00:00
.release
acl
agent Fix issue with streaming service health watches. (#17775) 2023-06-15 12:46:58 -05:00
api [NET-3865] [Supportability] Additional Information in the output of 'consul operator raft list-peers' (#17582) 2023-06-14 15:12:50 +00:00
bench
build-support
command [NET-3865] [Supportability] Additional Information in the output of 'consul operator raft list-peers' (#17582) 2023-06-14 15:12:50 +00:00
connect
contributing
docs
envoyextensions
grafana
internal
ipaddr
lib
logging
proto
proto-public
sdk
sentinel
service_os
snapshot
test
testrpc
tlsutil
tools/internal-grpc-proxy
troubleshoot
types
ui
version
website docs - remove use of consul leave during upgrade instructions (#17758) 2023-06-15 11:06:23 -06:00
.copywrite.hcl
.dockerignore
.gitignore
.golangci.yml
CHANGELOG.md Post 1.16.0-rc1 updates (#17663) 2023-06-12 14:28:51 -04:00
Dockerfile Bump Alpine to 3.18 (#17719) 2023-06-14 01:02:05 +00:00
GNUmakefile Add generic experiments configuration and use it to enable catalog v2 resources (#17604) 2023-06-12 11:32:43 -04:00
LICENSE
NOTICE.md
README.md
buf.work.yaml
fixup_acl_move.sh
go.mod Post 1.16.0-rc1 updates (#17663) 2023-06-12 14:28:51 -04:00
go.sum
main.go

README.md

Consul logo Consul

Docker Pulls Go Report Card

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:

  • Multi-Datacenter - Consul is built to be datacenter aware, and can support any number of regions without complex configuration.

  • Service Mesh - Consul Service Mesh enables secure service-to-service communication with automatic TLS encryption and identity-based authorization. Applications can use sidecar proxies in a service mesh configuration to establish TLS connections for inbound and outbound connections with Transparent Proxy.

  • Service Discovery - Consul makes it simple for services to register themselves and to discover other services via a DNS or HTTP interface. External services such as SaaS providers can be registered as well.

  • Health Checking - Health Checking enables Consul to quickly alert operators about any issues in a cluster. The integration with service discovery prevents routing traffic to unhealthy hosts and enables service level circuit breakers.

  • Key/Value Storage - A flexible key/value store enables storing dynamic configuration, feature flagging, coordination, leader election and more. The simple HTTP API makes it easy to use anywhere.

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 security@hashicorp.com.

Quick Start

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

Documentation

Full, comprehensive documentation is available on the Consul website: https://consul.io/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.