2014-10-14 00:46:41 +00:00
|
|
|
---
|
2020-04-07 18:55:19 +00:00
|
|
|
layout: docs
|
|
|
|
page_title: Frequently Asked Questions
|
2020-04-13 18:40:26 +00:00
|
|
|
sidebar_title: FAQ
|
2014-10-14 00:46:41 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
# Frequently Asked Questions
|
|
|
|
|
2014-10-14 01:03:39 +00:00
|
|
|
## Q: What is Checkpoint? / Does Consul call home?
|
|
|
|
|
|
|
|
Consul makes use of a HashiCorp service called [Checkpoint](http://checkpoint.hashicorp.com)
|
2014-10-20 06:26:38 +00:00
|
|
|
which is used to check for updates and critical security bulletins.
|
2020-05-12 23:36:49 +00:00
|
|
|
Only anonymous information, which cannot be used to identify the user or host,
|
|
|
|
is sent to Checkpoint. An anonymous ID is sent which helps de-duplicate warning
|
|
|
|
messages.
|
|
|
|
This anonymous ID can be disabled. In fact, using the Checkpoint service is
|
|
|
|
optional and can be disabled.
|
2014-10-14 01:03:39 +00:00
|
|
|
|
2020-04-09 23:46:54 +00:00
|
|
|
See [`disable_anonymous_signature`](/docs/agent/options#disable_anonymous_signature)
|
|
|
|
and [`disable_update_check`](/docs/agent/options#disable_update_check).
|
2014-10-14 01:03:39 +00:00
|
|
|
|
2015-03-09 17:10:22 +00:00
|
|
|
## Q: Does Consul rely on UDP Broadcast or Multicast?
|
2015-03-09 17:01:50 +00:00
|
|
|
|
2016-08-08 16:44:27 +00:00
|
|
|
Consul uses the [Serf](https://www.serf.io) gossip protocol which relies on
|
2020-05-12 23:36:49 +00:00
|
|
|
TCP and UDP unicast. Broadcast and Multicast are rarely available in a
|
|
|
|
multi-tenant or cloud network environment. For that reason, Consul and Serf
|
|
|
|
were both designed to avoid any dependence on those capabilities.
|
2015-03-09 17:01:50 +00:00
|
|
|
|
2015-03-09 18:46:59 +00:00
|
|
|
## Q: Is Consul eventually or strongly consistent?
|
|
|
|
|
2020-05-12 23:36:49 +00:00
|
|
|
Consul has two important subsystems, the service catalog and the gossip
|
|
|
|
protocol.
|
2015-03-09 18:46:59 +00:00
|
|
|
The service catalog stores all the nodes, service instances, health check data,
|
2017-04-04 16:33:22 +00:00
|
|
|
ACLs, and KV information. It is strongly consistent, and replicated
|
2020-04-09 23:46:54 +00:00
|
|
|
using the [consensus protocol](/docs/internals/consensus).
|
2015-03-09 18:46:59 +00:00
|
|
|
|
2020-04-09 23:46:54 +00:00
|
|
|
The [gossip protocol](/docs/internals/gossip) is used to track which
|
2020-05-12 23:36:49 +00:00
|
|
|
nodes are part of the cluster and to detect a node or agent failure. This
|
|
|
|
information is eventually consistent by nature. When the servers detects a
|
|
|
|
change in membership, or receive a health update, they update the service
|
|
|
|
catalog appropriately.
|
2015-03-09 18:46:59 +00:00
|
|
|
|
2020-05-12 23:36:49 +00:00
|
|
|
Because of this split, the answer to the question is subtle. Almost all client
|
|
|
|
APIs interact with the service catalog and are strongly consistent. Updates to
|
|
|
|
the catalog may come via the gossip protocol which is eventually consistent
|
|
|
|
meaning the current state of the catalog can lag behind until the state is
|
|
|
|
reconciled.
|
2015-03-09 18:46:59 +00:00
|
|
|
|
2015-08-07 00:37:48 +00:00
|
|
|
## Q: Are _failed_ or _left_ nodes ever removed?
|
2015-03-18 16:56:12 +00:00
|
|
|
|
2016-04-21 21:24:41 +00:00
|
|
|
To prevent an accumulation of dead nodes (nodes in either _failed_ or _left_
|
|
|
|
states), Consul will automatically remove dead nodes out of the catalog. This
|
|
|
|
process is called _reaping_. This is currently done on a configurable
|
2016-11-25 18:25:09 +00:00
|
|
|
interval of 72 hours. Reaping is similar to leaving, causing all associated
|
|
|
|
services to be deregistered. Changing the reap interval for aesthetic
|
2016-04-21 21:24:41 +00:00
|
|
|
reasons to trim the number of _failed_ or _left_ nodes is not advised (nodes
|
|
|
|
in the _failed_ or _left_ state do not cause any additional burden on
|
|
|
|
Consul).
|
2015-05-04 21:23:33 +00:00
|
|
|
|
|
|
|
## Q: Does Consul support delta updates for watchers or blocking queries?
|
|
|
|
|
|
|
|
Consul does not currently support sending a delta or a change only response
|
|
|
|
to a watcher or a blocking query. The API simply allows for an edge-trigger
|
|
|
|
return with the full result. A client should keep the results of their last
|
|
|
|
read and compute the delta client side.
|
|
|
|
|
|
|
|
By design, Consul offloads this to clients instead of attempting to support
|
|
|
|
the delta calculation. This avoids expensive state maintenance on the servers
|
|
|
|
as well as race conditions between data updates and watch registrations.
|
2016-07-29 17:42:30 +00:00
|
|
|
|
|
|
|
## Q: What network ports does Consul use?
|
|
|
|
|
2020-05-12 23:36:49 +00:00
|
|
|
The [Ports Used](/docs/agent/options#ports) section of the Configuration
|
|
|
|
documentation lists all ports that Consul uses.
|
2017-03-30 17:56:03 +00:00
|
|
|
|
|
|
|
## Q: Does Consul require certain user process resource limits?
|
|
|
|
|
|
|
|
There should be only a small number of open file descriptors required for a
|
|
|
|
Consul client agent. The gossip layers perform transient connections with
|
|
|
|
other nodes, each connection to the client agent (such as for a blocking
|
|
|
|
query) will open a connection, and there will typically be connections to one
|
|
|
|
of the Consul servers. A small number of file descriptors are also required
|
|
|
|
for watch handlers, health checks, log files, and so on.
|
|
|
|
|
|
|
|
For a Consul server agent, you should plan on the above requirements and
|
|
|
|
an additional incoming connection from each of the nodes in the cluster. This
|
|
|
|
should not be the common case, but in the worst case if there is a problem
|
|
|
|
with the other servers you would expect the other client agents to all
|
|
|
|
connect to a single server and so preparation for this possibility is helpful.
|
|
|
|
|
|
|
|
The default ulimits are usually sufficient for Consul, but you should closely
|
|
|
|
scrutinize your own environment's specific needs and identify the root cause
|
|
|
|
of any excessive resource utilization before arbitrarily increasing the limits.
|
2017-04-11 15:45:29 +00:00
|
|
|
|
|
|
|
## Q: What is the per-key value size limitation for Consul's key/value store?
|
|
|
|
|
2018-05-10 15:24:06 +00:00
|
|
|
The limit on a key's value size is 512KB. This is strictly enforced and an
|
2017-04-11 15:45:29 +00:00
|
|
|
HTTP 413 status will be returned to any client that attempts to store more
|
|
|
|
than that limit in a value. It should be noted that the Consul key/value store
|
|
|
|
is not designed to be used as a general purpose database. See
|
2020-04-09 23:46:54 +00:00
|
|
|
[Server Performance](/docs/install/performance) for more details.
|
2017-08-04 23:14:39 +00:00
|
|
|
|
|
|
|
## Q: What data is replicated between Consul datacenters?
|
|
|
|
|
|
|
|
In general, data is not replicated between different Consul datacenters. When a
|
2020-05-12 23:36:49 +00:00
|
|
|
request is made for a resource in another datacenter, the local Consul servers
|
|
|
|
forward an RPC request to the remote Consul servers for that resource and
|
|
|
|
return the results.
|
2017-08-04 23:14:39 +00:00
|
|
|
If the remote datacenter is not available, then those resources will also not be
|
2020-05-12 23:36:49 +00:00
|
|
|
available from that datacenter. That will not affect the requests to the local
|
2020-09-10 17:32:06 +00:00
|
|
|
datacenter. There are some special situations where a limited subset of data
|
2020-05-12 23:36:49 +00:00
|
|
|
can be replicated, such as with Consul's built-in
|
2020-09-10 17:32:06 +00:00
|
|
|
[ACL replication](https://learn.hashicorp.com/tutorials/consul/access-control-replication-multiple-datacenters)
|
2020-05-12 23:36:49 +00:00
|
|
|
capability, or external tools like
|
|
|
|
[consul-replicate](https://github.com/hashicorp/consul-replicate).
|
2020-03-30 20:43:26 +00:00
|
|
|
|
2020-04-06 20:27:35 +00:00
|
|
|
## Q: Can Consul natively handle protecting against other processes accessing Consul's memory state?
|
2020-03-30 20:43:26 +00:00
|
|
|
|
2020-05-12 23:36:49 +00:00
|
|
|
Consul does not provide built-in memory access protections, and doesn't
|
|
|
|
interact with the host system to change or manipulate
|
2020-04-06 20:27:35 +00:00
|
|
|
viewing and doesn't interact with the host system to change or manipulate
|
2020-03-30 20:43:26 +00:00
|
|
|
application security.
|
|
|
|
|
2020-05-12 23:36:49 +00:00
|
|
|
We recommend taking any precautions or remediation steps that you would
|
|
|
|
normally do for individual processes, based on your operating system.
|
2020-03-30 20:43:26 +00:00
|
|
|
|
2020-04-06 20:27:35 +00:00
|
|
|
Please see our
|
2020-04-09 23:46:54 +00:00
|
|
|
[Security Model](/docs/internals/security) for more information.
|
2020-05-12 23:36:49 +00:00
|
|
|
|
|
|
|
## Q: Are the Consul Docker Images OCI Compliant?
|
|
|
|
|
2020-09-10 17:32:06 +00:00
|
|
|
The official [Consul Docker image](https://hub.docker.com/_/consul/) uses
|
2020-05-12 23:36:49 +00:00
|
|
|
[Docker image schema](https://docs.docker.com/registry/spec/manifest-v2-2/) V2,
|
2020-09-10 17:32:06 +00:00
|
|
|
which is OCI Compliant. To check the docker images on Docker Hub, use the
|
|
|
|
command `docker manifest inspect consul` to inspect the manifest payload. The
|
2020-05-12 23:36:49 +00:00
|
|
|
`docker manifest inspect` may require you to enable experimental features to
|
|
|
|
use.
|
2020-05-11 21:24:16 +00:00
|
|
|
|
|
|
|
## What browsers are supported by the Consul UI?
|
|
|
|
|
|
|
|
Consul currently supports all 'evergreen' browsers, as they are generally on
|
|
|
|
up-to-date versions. This means we support:
|
|
|
|
|
|
|
|
- Chrome
|
|
|
|
- Firefox
|
|
|
|
- Safari
|
|
|
|
- Microsoft Edge
|
|
|
|
|
|
|
|
We do not support Internet Explorer 11 (IE 11). Consul follows a similar
|
|
|
|
alignment with Microsoft's own stance on IE 11, found on their
|
|
|
|
[support website](https://support.microsoft.com/en-us/help/17454/lifecycle-faq-internet-explorer-and-edge).
|