编辑 | blame | 历史 | 原始文档

Serf CircleCI Join the chat at https://gitter.im/hashicorp-serf/Lobby

Serf is a decentralized solution for service discovery and orchestration
that is lightweight, highly available, and fault tolerant.

Serf runs on Linux, Mac OS X, and Windows. An efficient and lightweight gossip
protocol is used to communicate with other nodes. Serf can detect node failures
and notify the rest of the cluster. An event system is built on top of
Serf, letting you use Serf's gossip protocol to propagate events such
as deploys, configuration changes, etc. Serf is completely masterless
with no single point of failure.

Here are some example use cases of Serf, though there are many others:

  • Discovering web servers and automatically adding them to a load balancer
  • Organizing many memcached or redis nodes into a cluster, perhaps with
    something like twemproxy or
    maybe just configuring an application with the address of all the
    nodes
  • Triggering web deploys using the event system built on top of Serf
  • Propagating changes to configuration to relevant nodes.
  • Updating DNS records to reflect cluster changes as they occur.
  • Much, much more.

Quick Start

First, download a pre-built Serf binary
for your operating system, compile Serf yourself, or install
using go get -u basic.com/valib/serf.git/cmd/serf.

Next, let's start a couple Serf agents. Agents run until they're told to quit
and handle the communication of maintenance tasks of Serf. In a real Serf
setup, each node in your system will run one or more Serf agents (it can
run multiple agents if you're running multiple cluster types. e.g. web
servers vs. memcached servers).

Start each Serf agent in a separate terminal session so that we can see
the output of each. Start the first agent:

$ serf agent -node=foo -bind=127.0.0.1:5000 -rpc-addr=127.0.0.1:7373
...

Start the second agent in another terminal session (while the first is still
running):

$ serf agent -node=bar -bind=127.0.0.1:5001 -rpc-addr=127.0.0.1:7374
...

At this point two Serf agents are running independently but are still
unaware of each other. Let's now tell the first agent to join an existing
cluster (the second agent). When starting a Serf agent, you must join an
existing cluster by specifying at least one existing member. After this,
Serf gossips and the remainder of the cluster becomes aware of the join.
Run the following commands in a third terminal session.

$ serf join 127.0.0.1:5001
...

If you're watching your terminals, you should see both Serf agents
become aware of the join. You can prove it by running serf members
to see the members of the Serf cluster:

$ serf members
foo    127.0.0.1:5000    alive
bar    127.0.0.1:5001    alive
...

At this point, you can ctrl-C or force kill either Serf agent, and they'll
update their membership lists appropriately. If you ctrl-C a Serf agent,
it will gracefully leave by notifying the cluster of its intent to leave.
If you force kill an agent, it will eventually (usually within seconds)
be detected by another member of the cluster which will notify the
cluster of the node failure.

Documentation

Full, comprehensive documentation is viewable on the Serf website:

https://www.serf.io/docs

Developing Serf

If you wish to work on Serf itself, you'll first need Go
installed (version 1.10+ is required). Make sure you have Go properly
installed,
including setting up your GOPATH.

Next, clone this repository into $GOPATH/src/basic.com/valib/serf.git and
then just type make. In a few moments, you'll have a working serf executable:

$ make
...
$ bin/serf
...

NOTE: make will also place a copy of the executable under $GOPATH/bin/

Serf is first and foremost a library with a command-line interface, serf. The
Serf library is independent of the command line agent, serf. The serf
binary is located under cmd/serf and can be installed stand alone by issuing
the command go get -u basic.com/valib/serf.git/cmd/serf. Applications using
the Serf library should only need to include basic.com/valib/serf.git.

Tests can be run by typing make test.

If you make any changes to the code, run make format in order to automatically
format the code according to Go standards.

编辑 | blame | 历史 | 原始文档

UNRELEASED

0.8.4 (September 19, 2019)

FEATURES:
* Force Leave command can now take prune option to completely remove members [GH-574]

IMPROVEMENTS:

  • agent: Increased encrpytion byte key size to 32 bytes [GH-570]

0.8.3 (April 10, 2019)

IMPROVEMENTS:

  • library: UserSizeLimit is configurable [GH-530]

0.8.2 (January 24th, 2019)

FEATURES:

  • Go Module Support: Serf now fully supports Go modules for incorporation into other projects [GH-548]

