Sean Chittenden
7af6a94edb
Factor out duplicate functions into a lib package
...
Consolidate code duplication and tests into a single lib package. Most of these functions were from various **/util.go functions that couldn't be imported due to cyclic imports. The consul/lib package is intended to be a terminal node in an import DAG and a place to stash various consul-only helper functions. Pulled in hashicorp/go-uuid instead of consolidating UUID access.
2016-01-29 16:57:45 -08:00
James Phillips
6dc151b1b9
Adds source address logging on RPC errors.
2015-12-16 14:03:03 -08:00
James Phillips
51600fab08
Gets rid of the transitional "New" suffix on state store and RPC.
2015-10-15 14:59:09 -07:00
James Phillips
6ba70be33c
Nukes old state store's connection to FSM and RPC.
2015-10-15 14:59:09 -07:00
James Phillips
30736bae5a
Completes state store for KV, sessions, tombstones, and nodes/services/checks (needs tests and integration).
2015-10-15 14:59:09 -07:00
James Phillips
009fd7d9f5
Integrates new state store for ACLs.
2015-10-15 14:59:09 -07:00
Ryan Uber
81a862d8b7
consul: initial pass at refactoring RPC using net-rpc-msgpackrpc
2015-10-13 22:15:23 -07:00
Anthony Scalisi
10e028d599
remove various typos
2015-09-11 12:29:54 -07:00
Armon Dadgar
ab3632e409
consul: lower default query time and add small stagger
2015-05-14 17:59:43 -07:00
Armon Dadgar
926b8bc7fa
consul: proactively clear timers
2015-05-14 17:42:47 -07:00
Armon Dadgar
e62ff966a3
consul: ensure blocking query cleans any lingering state
2015-05-14 17:38:42 -07:00
Armon Dadgar
6cf2efca0c
consul: thread the target DC through the RPC path
2015-05-11 13:09:19 -07:00
Armon Dadgar
b4531164e9
consul: updating for Raft API changes
2015-05-08 11:35:52 -07:00
Armon Dadgar
5d0f83d73d
consul: more telemetry on RPCs and queries
2015-05-07 17:25:12 -07:00
Armon Dadgar
f45d7900b8
consul: Optimize KV watching
2015-01-05 16:41:57 -08:00
Ali Abbas
d1b2e41680
* Fix race condition on read/write of shutdown bool variable of server and connection pool.
...
* In connection pool, there is no guarantee that .reap() cannot execute the same time as .Shutdown() is called. It also did not benefit to eval shutdown when a select is run on the shutdown channel.
* In server, same principle applies to handleConsulConn. Since we also have a shutdown channel, it makes more to use this than to loop on a bool variable.
2014-11-26 10:39:25 +01:00
Ryan Uber
a662acd794
consul: fix obscure bug when launching goroutines from for loop
2014-11-19 16:37:40 -08:00
Ryan Uber
648c7cdc8e
consul: simplify keyring operations
2014-11-19 16:36:19 -08:00
Ryan Uber
e60c909276
command/keyring: clean up tests
2014-11-19 16:36:18 -08:00
Ryan Uber
bc2b2120fa
agent: -encrypt appends to keyring if one exists
2014-11-19 16:36:01 -08:00
Ryan Uber
9556347609
consul: generalize multi-DC RPC call broadcasts
2014-11-19 16:34:18 -08:00
Ryan Uber
9056e617cb
consul: cross-dc key rotation works
2014-11-19 16:34:17 -08:00
Ryan Uber
ef2aabc544
consul: use a function for ingesting responses
2014-11-19 16:34:17 -08:00
Ryan Uber
8dec2744da
consul: refactor keyring, repeat RPC calls to all DC's
2014-11-19 16:34:17 -08:00
Armon Dadgar
541b98a926
Gofmt
2014-10-20 10:21:31 -07:00
Armon Dadgar
ce4aa7beb5
Switching to the pinned version of msgpack
2014-10-17 18:26:19 -07:00
Armon Dadgar
474e286aca
Rename shared msgpack handle
2014-06-08 14:02:42 -07:00
Andrew M Bursavich
8a3c1a9b47
reuse codec.MsgpackHandle
2014-06-07 01:13:38 -07:00
Armon Dadgar
22f548c338
consul: Provide logger to yamux
2014-05-28 16:32:25 -07:00
Armon Dadgar
6331a717ed
consul: Suppress messages about closed connections
2014-05-28 16:32:25 -07:00
Armon Dadgar
d737a2204a
consul: Pass protocol version for leader forwarding
2014-05-28 16:32:24 -07:00
Armon Dadgar
3a854b5952
consul: Store the protocol version for a server
2014-05-28 16:32:24 -07:00
Armon Dadgar
b03ead39a1
consul: Support for incoming Yamux connections
2014-05-28 16:32:24 -07:00
Armon Dadgar
37f49427e1
consul: Suppress error if connection is closed
2014-05-23 16:28:55 -07:00
Armon Dadgar
03a98ed1d7
consul: Remove RPC client tracking. Fixes #149 .
2014-05-14 17:34:24 -07:00
Armon Dadgar
686fac0e49
consul: Adding a Raft command enqueue limit
2014-05-09 19:18:06 -07:00
Armon Dadgar
4a80e73df4
consul: Drop the Raft logs size warning from 8MB to 1MB
2014-05-06 14:10:08 -07:00
Armon Dadgar
a5ab73e67d
consul: Adding a warning for large raft entries
2014-04-28 22:25:09 -07:00
Armon Dadgar
e5e97274d4
consul: Adding consistent read enforcement
2014-04-21 11:49:21 -07:00
Armon Dadgar
e706c988b8
consul: Merging BlockingQuery into QueryOptions
2014-04-21 11:31:15 -07:00
Armon Dadgar
180cc33030
consul: Use QueryMeta to simplify blockingRPC interface
2014-04-21 11:18:27 -07:00
Armon Dadgar
beeeb86a12
consul: Moving QueryMeta handling into blockingRPC
2014-04-21 11:04:52 -07:00
Armon Dadgar
a2acbe732e
consul: Adding a method to enforce consistent read
2014-04-21 10:59:46 -07:00
Armon Dadgar
afa6a1ae49
consul: Adding support for QueryMeta on all queries
2014-04-21 10:59:46 -07:00
Armon Dadgar
fa90f1cd0d
consul: Support a stale read query
2014-04-21 10:59:46 -07:00
Armon Dadgar
a9d4e2357e
consul: Switch to RPCInfo
2014-04-21 10:59:46 -07:00
Armon Dadgar
39a55953af
consul: Simplify TLS handling in RPC server
2014-04-07 15:07:00 -07:00
Armon Dadgar
f94dfa4efc
consul: Enforce TLS if VerifyIncoming is set
2014-04-07 15:06:59 -07:00
Armon Dadgar
1ab9a4ad53
consul: Enable incoming TLS connections to server
2014-04-07 15:06:59 -07:00
Armon Dadgar
889297dc99
consul: Adding telemetry
2014-02-20 15:16:26 -08:00