Go to file
Chris Piraino baad708929
Fix bug in usage metrics when multiple service instances are changed in a single transaction (#9440)
* Fix bug in usage metrics that caused a negative count to occur

There were a couple of instances were usage metrics would do the wrong
thing and result in incorrect counts, causing the count to attempt to
decrement below zero and return an error. The usage metrics did not
account for various places where a single transaction could
delete/update/add multiple service instances at once.

We also remove the error when attempting to decrement below zero, and
instead just make sure we do not accidentally underflow the unsigned
integer. This is a more graceful failure than returning an error and not
allowing a transaction to commit.

* Add changelog
2021-01-12 15:31:47 -06:00
.changelog Fix bug in usage metrics when multiple service instances are changed in a single transaction (#9440) 2021-01-12 15:31:47 -06:00
.circleci xds: Fix data race 2021-01-07 18:13:48 -05:00
.github Update pr-labeler to new NIA docs path (#9501) 2021-01-05 12:15:10 -06:00
acl
agent Fix bug in usage metrics when multiple service instances are changed in a single transaction (#9440) 2021-01-12 15:31:47 -06:00
api Merge pull request #8609 from hashicorp/dnephin/add-query-options-to-ServiceRegister 2021-01-06 18:52:49 -05:00
bench
build-support
command cli: Add consul intention list command (based on PR #6825) (#9468) 2021-01-12 21:14:31 +01:00
connect
contributing contrib: update config checklist docs 2021-01-11 14:34:09 -05:00
demo
internal/go-sso
ipaddr
lib
logging
proto
sdk
sentinel
service_os
snapshot
terraform
test Pin alpine/socat image to a version. 2021-01-06 18:01:39 -05:00
testrpc
tlsutil
types
ui ui: Rename a model attribute to not be overwritten by ember-data (#9524) 2021-01-12 09:53:21 -05:00
vendor [bugfix] Prometheus metrics without warnings 2021-01-06 13:54:05 +01:00
version changelog: add 1.9.1 entries (#9486) 2021-01-04 11:54:26 -05:00
website cli: Add consul intention list command (based on PR #6825) (#9468) 2021-01-12 21:14:31 +01:00
.dockerignore
.gitattributes
.gitignore
.golangci.yml
.hashibot.hcl
CHANGELOG.md changelog: add 1.9.1 entries (#9486) 2021-01-04 11:54:26 -05:00
GNUmakefile
INTERNALS.md
LICENSE
NOTICE.md
README.md
Vagrantfile
codecov.yml
go.mod [bugfix] Prometheus metrics without warnings 2021-01-06 13:54:05 +01:00
go.sum [bugfix] Prometheus metrics without warnings 2021-01-06 13:54:05 +01:00
main.go
main_test.go
package-lock.json

README.md

Consul CircleCI Discuss

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/Service Segmentation - Consul Connect 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 without being aware of Connect at all.

  • 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, Mac OS X, FreeBSD, Solaris, and Windows. 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://www.consul.io/docs

Contributing

Thank you for your interest in contributing! Please refer to CONTRIBUTING.md for guidance.