IMPROVEMENTS:

  • agent: Fixed a missing case where gossip would stop flowing to dead nodes for a short while. [GH-451]
  • agent: Uses the go-sockaddr library to look for private IP addresses, which prefers non-loopback private addresses over loopback ones when trying to automatically determine the advertise address. [GH-451]
  • agent: Properly seeds Go's random number generator using the seed library. [GH-451]
  • agent: Serf is now built with Go 1.10.x. [GH-520]
  • agent: Improved address comparison during conflict resolution. [GH-433]
  • agent: Updated memberlist to latest to pull several cleanups and fixes. [GH-491]
  • agent: Improved handling of leave intent messages to make sure they propagate and are processed correctly. [GH-510]
  • agent: Added CLI option to disable compression for debugging messages. [GH-529]
  • library: Moved close of shutdown channel until after network resorces are released. [GH-453]
  • library: Fixed several race conditions with QueryResponse [GH-460]
  • library: Made snapshot writing asyncronous and will less aggressive compaction on large clusters to avoid blocking message handler on disk IO [GH-524][GH-525]
  • query: truncate key list response so that it fits into one message instead of failing to answer [GH-546]

BUG FIXES:

  • agent: Added defenses against invalid network coordinates with NaN and Inf values. [GH-468]
  • agent: Fixed an issue on Windows where "wsarecv" errors were logged when clients accessed the RPC interface. [GH-479]
  • agent: Fixed an issue where calling the serf Stats function could result in a deadlock. [Consul Issue 4011]

0.8.1 (February 6, 2017)

IMPROVEMENTS:

  • agent: Added support for relaying query responses through N other nodes for redundancy. [GH-439]
  • agent: Added the ability to tune the broadcast timeout, which might be necessary in very large clusters that experience very large, simultaneous changes to the cluster. [GH-412]
  • agent: Added a checksum to UDP gossip messages to guard against packet corruption. [GH-432]
  • agent: Added a short window where gossip will still flow to dead nodes so that they can more quickly refute. [GH-440]
  • build: Serf now builds with Go 1.7.5. [GH-443]

0.8 (September 14, 2016)

FEATURES:

  • Lifeguard Updates: Implemented a new set of feedback controls for the gossip layer that help prevent degraded nodes that can't meet the soft real-time requirements from erroneously causing flapping in other, healthy nodes. This feature tunes itself automatically and requires no configuration. [GH-394]

IMRPOVEMENTS:

  • Modified management of intents to be per-node to avoid intent queue overflow errors in large clusters. [GH-402]
  • Joins based on a DNS lookup will use TCP and attempt to join with the full list of returned addresses. [GH-387]
  • Serf's Go dependencies are now vendored using govendor. [GH-383]
  • Updated all of Serf's dependencies. [GH-387] [GH-401]
  • Moved dist build into a Docker container. [GH-409]

BUG FIXES:

  • Updated memberlist to pull in a fix for leaking goroutines when performing TCP fallback pings. This affected users with frequent UDP connectivity problems. [GH-381]

0.7 (December 21, 2015)

FEATURES:

  • Added new network tomography subsystem that computes network coordinates for
    nodes in the cluster which can be used to estimate network round trip times
    between any two nodes; exposes new GetCoordinate API as as well as a
    a new serf rtt command to query RTT interactively

IMPROVEMENTS:

  • Added support for configuring query request size and query response size [GH-346]
  • Syslog messages are now filtered by the configured log-level
  • New statsd_addr for sending metrics via UDP to statsd
  • Added support for sending telemetry to statsite
  • serf info command now displays event handlers [GH-312]
  • Added a MemberLeave message to the EventCh for a force-leave so higher-
    level applications can handle the leave event
  • Lots of documentation updates

BUG FIXES:

  • Fixed updating cached protocol version of a node when an update event
    fires [GH-335]
  • Fixed a bug where an empty remote state message would cause a crash in
    MergeRemoteState

0.6.4 (Febuary 12, 2015)

IMPROVEMENTS:

  • Added merge delegate to Serf library to support application
    specific logic in cluster merging.
  • SERF_RPC_AUTH environment variable can be used in place of CLI flags.
  • Display if encryption is enabled in Serf stats
  • Improved join behavior when using DNS resolution

BUG FIXES:

  • Fixed snapshot file compaction on Windows
  • Fixed device binding on Windows
  • Fixed bug with empty keyring
  • Fixed parsing of ports in some cases
  • Fixing stability issues under high churn

MISC:

  • Increased user event size limit to 512 bytes (previously 256)

