Commit Graph

1063 Commits (04fc5c8a452561afc2d097193d1158a719386166)

Author SHA1 Message Date
Hrishikesh Barua 9f9aa5084b Added help text for -dev option #1804
9 years ago
James Phillips b6cd4318d6 Merge pull request #1851 from hashicorp/f-ipv6-bind
9 years ago
Wim b5d45322b4 Allow [::] as a bind address (binds to first public IPv6 address)
9 years ago
Miquel Sabaté Solà 615c93a77d Used 'unconvert' to remove unneeded conversions
9 years ago
Miquel Sabaté Solà 4567963d8e command: deprecated the -dc flag in the agent CLI
9 years ago
James Phillips 6e2c106006 Merge pull request #1819 from hashicorp/f-check-accept
9 years ago
James Phillips 4cb16808f4 Adds default set of accept headers for HTTP checks.
9 years ago
James Phillips 5c80647e34 Tweaks algorithm so it's safe with an empty list and adds a PQ test.
9 years ago
Igor Dubinskiy 3a25860270 Make sure UDP DNS responses aren't larger than allowed
9 years ago
James Phillips 98784c6416 Updates to latest compiled ui assets.
9 years ago
James Phillips eb7004f2b8 Renames "debug" endpoint and structures to "explain".
9 years ago
James Phillips d7288e3a5e Adds a prepared query debug endpoint.
9 years ago
Calvin Leung Huang ff38fbc6a3 Correct the rtt -wan error message
9 years ago
James Phillips f46fa33278 Tweaks formatting of inline output messages.
9 years ago
James Phillips 70575002d9 Retains the last output when a TTL check times out.
9 years ago
James Phillips 7ebad899da Adds a new PUT-based TTL check update endpoint.
9 years ago
Stefan Engstrom 525cb0abc1 add accept header */* for agent check
9 years ago
James Phillips 052140f8a7 Merge pull request #1703 from alistanis/fix-issue-#1661
9 years ago
James Phillips e79dd7c8de Fixes redirect from / to /ui when internal UI is enabled.
9 years ago
Chris Cooper 2c6f873ecd add missing test
9 years ago
Chris Cooper fe0e3aaaa0 fixes issue #1661 and adds supporting test
9 years ago
James Phillips 56cbabff63 Adds a sanity check to the local node info compare.
9 years ago
James Phillips d2cc2801fa Merge pull request #1698 from hashicorp/pr-1547-slackpad
9 years ago
James Phillips 607728ddca Adds a test to make sure we get the local address within the DC.
9 years ago
James Phillips 524aaae9b7 Increases wait to account for random stagger.
9 years ago
James Phillips 6790930c4e Factors address translation into a single function.
9 years ago
James Phillips 4be2ab1a75 Moves tagged wan address to be managed by anti-entropy, not serf.
9 years ago
James Phillips b59599742d Adds a test to make sure the local sync doesn't clobber tagged addresses.
9 years ago
James Phillips c60a526fde Sets up config for more address tags down the road, renames struct members.
9 years ago
Evan Gilman de8fd561d0 Use a map for additional node addresses
9 years ago
Evan Gilman 2f26771bb1 Add tests for consul WAN translation
9 years ago
Evan Gilman 146f719a66 Explicitly set advertise address in agent tests
9 years ago
Evan Gilman a3240d28ba Consider WAN addresses during Node and SRV record lookup
9 years ago
Evan Gilman 496cf5ae73 Implement `translate_wan_addrs` config option
9 years ago
Evan Gilman 8fa2a60208 Rectify value of `AdvertiseAddrWan` when set elsewhere
9 years ago
James Phillips ed8a71efd7 Store WanAddress during Service/Check sync
9 years ago
James Phillips 507c83bdbd Merge pull request #1690 from alistanis/use-http-package-statuses
9 years ago
James Phillips d60be51f01 Merge pull request #1284 from nbrownus/telemetry
9 years ago
David Wittman 8667394955 Fix formatting in exec help
9 years ago
James Phillips 7bc2ba4c18 Merge pull request #1654 from ryanslade/invalid-check-message
9 years ago
Chris Cooper 5a07e89bb9 Merge branch 'master' of https://github.com/alistanis/consul into use-http-package-statuses
9 years ago
Chris Cooper e2065e10c0 add comment codes
9 years ago
Chris Cooper 00dd9d6b78 refactors http server error codes to use the http statuses defined in the http package instead of literals
9 years ago
Sean Chittenden 8deec17f73 Use panic instead of returning a sentinel UUID values in unit tests
9 years ago
Sean Chittenden 7af6a94edb Factor out duplicate functions into a lib package
9 years ago
Nate Brown 43a4f3fe02 Option to disable hostnames from telemetry
9 years ago
Ryan Slade dd98602bd7 Updated invalid check error message.
9 years ago
James Phillips f24a044755 Fixes the static asset generator for new pkg path, updates assets.
9 years ago
Seth Vargo cae0ff354a Use HTTPS + www. where appropriate
9 years ago
James Phillips 71e3901a65 Merge pull request #1592 from hashicorp/b-reap
9 years ago
James Phillips 343838f12b Adds support for the reap lock.
9 years ago
Matt McCoy 9cbed7f89e Add consul agent help for advertise-wan
9 years ago
James Phillips 49342dc973 Makes the timeout behavior more intuitive.
9 years ago
James Phillips 1d733f4c36 Defaults monitor retries to 3 retries @ 1s for the consul lock command.
9 years ago
James Phillips 4afeddacc8 Adds monitor retries to the consul lock command.
9 years ago
James Phillips 8caa9e4c7e Adds "try" support to locks and semaphores.
9 years ago
James Phillips c1fe9092ed Merge pull request #1550 from hashicorp/f-devmode
9 years ago
Philippe M. Chiasson a2eddcab38 remove address splitting
9 years ago
Philippe M. Chiasson 21345a8a7f Move logged client IP to the end of the log message
9 years ago
Philippe M. Chiasson 34c36d9205 Merge branch 'master' of http://github.com/hashicorp/consul into issue/1447/http-access-logs
9 years ago
Ryan Uber 9002bfa37d agent: enable ui for dev mode
9 years ago
Ryan Uber afafae53fd consul: dev mode works
9 years ago
Ryan Uber 87c1283b73 agent: update assetfs output
9 years ago
Ryan Uber 3cf6a173a5 agent: static UI is configurable
9 years ago
Ryan Uber 2d7ced22b3 agent: initial web assets
9 years ago
Ryan Uber c3e7c98da2 agent: compile web assets into consul binary
9 years ago
Philippe M. Chiasson 9553ac0ca8 Merge branch 'master' of http://github.com/hashicorp/consul into issue/1447/http-access-logs
9 years ago
James Phillips d61661a98f Adds a Bool helper function.
9 years ago
James Phillips e80d1a58fb Moves logger down where it's used for reaping.
9 years ago
James Phillips 0b1c346990 Changes sense of option to "reap" and uses nil for "not set".
9 years ago
James Phillips 2b257c922e Adds child process reaping when Consul is running as PID 1.
9 years ago
James Phillips 651f255b9b Converts the DNS metric to a gauge which gives us a count and a time.
9 years ago
James Phillips a4dc11167f Adds telemetry on number of DNS queries served, per-agent.
9 years ago
WangFenjin 29c0516d58 Fix typo
9 years ago
James Phillips a61d89d0e6 Removes the GOMAXPROCS warnings which are obsolete for Go 1.5+.
9 years ago
Philippe M. Chiasson 65512cae73 Add client ip to http access logs
9 years ago
James Phillips 95c708f65e Adds Docker checks support to client API.
9 years ago
James Phillips 049da2cef2 Breaks up huge HTTP endpoint functions.
9 years ago
James Phillips cd6be4a88d Avoids taking the length again when parsing DNS queries.
9 years ago
James Phillips e1ce1a34b0 Moves conversion of nil slices up to HTTP layer for prepared queries.
9 years ago
James Phillips 4715c04c98 Adds a test to make sure a stale retry terminates.
9 years ago
James Phillips 67fd4fa78d Returns a 404 from a get or execute of a nonexistent query.
9 years ago
James Phillips e9480ecb02 Plumbs the service name back and uses agent-specific TTL settings as a fallback.
9 years ago
James Phillips 81b43135f9 Adds unit tests for prepared queries and DNS, using existing tests for equivalence.
9 years ago
James Phillips 4a0a60af55 Adds DNS support for prepared queries (needs tests).
9 years ago
James Phillips 5e7523ea4b Adds a slightly more flexible mock system so we can test DNS.
9 years ago
James Phillips da20e6668b Adds a note about obfuscating query name/ID from the logs.
9 years ago
James Phillips 57be55103c Adds an HTTP endpoint for prepared queries.
9 years ago
James Phillips 989619cb6b Moves DNS over to new shuffle and filter functions.
9 years ago
James Phillips c248b0017a Fixes nil slices from HTTP endpoints.
9 years ago
James Phillips 8defe75387 Merge pull request #1293 from talwai/master
9 years ago
talwai f6f2e19c6c Kill unused import in command.go
9 years ago
James Phillips 98731f7272 Fixes unit test fail due to expected truncated message.
9 years ago
talwai bc12c5e711 Add DogStatsd configuration
9 years ago
James Phillips 3d1702969f Fixes a go vet finding.
9 years ago
James Phillips d06fc28a0a Prevents agents from considering Raft information when doing sync checks.
9 years ago
James Phillips c0bd639662 Makes the version upshift code look at the correct version field.
9 years ago
Diptanu Choudhury ab7ab8e58e Merge pull request #1343 from hashicorp/f-docker-check
9 years ago
Diptanu Choudhury 3d68d06ac7 Forcing the Env variable to empty while testing the default shell logic
9 years ago
Diptanu Choudhury 2fdcf1ae28 Added a test for selecting shell from env
9 years ago
Diptanu Choudhury 471442e9a4 Making an explicit check to test whether a check is of type Monitor
9 years ago
Diptanu Choudhury 1e240b5c59 Fixed the tests
9 years ago
Diptanu Choudhury f0c783d1a8 Added a test to check if we are properly truncating docker exec outputs
9 years ago
Diptanu Choudhury 582786523a Added a test for exit code 1 with docker exec
9 years ago
Diptanu Choudhury 9efbd1affa Fixed the Fake Docker client to simulate Exec start failures
9 years ago
Diptanu Choudhury 423f7fbcac Not adding the docker check if we couldn't create the client
9 years ago
Diptanu Choudhury f5f5ed0c79 Making sure the script is not empty if it's a docker check
9 years ago
Diptanu Choudhury b4af7f44af Updated the comment for CheckType
9 years ago
Diptanu Choudhury 4c1818eb61 Collect and truncate the output from docker exec
9 years ago
Diptanu Choudhury 5f8f531d2a Defaulting to Monitor check
9 years ago
Diptanu Choudhury 809e9f5284 Extracted the logic of figuring out the shell and fixing the logic to find out if the check is a Docker check
9 years ago
Diptanu Choudhury 31cdf4fe64 Added some tests for docker check
9 years ago
James Phillips f6b589d768 Merge pull request #1296 from hashicorp/f-fast-sync
9 years ago
Diptanu Choudhury 40f72a8323 Marking the state of a service as critical if the Docker Daemon doesn't respond while running checks
9 years ago
Diptanu Choudhury d695012e40 Adding a debug log to indicate the exit code of failed check
9 years ago
Diptanu Choudhury 83db728133 Registering the Exec with Docker Daemon everytime the check is invoked
9 years ago
Diptanu Choudhury 71ede8addb Implemented Docker health checks
9 years ago
James Phillips 088603949c Runs go fmt (sorts new go-cleanhttp imports).
9 years ago
James Phillips ecd3a1d1d2 Completes rebase of network coordinates to new memdb.
9 years ago
James Phillips 439110f384 Gives RTT class a more Go-like name.
9 years ago
James Phillips 99cfbb8a47 Defaults second node to agent if not given. Removes -short option and tweaks output formatting.
9 years ago
James Phillips 88845f7d71 Cleans up after code review, adds a -short option to "consul rtt" command.
9 years ago
James Phillips fb8900156a Adds a "consul rtt" command.
9 years ago
James Phillips 660da92152 Makes the default protocol 2 and lets 3 interoperate with 2.
9 years ago
James Phillips e21b450f69 Runs go fmt after latest rebase.
9 years ago
James Phillips e8322ffe00 Adds a test for the `DisableCoordinate` config.
9 years ago
James Phillips f9da231a1c Adds coordinate of agent to self endpoint.
9 years ago
James Phillips 6289764ea2 Moves sorting up into coordinate endpoint HTTP handlers.
9 years ago
James Phillips d45fc23abf Installs a friendly handler for coordinate endpoints when coordinates are disabled.
9 years ago
James Phillips ce0e9759f8 Fixes config merge fn for disabling coordinates and adds it to JSON.
9 years ago
James Phillips 33e3505aea Adds endpoints for raw network coordinates.
9 years ago
James Phillips 9c9195746f Changes ?near=self to a safer ?near=_agent, which is also clearer about what it does.
9 years ago
James Phillips 9caa5b3653 Adds distance sorting to health endpoint. Cleans up unit tests.
9 years ago
James Phillips e47eea3f3a Adds a magic "self" node name to distance queries.
9 years ago
James Phillips 54ef97b268 Adds tests for HTTP interface. Removes a stray mark.
9 years ago
James Phillips 89c7203f31 Adds coordinate sorting support to catalog queries for nodes and service nodes.
9 years ago
James Phillips d734697820 Turns down the coordinate sync rate a bit more.
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 7e6d52109b Hardens Consul from bad coordinates from other nodes.
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 92567841d6 Removes one more WAN leftover.
9 years ago
James Phillips 86b112fe31 Does a clean up pass on the Consul side.
9 years ago
James Phillips 01d2452ea3 Merges config changes after rebase.
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