Commit Graph

321 Commits (358c35ef708567032f8bdcc216db95dff6d5b71b)

Author SHA1 Message Date
Sean Chittenden 112f3fd468
Give log reviewers a hint as to which check is failing
9 years ago
Sean Chittenden 63adcbd5ef
Revert "Move `structs.CheckID` to a new top-level package, `types`."
9 years ago
Sean Chittenden cbb945e76a
Move `structs.CheckID` to a new top-level package, `types`.
9 years ago
Sean Chittenden f5ab25163e
Move `structs.CheckID` to a new top-level package, `types`.
9 years ago
Sean Chittenden ddbe64a8c8
Float a type balloon. Some strings are square pegs in round holes.
9 years ago
James Phillips 7bf684ece1 Fixes some bad error returns in the persist service and check paths.
9 years ago
James Phillips ceac68c5eb Merge pull request #1762 from mshean/script-timeout
9 years ago
Matt Shean fe4107019e add Timeout field to CheckMonitor
9 years ago
James Phillips eedeba682b Makes reap time configurable for LAN and WAN.
9 years ago
Wim b5d45322b4 Allow [::] as a bind address (binds to first public IPv6 address)
9 years ago
James Phillips c60a526fde Sets up config for more address tags down the road, renames struct members.
9 years ago
Evan Gilman 8fa2a60208 Rectify value of `AdvertiseAddrWan` when set elsewhere
9 years ago
Sean Chittenden 7af6a94edb Factor out duplicate functions into a lib package
9 years ago
James Phillips 343838f12b Adds support for the reap lock.
9 years ago
Ryan Uber afafae53fd consul: dev mode works
9 years ago
James Phillips 95c708f65e Adds Docker checks support to client API.
9 years ago
James Phillips 5e7523ea4b Adds a slightly more flexible mock system so we can test DNS.
9 years ago
James Phillips c0bd639662 Makes the version upshift code look at the correct version field.
9 years ago
Diptanu Choudhury 471442e9a4 Making an explicit check to test whether a check is of type Monitor
9 years ago
Diptanu Choudhury 423f7fbcac Not adding the docker check if we couldn't create the client
9 years ago
Diptanu Choudhury 5f8f531d2a Defaulting to Monitor check
9 years ago
Diptanu Choudhury 71ede8addb Implemented Docker health checks
9 years ago
James Phillips 660da92152 Makes the default protocol 2 and lets 3 interoperate with 2.
9 years ago
James Phillips ad65d953f6 Scales coordinate sends to hit a fixed aggregate rate across the cluster.
9 years ago
James Phillips 66a3d29743 Simplifies the batching function and adds some comments.
9 years ago
James Phillips 5f754c4a87 Does some small cleanups based on PR feedback.
9 years ago
James Phillips d12aa2ffab Moves batching down into the state store and changes it to fail-fast.
9 years ago
James Phillips b9d5fb0f90 Flips the sense of the coordinate enable option.
9 years ago
James Phillips 86b112fe31 Does a clean up pass on the Consul side.
9 years ago
Derek Chiang f144d17b1c Address comments
9 years ago
Derek Chiang ab9262c656 Add a test case
9 years ago
Derek Chiang bf5cb7522f Use IndexedCoordinate instead
9 years ago
Derek Chiang a1854a7614 Some fixes
9 years ago
Derek Chiang 98d87b5dd5 Complete logic for sending coordinates
9 years ago
Derek Chiang 9113b26286 Some fixes
9 years ago
Derek Chiang a9ea503c69 Adding tests and stuff
9 years ago
James Phillips 4ee43e90b7 Deletes the old state store and all its accoutrements.
9 years ago
Dale Wijnand 5a28ebcaa3 Fix a bunch of typos.
9 years ago
Ryan Uber 125d7fd4ee agent: thread tokens through for maintenance mode
9 years ago
Peter Fern b023904298 Add TCP check type
9 years ago
Ryan Uber d0348d1291 Merge pull request #1004 from i0rek/advertise_addrs
10 years ago
Hans Hasselberg 267e0caf81 Implement advertise_addrs for SerfLan, SerfWan and RPC.
10 years ago
Ryan Uber 69921808ee agent: use persist/load/purge convention for function names
10 years ago
Ryan Uber 1636a35289 agent: check state is purged if expired
10 years ago
Ryan Uber 2ee8fa8e15 agent: purge check state when checks are deregistered
10 years ago
Ryan Uber 7e6e861394 agent: testing state persistence, recovery, and expiration
10 years ago
Ryan Uber 7597d3d798 agent: first stab at persisting check state
10 years ago
Ryan Uber ebe57a1f65 agent: refactor loadChecks/loadServices, fixes a few minor bugs
10 years ago
Armon Dadgar ebf961ef8b Merge pull request #927 from hashicorp/f-tls
10 years ago
Armon Dadgar 8d86290ebf Fixing merge conflict
10 years ago
Armon Dadgar a485eb8447 agent: copy config into consul config
10 years ago
Ryan Uber 3ed0146e44 agent: use service ID field to determine associated health checks during deregister
10 years ago
Ryan Uber 204c11ec01 agent: restore check status when re-registering (updating) services
10 years ago
Ryan Uber 8ef01236e1 agent: allow persisted services to be updated on disk
10 years ago
Ryan Uber 739d1fdf03 Merge pull request #891 from hashicorp/f-token
10 years ago
Ryan Uber 2b62f2f172 agent: use an additional parameter for passing tokens
10 years ago
Ryan Uber 18356328c4 agent: restore tokens for services and checks in config
10 years ago
Ryan Uber 663a86f9b9 agent: backwards compat for persisted services from pre-0.5.1
10 years ago
Ryan Uber 442933650e agent: safer read methods for tokens
10 years ago
Ryan Uber 1557f7f19c agent: test coverage loading service/check tokens from persisted files
10 years ago
Ryan Uber bebb5d9641 agent: add service/check token methods to reduce invasiveness
10 years ago
Ryan Uber 92add18e1e agent: persist tokens from API registrations
10 years ago
Ryan Uber bfb27d18cd agent: initial pass threading through tokens for services/checks
10 years ago
Ryan Mills 275af975e8 Allow specifying a status field in the agent/service/register and agent/check/register endpoints.
10 years ago
pepov bac3ae9494 Add configuration option to specify a separate address for advertising on the wan
10 years ago
Michael Fraenkel 8c26836783 Support SesionTTLMin configuration
10 years ago
Ryan Uber 04a2faed22 agent: warn and purge checks which cannot be restored from agent state
10 years ago
Armon Dadgar b319c41bd9 agent: Snapshot and restore health state on reload. Fixes #693
10 years ago
Ryan Uber 103e9e7fc1 agent: clarify the valid characters for dns
10 years ago
Ryan Uber 722b255816 agent: warn on service tags with invalid chars
10 years ago
Ryan Uber 5e801c905d agent: Warn on dns-incompatible characters during service registration. Fixes #683.
10 years ago
arnaud briche e87afe341b - add Timeout field to CheckType and CheckHTTP to make http request timeout configurable by the client
10 years ago
foostan 401bc71cb2 Validate ServiceID/CheckID when deregistering.
10 years ago
Armon Dadgar e1a5d537d4 Merge pull request #625 from hashicorp/f-maintcmd
10 years ago
Ryan Uber 44f3c20e50 command/maint: clean up
10 years ago
Ryan Uber 09fd2a7e94 command/maint: display active maintenance when no args are passed
10 years ago
Armon Dadgar cf04d6ae31 Merge pull request #622 from hashicorp/f-sockets
10 years ago
Ryan Uber 124e7bfa7e agent: use const for default maintenance reason strings
10 years ago
Ryan Uber f00b5b542e agent: support passing ?reason= for custom notes field values on maintenance checks
10 years ago
Ryan Uber b6a0f2baae agent: fix maintenance check ID
10 years ago
Ryan Uber 674be58e55 agent: support multiple checks per service
10 years ago
Ryan Uber 21dd95d9af agent: beginning socket user/group/mode support as discussed in #612
10 years ago
Ryan Uber ba2d0fa7e3 agent: maintenance logging + unique service check IDs
10 years ago
Ryan Uber 7748c62d09 agent: node maintenance mode works
10 years ago
Ryan Uber 9ee1e6e858 agent: maintenance mode api's are idempotent
10 years ago
Ryan Uber 8819d71f99 agent: maintenance mode is persistent
10 years ago
Ryan Uber 3fbb2be6c0 agent: test agent service maintenance mode
10 years ago
Ryan Uber 2973cd9131 agent: first pass at service maintenance mode
10 years ago
Ryan Uber f01bb5cf3b agent: error if binding to existing socket file
10 years ago
Nicholas Capo 98eb935392 command/agent: HTTP Check: Create httpClient in Start()
10 years ago
Nicholas Capo 50853265dd command/agent: Stop HTTP checks when the check is removed
10 years ago
Nicholas Capo fb5ba8d97d command/agent: Add simple HTTP check type
10 years ago
Ryan Uber a24f6e3d4d agent: test service and check unloading
10 years ago
Ryan Uber 51fe9f32ff agent: consolidate service loading code, better logging
10 years ago
Ryan Uber cfde9313de agent: separate service and check loading/unloading concerns
10 years ago
Ryan Uber 0b9f2b0954 agent: persist service/check data using hashed service/check IDs (fixes #573)
10 years ago
Veres Lajos 3b1068387a typofixes - https://github.com/vlajos/misspell_fixer
10 years ago
Ryan Uber dd4fadfc9e agent: persist CheckType with health checks
10 years ago
Ryan Uber b7587cac42 agent: allow config reload to modify checks/services persistence
10 years ago
Ryan Uber 9f9087badb agent: prefer config over persisted services/checks (#497)
10 years ago
Ryan Uber 2ebe85414f agent: pass error through when writing state files
10 years ago
Ryan Uber 79ba25b94d agent: default restored checks to critical status
10 years ago
Ryan Uber 46a5272a8a agent: first pass at local service and check persistence
10 years ago
Ryan Uber 8a652c6ffa agent: fix loading keyring on agent start
10 years ago
Ryan Uber 7a74f559b9 command: remove -init argument from keyring, auto-persist keyrings when using agent -encrypt
10 years ago
Ryan Uber 431b366d4f agent: split keyring functionality out of agent.go
10 years ago
Ryan Uber 2220ccdac2 command: various cleanup
10 years ago
Ryan Uber 353b67826a command: use separate key files for LAN/WAN
10 years ago
Ryan Uber 530f3ba747 command/keys: refactor, restrict key operations to server nodes
10 years ago
Ryan Uber 8a40f3888c agent: move keyring initialization out of agent, add -init option to keys command
10 years ago
Ryan Uber 0952535e33 agent: fix keyring loading when config is passed off
10 years ago
Ryan Uber b6037ef323 agent: clean up keyring file implementation
10 years ago
Ryan Uber fcb0961436 agent: refactor keyring loader
10 years ago
Ryan Uber 46ce9e936f command/keys: remove key command implemented
10 years ago
Ryan Uber 1ac6b10aed command/keys: use key command implemented
10 years ago
Ryan Uber 7b6f3d6dcc agent: install key command implemented
10 years ago
Ryan Uber 67b179ccc9 command: basic rpc works for keys command
10 years ago
Ryan Uber 4dd1b42477 consul: use rpc layer only for key management functions, add rpc commands
10 years ago
Ryan Uber 471ee9ce8f command: create serf dir if it doesn't exist, document -disable-keyring arg
10 years ago
Ryan Uber 0da6e08d9d consul: fix json marshaling
10 years ago
Ryan Uber e20a724999 consul: first pass at keyring integration
10 years ago
Ryan Uber df5859580f agent: pass notes field through for checks inside of service definitions. Fixes #449
10 years ago
Ryan Uber 2319460904 agent: initialize local consul service tags to fix service sync
10 years ago
Armon Dadgar 4f1fa3a4ce Merge pull request #401 from hashicorp/f-healthcheck
10 years ago
Ryan Uber cfca160cd5 formatting
10 years ago
Ryan Uber 2f93e13da8 consul: kill remaining use of HealthUnknown
10 years ago
Ryan Uber b1e8d351ab agent: re-use ConsulServiceID from consul package
10 years ago
Ryan Uber 4576b4eb29 agent: auto-register the consul service on server nodes
10 years ago
Armon Dadgar 93c17db1b2 agent: remove userEventEnc type
10 years ago
Armon Dadgar 2d03146d3b agent: Adding event ingestion
10 years ago
Armon Dadgar 314743c111 agent: working on user events
10 years ago
Armon Dadgar 1c341e6766 consul: expose UserEvent from Serf
10 years ago
Armon Dadgar cae4b421a3 agent: Adding ACL master token
10 years ago
Armon Dadgar a8063457f8 consul: ACL setting passthrough
10 years ago
Armon Dadgar 924e4bc7f1 Rename Expect to BootstrapExpect. Fixes #223.
11 years ago
Armon Dadgar 5b2941d43e Fixing merge conflict
11 years ago
Armon Dadgar a05e1aee15 agent: Fixing missing copy of RejoinAfterLeave flag. #110
11 years ago
Armon Dadgar 10c120bf9d agent: Fix issues with re-registration. Fixes #216
11 years ago
Robert Xu c60fd0542a Add expect bootstrap '-expect=n' mode.
11 years ago
Armon Dadgar 441d613e1b agent: Copy ServerName config
11 years ago
Armon Dadgar b144633815 consul: Gossip the build using Serf
11 years ago
Armon Dadgar 42e3729a7c agent: Add version to info output
11 years ago
Armon Dadgar acc048036b consul: Ensure clients also implement LocalMember
11 years ago
William Tisäter d0e447d29b Add `/v1/agent/self` and return local agent config
11 years ago
Mitchell Hashimoto 78b7c57ba3 command/agent: find proper private IP on Windows
11 years ago
Armon Dadgar 1256bf37f0 agent: Minor cleanups
11 years ago
Carlos Diaz-Padron 4124ddf763 Return pid file errors and fix help formatting
11 years ago
Carlos Diaz-Padron 60ef5a8a12 Add flag to agent to write pid file
11 years ago
Armon Dadgar 018482dc4c Store check output in dedicated field. Fixes #59.
11 years ago
Armon Dadgar 6bbe8fd493 agent: Adding minimum check interval. Fixes #64.
11 years ago
Haney Maxwell 0a5d75da5d documentation: minor comment consistency in agent.go
11 years ago
Armon Dadgar d8ca1f367c agent: Fixing wrong port usage for server
11 years ago
Armon Dadgar 8dd1e51bae agent: Simplifying configs
11 years ago
Armon Dadgar 922014530f agent: First pass at improving flags
11 years ago
Armon Dadgar 592953309e agent: Passthrough of TLS configurations
11 years ago
Armon Dadgar ffca4f5544 agent: Support protocol version setting
11 years ago
Armon Dadgar 015670d04e agent: Adding Stats() export
11 years ago
Armon Dadgar e12e5f7f68 agent: adding ability to reload services and checks
11 years ago
Armon Dadgar c1637b4978 agent: Adding server up callback to make state sync faster
11 years ago
Armon Dadgar 1eb0a76ee8 agent: Adding methods to register services and checks
11 years ago
Armon Dadgar c4f516d034 Adding CheckMonitors and CheckTTLs to agent
11 years ago
Armon Dadgar 410a0de0c8 Seperate localState from Agent
11 years ago
Armon Dadgar 1feec1adf8 First pass at local state + anti-entropy
11 years ago
Armon Dadgar 93dac80a86 Adding support for advertise address
11 years ago
Armon Dadgar f4692b468f Pulling in the RPC framework from serf
11 years ago
Armon Dadgar f33a9c1d2d Serf API changes
11 years ago
Armon Dadgar 9a2d3c144a Adding a bootstrap flag to allow single server raft
11 years ago
Armon Dadgar 39d9e3e78f More HTTP endpoints
11 years ago
Armon Dadgar 8caf0034db Working on the agent
11 years ago
Armon Dadgar aeccadd217 Filling in Agent basics
11 years ago
Armon Dadgar 289e1c598b Agent skeleton
11 years ago