0.6.3 (July 10, 2014)

IMPROVEMENTS:

  • Added statsite_addr configuration to stream to statsite

BUG FIXES:

  • Fixed issue with mDNS flooding when using IPv4 and IPv6
  • Fixed issue with reloading event handlers

MISC:

  • Improved failure detection reliability under load
  • Reduced fsync() use in snapshot file
  • Improved snapshot file performance
  • Additional logging to help debug flapping

0.6.2 (June 16, 2014)

IMPROVEMENTS:

  • Added syslog_facility configuration to set facility

BUG FIXES:

  • Fixed memory leak in in-memory stats system
  • Fixed issue that would cause syslog to deadlock

MISC:

  • Fixed missing prefixes on some log messages
  • Docs fixes

0.6.1 (May 29, 2014)

BUG FIXES:

  • On Windows, a "failed to decode request header" error will no
    longer be shown on every RPC request.

  • Avoiding holding a lock which can cause monitor/stream commands to
    fail when an event handler is blocking

  • Fixing conflict response decoding errors

IMPROVEMENTS:

  • Improved agent CLI usage documentation

  • Warn if an event handler is slow, potentially blocking other events

0.6.0 (May 8, 2014)

FEATURES:

  • Support for key rotation when using encryption. This adds a new
    serf keys command, and a -keyring-file configuration. Thanks
    to @ryanuber.

  • New -tags-file can be specified to persist changes to tags made
    via the RPC interface. Thanks to @ryanuber.

  • New serf info command to provide operator debugging information,
    and to get info about the local node.

  • Adding -retry-join flag to agent which enables retrying the join
    until success or -retry-max attempts have been made.

IMPROVEMENTS:

  • New -rejoin flag can be used along with a snapshot file to
    automatically rejoin a cluster.

  • Agent uses circular buffer to invoke handlers, guards against unbounded
    output lengths.

  • Adding support for logging to syslog

  • The SERF_RPC_ADDR environment variable can be used instead of the
    -rpc-addr flags. Thanks to @lalyos [GH-209].

  • serf query can now output the results in a JSON format.

  • Unknown configuration directives generate an error [GH-186].
    Thanks to @vincentbernat.

BUG FIXES:

  • Fixing environmental variables with invalid characters. [GH-200].
    Thanks to @arschles.

  • Fixing issue with tag changes with hard restart before
    failure detection.

  • Fixing issue with reconnect when using dynamic ports.

MISC:

  • Improved logging of various error messages

  • Improved debian packaging. Thanks to @vincentbernat.

0.5.0 (March 12, 2014)

FEATURES:

  • New query command provides a request/response mechanism to do realtime
    queries across the cluster. [GH-139]

  • Automatic conflict resolution. Serf will detect name conflicts, and use an
    internal query to determine which node is in the minority and perform a shutdown.
    [GH-167] [GH-119]

  • New reachability command can be used to help diagnose network and configuration
    issues.

  • Added member-reap event to get notified of when Serf removes a failed or left
    node from the cluster. The reap interval is controlled by reconnect_timeout and
    tombstone_timeout respectively. [GH-172]

IMPROVEMENTS:

  • New Recipes section on the site to share Serf tips. Thanks to @ryanuber. [GH-177]

  • members command has new -name filter flag. Thanks to @ryanuber [GH-164]

  • New RPC command "members-filtered" to move filtering logic to the agent.
    Thanks to @ryanuber. [GH-149]

  • reconnect_interval and reconnect_timeout can be provided to configure
    agent behavior for attempting to reconnect to failed nodes. [GH-155]

  • tombstone_interval can be provided to configure the reap time for nodes
    that have gracefully left. [GH_172]

  • Agent can be provided rpc_auth config to require that RPC is authenticated.
    All commands can take a -rpc-auth flag now. [GH-148]

BUG FIXES:

  • Fixed config folder in Upstart script. Thanks to @llchen223. [GH-174]

  • Event handlers are correctly invoked when BusyBox is the shell. [GH-156]

  • Event handlers were not being invoked with the correct SERF_TAG_* values
    if tags were changed using the tags command. [GH-169]

MISC:

  • Support for protocol version 1 (Serf 0.2) has been removed. Serf 0.5 cannot
    join a cluster that has members running version 0.2.

0.4.5 (February 25, 2014)

FEATURES:

  • New tags command is available to dynamically update tags without
    reloading the agent. Thanks to @ryanuber. [GH-126]

