Commit graph

1703 commits

Author SHA1 Message Date
Ryan Breen d415219cd5 Test that staggered checks run within the defined interval. 2014-12-17 22:39:11 -05:00
Ryan Breen 3b77bb7682 Well, that sure is cleaner. 2014-12-17 22:24:41 -05:00
Ryan Breen 3cb88d0a4f Add a randomized start before running CheckMonitors. 2014-12-17 21:44:12 -05:00
Armon Dadgar fd10282e4d Merge pull request #543 from lyrixx/patch-2
[DOC] Rework downloads_tools and add PHP SDK
2014-12-16 21:59:30 -08:00
Ryan Uber c7e1a3cb9e Merge pull request #542 from sequenceiq/add-rpc-addr-env-var
Add default rpc address configuration option as CONSUL_RPC_ADDR env vari...
2014-12-16 16:36:49 -08:00
lalyos 3823a931c6 Add default rpc address configuration option as CONSUL_RPC_ADDR env variable
Similar as in serf: https://github.com/hashicorp/serf/pull/210
2014-12-16 12:18:34 +01:00
Grégoire Pineau b755a44238 [DOC] Rework downloads_tools and add PHP SDK 2014-12-16 11:27:45 +01:00
Seth Vargo 206528617f Merge pull request #541 from carlanton/website-helios-consul
Add helios-consul to community tools page
2014-12-15 10:59:24 -05:00
Anton Lindström 4755684acc Add helios-consul to community tools page 2014-12-15 12:47:57 +01:00
Armon Dadgar 0b6074b0d1 Merge pull request #536 from awesomenix/master
Add Build.bat for building on Windows 32bit or 64bit
2014-12-14 17:42:42 -08:00
awesomenix 174a4cffc2 Merge remote-tracking branch 'upstream/master' 2014-12-13 12:17:02 -08:00
awesomenix c496f4e04f Make modulename param so build.bat can be generalized and used for any go project 2014-12-13 12:11:41 -08:00
awesomenix 9561634823 Add missing switch -u, which updates packages 2014-12-13 11:58:54 -08:00
awesomenix ea0cc35747 Add Instructions on Downloading Mingw 64bit for Building memdb 2014-12-13 10:46:43 -08:00
Armon Dadgar d8c65aabee consul: Minor cleanup 2014-12-12 22:17:41 -08:00
Armon Dadgar c0d3798154 consul: Test Session.Apply updates session timers 2014-12-12 21:54:29 -08:00
Armon Dadgar 4d0903f781 consul: Adding more tests for session TTLs 2014-12-12 21:42:59 -08:00
Armon Dadgar 5b6ce2ca4a consul: Setup ACLs and timers after initial barrier 2014-12-12 21:42:24 -08:00
Armon Dadgar f25566931f consul: Make sessionTimersLock a plain mutex 2014-12-12 19:17:35 -08:00
Armon Dadgar 9b897d1134 consul: Ignore zero ttl on session 2014-12-12 19:17:04 -08:00
Armon Dadgar 990ad02f83 consul: Minor cleanups 2014-12-12 15:43:34 -08:00
Armon Dadgar 8dbfe7c9a8 Merge pull request #524 from amalaviy/session_ttl
Consul Session TTLs
2014-12-12 14:42:25 -08:00
Armon Dadgar 3ced5c14c3 Merge pull request #515 from mtchavez/master
Vagrant updates
2014-12-12 14:18:39 -08:00
Atin Malaviya 073020f6be Add invalidateSession test 2014-12-11 06:09:53 -05:00
Atin Malaviya 5a76929ba4 Fixed clearSessionTimer, created invalidateSession, added invalid TTL test 2014-12-11 05:34:31 -05:00
Seth Vargo 791ee28edb Merge pull request #531 from ijin/patch-1
minor grammer fix
2014-12-11 02:03:17 -08:00
Michael H. Oshita 8351121fde minor grammer fix 2014-12-11 19:02:29 +09:00
Atin Malaviya 7ece29c3e0 Took out usage of snapshot SessionListTTL 2014-12-10 21:37:06 -05:00
Atin Malaviya e84b26fcf5 Remove hardcoded wait time in session TTL tests 2014-12-10 21:04:09 -05:00
Atin Malaviya 2de09dc2e7 Took out StateSnapshot SessionListTTL also 2014-12-10 20:53:05 -05:00
Atin Malaviya 8369b77204 Clean up code based on feedback from armon 2014-12-10 20:49:06 -05:00
Atin Malaviya a1afc07f54 Added more tests 2014-12-10 16:43:15 -05:00
Atin Malaviya c992c18ef0 Added more tests. Also added return of 404 if the session id to renew is not found 2014-12-10 10:02:23 -05:00
Armon Dadgar f49f6c4ad3 Merge pull request #521 from hoffoo/master
ui: ask for confirmation before deleting keys
2014-12-07 17:03:32 -08:00
Armon Dadgar d40aef113a Merge pull request #522 from alouche/minor_cleanup
Minor cleanup
2014-12-07 17:02:32 -08:00
Atin Malaviya b623af776b Consul Session TTLs
The design of the session TTLs is based on the Google Chubby approach
(http://research.google.com/archive/chubby-osdi06.pdf). The Session
struct has an additional TTL field now. This attaches an implicit
heartbeat based failure detector. Tracking of heartbeats is done by
the current leader and not persisted via the Raft log. The implication
of this is during a leader failover, we do not retain the last
heartbeat times.

Similar to Chubby, the TTL represents a lower-bound. Consul promises
not to terminate a session before the TTL has expired, but is allowed
to extend the expiration past it. This enables us to reset the TTL on
a leader failover. The TTL is also extended when the client does a
heartbeat. Like Chubby, this means a TTL is extended on creation,
heartbeat or failover.

Additionally, because we must account for time requests are in transit
and the relative rates of clocks on the clients and servers, Consul
will take the conservative approach of internally multiplying the TTL
by 2x. This helps to compensate for network latency and clock skew
without violating the contract.

Reference: https://docs.google.com/document/d/1Y5-pahLkUaA7Kz4SBU_mehKiyt9yaaUGcBTMZR7lToY/edit?usp=sharing
2014-12-07 12:38:22 -05:00
Marin 781692e3a8 ui: confirm dialog only when deleting key directories #521 2014-12-06 12:00:51 -08:00
Ali Abbas 154c4e93e4 since dns.TXT is an external dependency, it is safer to add keys to the fields to avoid some potential ordering issues if changes in this field occur with upstream 2014-12-06 13:13:35 +01:00
Ali Abbas a542df954f cleanup and simplify 2014-12-06 13:08:35 +01:00
Ali Abbas 0117529781 remove control flow on errExit by switching from bool to int 2014-12-06 12:50:38 +01:00
Ali Abbas 40979b1159 * use defer to avoid tracking lock
* simplify control flow
2014-12-06 12:32:18 +01:00
Armon Dadgar 165e282e1c Merge pull request #518 from larsks/master
updates to leader election documentation
2014-12-05 18:59:39 -08:00
Armon Dadgar 66dc7752e0 Merge pull request #516 from mtchavez/tests/fix-failing
Tests/fix failing
2014-12-05 18:50:30 -08:00
Chavez 72904e39bd Separate cover target for tests 2014-12-05 18:47:23 -08:00
Marin bed14bb96f ui: ask for confirmation before deleting keys #520 2014-12-05 17:14:11 -08:00
Lars Kellogg-Stedman 52df94e560 updates to leader election documentation
Clarify the steps involved in the leader election process.

- provide examples of creating a session
- provide links to appropriate documentation
2014-12-05 14:28:21 -05:00
Chavez 5f4281f98f consul: Server leave test fix 2014-12-05 11:22:54 -08:00
Chavez 7c1aad7b1d agent: agent test fixes 2014-12-05 10:36:44 -08:00
Chavez c6b3cae106 consul: Fix failing globalRPC test 2014-12-05 10:36:37 -08:00
Chavez 904b14dc93 Fix typo 2014-12-04 23:11:47 -08:00