Commit Graph

7549 Commits (9fd95b80a29b7c0a253a709f2c8fdc758da6daa4)

Author SHA1 Message Date
Philip O'Toole f0f254ae69 Merge pull request from influxdb/graphite_shutdown
Shutdown UDP Graphite on SIGTERM
2015-09-05 08:49:13 -07:00
Jason Wilder 4e590d9591 Merge pull request from influxdb/jw-meta-open
Fix race when starting monitor service
2015-09-05 09:37:19 -06:00
Jason Wilder 380d82b078 Fix race in local node creation
It was possible for the metastore Open call to return before it actually
created it's local node.
2015-09-05 09:07:37 -06:00
Jason Wilder b8da247b08 Open monitor server after metastore is ready 2015-09-05 09:06:51 -06:00
Philip O'Toole 407591985c Update CHANGELOG 2015-09-05 00:33:16 -07:00
Philip O'Toole fa29e12222 Shutdown UDP Graphite on SIGTERM
Service.Close() had no way of closing the UDP Conn. This change makes
the UDP an attribute of the server, so Close() can access it.
2015-09-05 00:30:59 -07:00
Philip O'Toole d1e6dced47 Use actual kill command, not shell alias
https://www.freebsd.org/doc/handbook/basics-processes.html

[ci skip]
2015-09-05 00:18:54 -07:00
Philip O'Toole 54c832f4a8 Correct shutdown in init.d script
This was already reviewed by @jwilder, but merged incorrectly.
2015-09-04 23:49:47 -07:00
Philip O'Toole 406480f4b2 Retention enforcement period to 30 minutes
This was previously set in the code.

[ci skip]
2015-09-04 23:30:13 -07:00
Philip O'Toole 214cfea53c Monitor retention policy is configurable 2015-09-04 22:53:04 -07:00
Philip O'Toole 03315bc9dd Add cluster-level tags to all stats when stored
This allows stats for all nodes in a given cluster, for example, to be
easily queried.
2015-09-04 18:36:14 -07:00
Philip O'Toole cfd0acdbc5 Merge pull request from influxdb/runtime_stats
Add Go memstats to statistics
2015-09-04 16:36:19 -07:00
Philip O'Toole 0d3a8c564c Merge pull request from influxdb/fix_internal_types
Convert expvar values to the correct type int64
2015-09-04 14:56:23 -07:00
Philip O'Toole 30e2ca1d2e Merge pull request from fg2it/package_options
Package options
2015-09-04 14:53:02 -07:00
Philip O'Toole e89978ef63 Merge pull request from influxdb/wait_for_exit
When stopping service, wait until actually exited
2015-09-04 14:50:33 -07:00
Philip O'Toole 68169a04d6 Update CHANGELOG 2015-09-04 14:45:31 -07:00
Philip O'Toole b5df129c80 When stopping service, wait until actually exited
Fixes issue .
2015-09-04 14:45:13 -07:00
Philip O'Toole 23df8663c3 Convert expvar values to the correct type int64
expvar only allows int increments and decrements, so use int64 when
converting.
2015-09-04 14:41:13 -07:00
Jason Wilder 08656f515e Merge pull request from influxdb/jw-3960
Fix cluster restarting issues
2015-09-04 15:16:51 -06:00
Jason Wilder 9cb243083f Fix race in tcp.Mux
The handler connection channel was closed while writing to it.  We now wait for all
connections to be demux before closing the channels.
2015-09-04 15:10:17 -06:00
Jason Wilder e63e14f47f Update change log 2015-09-04 14:52:08 -06:00
Jason Wilder 4ed694ab7b Handle demux connections in separate goroutine
The mux listener was handling connections and demux serially.  This could cause
issues if one handler was slow or blocked.  For example, if a node had many
hinted handed writes queued for a down node, when the down node was started, it
would start handling the write requests (possibly before it had synchronized with
the cluster).  This would cause the connectiosn to block and also prevent the cluster
synchronization from occuring because they both use the same mux listener.

Fixes 
2015-09-04 14:52:08 -06:00
Jason Wilder 3404fe3872 Wait for meta-store to find the leader before returning
The meta-store would open but may not have finished loading the raft log. If write
requests came in, they could fail or be dropped because of missing shard group
info.  This change makes the meta store only return after it has found the leader
and is really ready.

This change also fixed a race in the ClusterRestart test that may be causing it
to fail sporadically.

Fixes  
2015-09-04 14:51:57 -06:00
Philip O'Toole bda1e65a99 Merge pull request from influxdb/docker_fetch_only
Build docker only when necessary during tests
2015-09-04 13:46:53 -07:00
Philip O'Toole 36d6d79cc9 Build docker only when necessary during tests 2015-09-04 13:40:05 -07:00
Philip O'Toole f96ec228a4 Add Go memstats to statistics 2015-09-04 13:20:58 -07:00
Jason Wilder 13dbc8f0ba Merge pull request from influxdb/jw-file-utils
Add inspect tool
2015-09-04 14:12:05 -06:00
Philip O'Toole a500eb6c6d Merge pull request from influxdb/httpd_stats2
Add stats to httpd package
2015-09-04 12:38:57 -07:00
Philip O'Toole e513b68e61 Update CHANGELOG
[ci skip]
2015-09-04 12:38:03 -07:00
Philip O'Toole 579e2a250c Add stats to httpd package 2015-09-04 12:37:59 -07:00
Jason Wilder 99d02e3d62 Log the reason a remote write request might be dropped to the error message 2015-09-04 13:14:46 -06:00
Philip O'Toole 267f8e6c11 Skipping race test
Issue 
2015-09-04 11:59:28 -07:00
Cory LaNou 1af8dd81af Merge pull request from influxdb/top
Wire up Top aggregate function
2015-09-04 13:57:07 -05:00
Cory LaNou a09e2c27bb minor tweaks based on PR review 2015-09-04 13:41:46 -05:00
Cory LaNou fa4415b3a4 refactor processing top/bottom results. clarify some comments 2015-09-04 13:30:43 -05:00
Cory LaNou bdc54cf5d2 helpers -> pkg + readme 2015-09-04 13:30:43 -05:00
Cory LaNou be92093490 update changelog 2015-09-04 13:30:43 -05:00
Cory LaNou b62d8c0515 expand variable names for clarity 2015-09-04 13:30:43 -05:00
Cory LaNou 65e652850a btf -> tmin 2015-09-04 13:30:42 -05:00
Cory LaNou 08295c578f refactor processTopBottom 2015-09-04 13:30:42 -05:00
Cory LaNou 6a3bedc0e1 add additional parser test for top function with tags 2015-09-04 13:30:42 -05:00
Cory LaNou 9ab3d89c06 bucketTime* -> tMin* 2015-09-04 13:30:42 -05:00
Cory LaNou 4a9e936858 minor comment fix 2015-09-04 13:30:42 -05:00
Cory LaNou 3ca93594c3 BucketTime -> TMin 2015-09-04 13:30:42 -05:00
Cory LaNou b71833ab46 refactor allowMixedAggregates, comment cleanup 2015-09-04 13:30:42 -05:00
Cory LaNou 88ce04a4b9 move comment to proper line 2015-09-04 13:30:42 -05:00
Cory LaNou 3867fed0ff one additional test for top 2015-09-04 13:30:42 -05:00
Cory LaNou d3465ba3a9 remove sourcegraph files added in a rebase 2015-09-04 13:30:42 -05:00
Cory LaNou 9703467171 refactor validateAggregates 2015-09-04 13:30:41 -05:00
Cory LaNou 3db5a85139 all tests passing for top 2015-09-04 13:30:41 -05:00