IMPROVEMENTS:

  • Upstart receipe logs output thanks to @breerly [GH-128]

  • members can filter on any tag thanks to @hmrm [GH-124]

  • Added vagrant demo to make a simple cluster

  • members now columnizes the output thanks to @ryanuber [GH-138]

  • Agent passes its own environment variables through thanks to @mcroydon [GH-142]

  • -iface flag can be used to bind to interfaces [GH-145]

BUG FIXES:

  • -config-dir would cause protocol to be set to 0 if there are no
    configuration files in the directory [GH-129]

  • Event handlers can filter on 'member-update'

  • User event handler appends new line, this was being omitted

0.4.1 (February 3, 2014)

IMPROVEMENTS:

  • mDNS service uses the advertise address instead of bind address

0.4.0 (January 31, 2014)

FEATURES:

  • Static role has been replaced with dynamic tags. Each agent can have
    multiple key/value tags associated using -tag. Tags can be updated using
    a SIGHUP and are advertised to the cluster, causing the member-update event
    to be triggered. [GH-111] [GH-98]

  • Serf can automatically discover peers uing mDNS when provided the -discover
    flag. In network environments supporting multicast, no explicit join is needed
    to find peers. [GH-53]

  • Serf collects telemetry information and simple runtime profiling. Stats can
    be dumped to stderr by sending a USR1 signal to Serf. Windows users must use
    the BREAK signal instead. [GH-103]

  • advertise flag can be used to set an advertise address different
    from the bind address. Used for NAT traversal. Thanks to @benagricola [GH-93]

  • members command now takes -format flag to specify either text or JSON
    output. Fixed by @ryanuber [GH-97]

IMPROVEMENTS:

  • User payload always appends a newline when invoking a shell script

  • Severity of "Potential blocking operation" reduced to debug to prevent
    spurious messages on slow or busy machines.

BUG FIXES:

  • If an agent is restarted with the same bind address but new name, it
    will not respond to the old name, causing the old name to enter the
    failed state, instead of having duplicate entries in the alive state.

  • leave_on_interrupt set to false when not specified, if
    any config file is provided. This flag is deprecated for
    skip_leave_on_interrupt instead. [GH-94]

MISC:

  • -role configuration has been deprecated in favor of -tag role=foo.
    The flag is still supported but will generate warnings.

  • Support for protocol version 0 (Serf 0.1) has been removed. Serf 0.4 cannot
    join a cluster that has members running version 0.1.

0.3.0 (December 5, 2013)

FEATURES:

  • Dynamic port support, cluster wide consistent config not necessary
  • Snapshots to automaticaly rejoin cluster after failure and prevent replays [GH-84] [GH-71]
  • Adding profile config to agent, to support WAN, LAN, and Local modes
  • MsgPack over TCP RPC protocol which can be used to control Serf, send events, and
    receive events with low latency.
  • New leave CLI command and RPC endpoint to control graceful leaves
  • Signal handling is controlable, graceful leave behavior on SIGINT/SIGTERM
    can be specified
  • SIGHUP can be used to reload configuration

IMPROVEMENTS:

  • Event handler provides lamport time of user events via SERF_USER_LTIME [GH-68]
  • Memberlist encryption overhead has been reduced
  • Filter output of members using regular expressions on role and status
  • replay_on_join parameter to control replay with start_join
  • monitor works even if the client is behind a NAT
  • Serf generates warning if binding to public IP without encryption

BUG FIXES:

  • Prevent unbounded transmit queues [GH-78]
  • IPv6 addresses can be bound to [GH-72]
  • Serf join won't hang on a slow/dead node [GH-70]
  • Serf Leave won't block Shutdown [GH-1]

0.2.1 (November 6, 2013)

BUG FIXES:

  • Member role and address not updated on re-join [GH-58]

0.2.0 (November 1, 2013)

FEATURES:

  • Protocol versioning features so that upgrades can be done safely.
    See the website on upgrading Serf for more info.
  • Can now configure Serf with files or directories of files by specifying
    the -config-file and/or -config-dir flags to the agent.
  • New command serf force-leave can be used to force a "failed" node
    to the "left" state.
  • Serf now supports message encryption and verification so that it can
    be used on untrusted networks [GH-25]
  • The -join flag on serf agent can be used to join a cluster when
    starting an agent. [GH-42]

IMPROVEMENTS:

  • Random staggering of periodic routines to avoid cluster-wide
    synchronization
  • Push/Pull timer automatically slows down as cluster grows to avoid
    congestion
  • Messages are compressed to reduce bandwidth utilization
  • serf members now provides node roles in output
  • Joining a cluster will no longer replay all the old events by default,
    but it can using the -replay flag.
  • User events are coalesced by default, meaning duplicate events (by name)
    within a short period of time are merged. [GH-8]

BUG FIXES:

  • Event handlers work on Windows now by executing commands through
    cmd /C [GH-37]
  • Nodes that previously left and rejoin won't get stuck in 'leaving' state.
    [GH-18]
  • Fixing alignment issues on i386 for atomic operations [GH-20]
  • "trace" log level works [GH-31]

0.1.1 (October 23, 2013)

BUG FIXES:

  • Default node name is outputted when "serf agent" is called with no args.
  • Remove node from reap list after join so a fast re-join doesn't lose the
    member.

0.1.0 (October 23, 2013)

  • Initial release
编辑 | blame | 历史 | 原始文档
Mozilla Public License, version 2.0

1. Definitions

1.1. “Contributor”

     means each individual or legal entity that creates, contributes to the
     creation of, or owns Covered Software.

1.2. “Contributor Version”

     means the combination of the Contributions of others (if any) used by a
     Contributor and that particular Contributor’s Contribution.

1.3. “Contribution”

     means Covered Software of a particular Contributor.

1.4. “Covered Software”

     means Source Code Form to which the initial Contributor has attached the
     notice in Exhibit A, the Executable Form of such Source Code Form, and
     Modifications of such Source Code Form, in each case including portions
     thereof.

1.5. “Incompatible With Secondary Licenses”
     means

     a. that the initial Contributor has attached the notice described in
        Exhibit B to the Covered Software; or

     b. that the Covered Software was made available under the terms of version
        1.1 or earlier of the License, but not also under the terms of a
        Secondary License.

1.6. “Executable Form”

     means any form of the work other than Source Code Form.

1.7. “Larger Work”

     means a work that combines Covered Software with other material, in a separate
     file or files, that is not Covered Software.

1.8. “License”

     means this document.

1.9. “Licensable”

     means having the right to grant, to the maximum extent possible, whether at the
     time of the initial grant or subsequently, any and all of the rights conveyed by
     this License.

1.10. “Modifications”

     means any of the following:

     a. any file in Source Code Form that results from an addition to, deletion
        from, or modification of the contents of Covered Software; or

     b. any new file in Source Code Form that contains any Covered Software.

1.11. “Patent Claims” of a Contributor

      means any patent claim(s), including without limitation, method, process,
      and apparatus claims, in any patent Licensable by such Contributor that
      would be infringed, but for the grant of the License, by the making,
      using, selling, offering for sale, having made, import, or transfer of
      either its Contributions or its Contributor Version.

1.12. “Secondary License”

      means either the GNU General Public License, Version 2.0, the GNU Lesser
      General Public License, Version 2.1, the GNU Affero General Public
      License, Version 3.0, or any later versions of those licenses.

1.13. “Source Code Form”

      means the form of the work preferred for making modifications.

1.14. “You” (or “Your”)

      means an individual or a legal entity exercising rights under this
      License. For legal entities, “You” includes any entity that controls, is
      controlled by, or is under common control with You. For purposes of this
      definition, “control” means (a) the power, direct or indirect, to cause
      the direction or management of such entity, whether by contract or
      otherwise, or (b) ownership of more than fifty percent (50%) of the
      outstanding shares or beneficial ownership of such entity.


2. License Grants and Conditions

2.1. Grants

     Each Contributor hereby grants You a world-wide, royalty-free,
     non-exclusive license:

     a. under intellectual property rights (other than patent or trademark)
        Licensable by such Contributor to use, reproduce, make available,
        modify, display, perform, distribute, and otherwise exploit its
        Contributions, either on an unmodified basis, with Modifications, or as
        part of a Larger Work; and

     b. under Patent Claims of such Contributor to make, use, sell, offer for
        sale, have made, import, and otherwise transfer either its Contributions
        or its Contributor Version.

2.2. Effective Date

     The licenses granted in Section 2.1 with respect to any Contribution become
     effective for each Contribution on the date the Contributor first distributes
     such Contribution.

2.3. Limitations on Grant Scope

     The licenses granted in this Section 2 are the only rights granted under this
     License. No additional rights or licenses will be implied from the distribution
     or licensing of Covered Software under this License. Notwithstanding Section
     2.1(b) above, no patent license is granted by a Contributor:

     a. for any code that a Contributor has removed from Covered Software; or

     b. for infringements caused by: (i) Your and any other third party’s
        modifications of Covered Software, or (ii) the combination of its
        Contributions with other software (except as part of its Contributor
        Version); or

     c. under Patent Claims infringed by Covered Software in the absence of its
        Contributions.

     This License does not grant any rights in the trademarks, service marks, or
     logos of any Contributor (except as may be necessary to comply with the
     notice requirements in Section 3.4).

2.4. Subsequent Licenses

     No Contributor makes additional grants as a result of Your choice to
     distribute the Covered Software under a subsequent version of this License
     (see Section 10.2) or under the terms of a Secondary License (if permitted
     under the terms of Section 3.3).

2.5. Representation

     Each Contributor represents that the Contributor believes its Contributions
     are its original creation(s) or it has sufficient rights to grant the
     rights to its Contributions conveyed by this License.

2.6. Fair Use

     This License is not intended to limit any rights You have under applicable
     copyright doctrines of fair use, fair dealing, or other equivalents.

2.7. Conditions

     Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in
     Section 2.1.


3. Responsibilities

3.1. Distribution of Source Form

     All distribution of Covered Software in Source Code Form, including any
     Modifications that You create or to which You contribute, must be under the
     terms of this License. You must inform recipients that the Source Code Form
     of the Covered Software is governed by the terms of this License, and how
     they can obtain a copy of this License. You may not attempt to alter or
     restrict the recipients’ rights in the Source Code Form.

3.2. Distribution of Executable Form

     If You distribute Covered Software in Executable Form then:

     a. such Covered Software must also be made available in Source Code Form,
        as described in Section 3.1, and You must inform recipients of the
        Executable Form how they can obtain a copy of such Source Code Form by
        reasonable means in a timely manner, at a charge no more than the cost
        of distribution to the recipient; and

     b. You may distribute such Executable Form under the terms of this License,
        or sublicense it under different terms, provided that the license for
        the Executable Form does not attempt to limit or alter the recipients’
        rights in the Source Code Form under this License.

3.3. Distribution of a Larger Work

     You may create and distribute a Larger Work under terms of Your choice,
     provided that You also comply with the requirements of this License for the
     Covered Software. If the Larger Work is a combination of Covered Software
     with a work governed by one or more Secondary Licenses, and the Covered
     Software is not Incompatible With Secondary Licenses, this License permits
     You to additionally distribute such Covered Software under the terms of
     such Secondary License(s), so that the recipient of the Larger Work may, at
     their option, further distribute the Covered Software under the terms of
     either this License or such Secondary License(s).

3.4. Notices

     You may not remove or alter the substance of any license notices (including
     copyright notices, patent notices, disclaimers of warranty, or limitations
     of liability) contained within the Source Code Form of the Covered
     Software, except that You may alter any license notices to the extent
     required to remedy known factual inaccuracies.

3.5. Application of Additional Terms

     You may choose to offer, and to charge a fee for, warranty, support,
     indemnity or liability obligations to one or more recipients of Covered
     Software. However, You may do so only on Your own behalf, and not on behalf
     of any Contributor. You must make it absolutely clear that any such
     warranty, support, indemnity, or liability obligation is offered by You
     alone, and You hereby agree to indemnify every Contributor for any
     liability incurred by such Contributor as a result of warranty, support,
     indemnity or liability terms You offer. You may include additional
     disclaimers of warranty and limitations of liability specific to any
     jurisdiction.

4. Inability to Comply Due to Statute or Regulation

   If it is impossible for You to comply with any of the terms of this License
   with respect to some or all of the Covered Software due to statute, judicial
   order, or regulation then You must: (a) comply with the terms of this License
   to the maximum extent possible; and (b) describe the limitations and the code
   they affect. Such description must be placed in a text file included with all
   distributions of the Covered Software under this License. Except to the
   extent prohibited by statute or regulation, such description must be
   sufficiently detailed for a recipient of ordinary skill to be able to
   understand it.

5. Termination

5.1. The rights granted under this License will terminate automatically if You
     fail to comply with any of its terms. However, if You become compliant,
     then the rights granted under this License from a particular Contributor
     are reinstated (a) provisionally, unless and until such Contributor
     explicitly and finally terminates Your grants, and (b) on an ongoing basis,
     if such Contributor fails to notify You of the non-compliance by some
     reasonable means prior to 60 days after You have come back into compliance.
     Moreover, Your grants from a particular Contributor are reinstated on an
     ongoing basis if such Contributor notifies You of the non-compliance by
     some reasonable means, this is the first time You have received notice of
     non-compliance with this License from such Contributor, and You become
     compliant prior to 30 days after Your receipt of the notice.

5.2. If You initiate litigation against any entity by asserting a patent
     infringement claim (excluding declaratory judgment actions, counter-claims,
     and cross-claims) alleging that a Contributor Version directly or
     indirectly infringes any patent, then the rights granted to You by any and
     all Contributors for the Covered Software under Section 2.1 of this License
     shall terminate.

5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user
     license agreements (excluding distributors and resellers) which have been
     validly granted by You or Your distributors under this License prior to
     termination shall survive termination.

6. Disclaimer of Warranty

   Covered Software is provided under this License on an “as is” basis, without
   warranty of any kind, either expressed, implied, or statutory, including,
   without limitation, warranties that the Covered Software is free of defects,
   merchantable, fit for a particular purpose or non-infringing. The entire
   risk as to the quality and performance of the Covered Software is with You.
   Should any Covered Software prove defective in any respect, You (not any
   Contributor) assume the cost of any necessary servicing, repair, or
   correction. This disclaimer of warranty constitutes an essential part of this
   License. No use of  any Covered Software is authorized under this License
   except under this disclaimer.

7. Limitation of Liability

   Under no circumstances and under no legal theory, whether tort (including
   negligence), contract, or otherwise, shall any Contributor, or anyone who
   distributes Covered Software as permitted above, be liable to You for any
   direct, indirect, special, incidental, or consequential damages of any
   character including, without limitation, damages for lost profits, loss of
   goodwill, work stoppage, computer failure or malfunction, or any and all
   other commercial damages or losses, even if such party shall have been
   informed of the possibility of such damages. This limitation of liability
   shall not apply to liability for death or personal injury resulting from such
   party’s negligence to the extent applicable law prohibits such limitation.
   Some jurisdictions do not allow the exclusion or limitation of incidental or
   consequential damages, so this exclusion and limitation may not apply to You.

8. Litigation

   Any litigation relating to this License may be brought only in the courts of
   a jurisdiction where the defendant maintains its principal place of business
   and such litigation shall be governed by laws of that jurisdiction, without
   reference to its conflict-of-law provisions. Nothing in this Section shall
   prevent a party’s ability to bring cross-claims or counter-claims.

9. Miscellaneous

   This License represents the complete agreement concerning the subject matter
   hereof. If any provision of this License is held to be unenforceable, such
   provision shall be reformed only to the extent necessary to make it
   enforceable. Any law or regulation which provides that the language of a
   contract shall be construed against the drafter shall not be used to construe
   this License against a Contributor.


10. Versions of the License

10.1. New Versions

      Mozilla Foundation is the license steward. Except as provided in Section
      10.3, no one other than the license steward has the right to modify or
      publish new versions of this License. Each version will be given a
      distinguishing version number.

10.2. Effect of New Versions

      You may distribute the Covered Software under the terms of the version of
      the License under which You originally received the Covered Software, or
      under the terms of any subsequent version published by the license
      steward.

10.3. Modified Versions

      If you create software not governed by this License, and you want to
      create a new license for such software, you may create and use a modified
      version of this License if you rename the license and remove any
      references to the name of the license steward (except to note that such
      modified license differs from this License).

10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses
      If You choose to distribute Source Code Form that is Incompatible With
      Secondary Licenses under the terms of this version of the License, the
      notice described in Exhibit B of this License must be attached.

Exhibit A - Source Code Form License Notice

      This Source Code Form is subject to the
      terms of the Mozilla Public License, v.
      2.0. If a copy of the MPL was not
      distributed with this file, You can
      obtain one at
      http://mozilla.org/MPL/2.0/.

If it is not possible or desirable to put the notice in a particular file, then
You may include the notice in a location (such as a LICENSE file in a relevant
directory) where a recipient would be likely to look for such a notice.

You may add additional accurate notices of copyright ownership.

Exhibit B - “Incompatible With Secondary Licenses” Notice

      This Source Code Form is “Incompatible
      With Secondary Licenses”, as defined by
      the Mozilla Public License, v. 2.0.

CHANGELOG 15 KB
README 5 KB
client/README 354 b
demo/vagrant-cluster/README 856 b
demo/web-load-balancer/README 5 KB
demo/web-load-balancer/user_data/README 111 b
ops-misc/README 283 b
vendor/github.com/armon/circbuf/README 611 b
vendor/github.com/armon/go-metrics/README 3 KB
vendor/github.com/armon/go-radix/README 1 KB
vendor/github.com/bgentry/speakeasy/Readme 1 KB
vendor/github.com/fatih/color/LICENSE 1 KB
vendor/github.com/fatih/color/README 5 KB
vendor/github.com/google/btree/README 456 b
vendor/github.com/hashicorp/errwrap/README 2 KB
vendor/github.com/hashicorp/go-immutable-radix/README 1 KB
vendor/github.com/hashicorp/go-msgpack/codec/README 7 KB
vendor/github.com/hashicorp/go-multierror/README 3 KB
vendor/github.com/hashicorp/go-sockaddr/README 5 KB
vendor/github.com/hashicorp/go-syslog/README 470 b
vendor/github.com/hashicorp/logutils/README 1,000 b
vendor/github.com/hashicorp/mdns/README 1 KB
vendor/github.com/hashicorp/memberlist/README 3 KB
vendor/github.com/hashicorp/memberlist/todo 211 b
vendor/github.com/mattn/go-colorable/README 1 KB
vendor/github.com/mattn/go-isatty/README 1 KB
vendor/github.com/miekg/dns/README 6 KB
vendor/github.com/mitchellh/cli/README 2 KB
vendor/github.com/mitchellh/mapstructure/README 2 KB
vendor/github.com/posener/complete/LICENSE 1 KB
vendor/github.com/posener/complete/readme 4 KB
vendor/github.com/ryanuber/columnize/README 2 KB
vendor/github.com/sean-/seed/README 2 KB
vendor/golang.org/x/sys/unix/README 8 KB
vendor/modules 2 KB
website/LICENSE 381 b
website/README 724 b
website/redirects 1 KB
website/source/404.html 271 b
website/source/docs/agent/basics.html 4 KB
website/source/docs/agent/encryption.html 3 KB
website/source/docs/agent/event-handlers.html 5 KB
website/source/docs/agent/logging.html 92 b
website/source/docs/agent/options.html 17 KB
website/source/docs/agent/rpc.html 17 KB
website/source/docs/agent/telemetry.html 2 KB
website/source/docs/commands/agent.html 769 b
website/source/docs/commands/event.html 4 KB
website/source/docs/commands/force-leave.html 2 KB
website/source/docs/commands/index.html 2 KB
website/source/docs/commands/info.html 1 KB
website/source/docs/commands/join.html 2 KB
website/source/docs/commands/keygen.html 601 b
website/source/docs/commands/keys.html 3 KB
website/source/docs/commands/leave.html 1 KB
website/source/docs/commands/members.html 2 KB
website/source/docs/commands/monitor.html 2 KB
website/source/docs/commands/query.html 4 KB
website/source/docs/commands/reachability.html 2 KB
website/source/docs/commands/rtt.html 2 KB
website/source/docs/commands/tags.html 2 KB
website/source/docs/compatibility.html 3 KB
website/source/docs/index.html 628 b
website/source/docs/internals/coordinates.html 8 KB
website/source/docs/internals/gossip.html 8 KB
website/source/docs/internals/index.html 941 b
website/source/docs/internals/security.html 6 KB
website/source/docs/recipes.html 720 b
website/source/docs/recipes/agent-uptime.html 819 b
website/source/docs/recipes/event-handler-router.html 3 KB
website/source/docs/upgrading.html 3 KB
website/source/intro/getting-started/agent.html 3 KB
website/source/intro/getting-started/event-handlers.html 4 KB
website/source/intro/getting-started/install.html 3 KB
website/source/intro/getting-started/join.html 3 KB
website/source/intro/getting-started/next-steps.html 1 KB
website/source/intro/getting-started/queries.html 4 KB
website/source/intro/getting-started/user-events.html 3 KB
website/source/intro/index.html 2 KB
website/source/intro/use-cases.html 3 KB
website/source/intro/vs-chef-puppet.html 2 KB
website/source/intro/vs-consul.html 3 KB
website/source/intro/vs-custom.html 2 KB
website/source/intro/vs-fabric.html 1 KB
website/source/intro/vs-other-sw.html 900 b
website/source/intro/vs-zookeeper.html 3 KB
website/source/robots 81 b