Commit Graph

7046 Commits (v0.9.3-rc3)

Author SHA1 Message Date
Paul Dix 43733f30f8 Fix metafile so it doesn't get trampled by other goroutines.
Fixes #3832 and fixes #3833
2015-08-25 18:35:33 -04:00
Daniel Morsing f30e2d8b16 Remove unused buffer allocation
The buffer allocation in bz1 was unused and I'm fairly certain that it
was harmful to performance if used. For queries that run through a bz1
block, needing to hold on to a 64kb block is expensive. Better to churn
on the allocator and have the blocks be released when they are unused
than to have 64kb hanging around for each series regardless of size.

Thanks to @jwilder for brainstorming this issue with me.
2015-08-25 15:55:51 -06:00
Paul Dix ad3c40089f Fix bug with bz1 where some data would get hidden.
Seeking to the middle of a compressed block wasn't working properly. Fixes #3781
2015-08-25 16:27:27 -04:00
Paul Dix 1ed64aa84c Improve WAL flush log output. 2015-08-23 11:53:52 -04:00
Cory LaNou 808fe76d1d Update importer readme
We no longer insert the `upgrade_artifiact`.  Instead we now just use the entire series name as the measurement name.

Add info on throttling as well as status messages.
2015-08-22 11:40:02 -04:00
Cory LaNou 762d06307c fix bad rebase 2015-08-22 10:34:45 -04:00
Cory LaNou 6a4761ae5d Document export metrics 2015-08-22 10:34:16 -04:00
Cory LaNou d4ec3d32b8 changelog 2015-08-22 10:34:03 -04:00
Cory LaNou ecddffc9d5 first pass at import/export documenation 2015-08-22 10:33:47 -04:00
Cory LaNou 6aa0cc6094 changelog 2015-08-22 10:13:01 -04:00
Cory LaNou 4a5fa7981a minor refactoring, comment updates 2015-08-22 10:12:49 -04:00
Cory LaNou 52719d579a throttle import 2015-08-22 10:12:34 -04:00
Paul Dix d0646a8871 Ensure WAL cache gets sorted when needed.
Fixes #3792
2015-08-21 15:06:41 -07:00
Paul Dix e91a82ca41 Fix map concurrent race with adding a shard to a series in the index. 2015-08-21 16:37:25 -04:00
Philip 9607ec0f62 Log Graphite batch size and timeout 2015-08-21 13:16:46 -07:00
Paul Dix 84fdb76362 Update store to properly manage WAL create/delete.
* Update the store to remove the WAL directories associated with a shard or database when they are deleted.
* Fix the Store so that it creates separate WAL directories for databases and retention policies.
2015-08-21 15:38:58 -04:00
Philip O'Toole a519a6229f Test explicitly SELECTing time as a field 2015-08-21 12:23:00 -07:00
Philip O'Toole f026ef8207 Refine implementation, sole time is invalid 2015-08-21 12:23:00 -07:00
Philip O'Toole 24ac559296 Update CHANGELOG 2015-08-21 12:23:00 -07:00
Philip O'Toole de665eaa41 Add parser-level test for SELECT on time 2015-08-21 12:23:00 -07:00
Philip O'Toole 06cde755b7 SELECT on time should return error
Fixes #3010.
2015-08-21 12:23:00 -07:00
Jason Wilder 4f8a904f03 Update changelog 2015-08-21 12:32:11 -06:00
Jason Wilder 1935619ed2 Fix parsing NaN values without timestamps
Fixes #3539 partially.  NaN cannot be queried though and needs to be handled
by the query engine differently.
2015-08-21 12:31:59 -06:00
Jason Wilder 7ca7c71994 Fix regression where measurement names with equals could not be parsed 2015-08-21 12:31:53 -06:00
Paul Dix 32248524af Update stress to work with fewer than 10k series. 2015-08-21 11:26:21 -04:00
Jason Wilder 4f7d66a3c5 Optimize Point.unescape
This func show up in profiling.  It's called frequently from multiple places and
can be made more efficient.  The previous implementation looped over the input
slice 4 times updating an returning a new slice each time.  The changes it to loop
once and create one result slice.

With influx_stress

Before:

  Wrote 10000000 points at average rate of 241750
  Average response time:  187.78968ms

After:

  Wrote 10000000 points at average rate of 254618
  Average response time:  172.235028ms
2015-08-21 08:36:46 -06:00
Jason Wilder d32399c800 Cache name and fields if requested
Through profiling of writes, point.Fields() and point.Name() were called
repeatedly in PointsWriter and the Shard.  These calls are somewhat expensive
when writing large batches so we can cache them to avoid wasting CPU cycles.

Using influx_stress with default settings

Before:
  Wrote 10000000 points at average rate of 202570
  Average response time:  235.450355ms

After:
  Wrote 10000000 points at average rate of 246120
  Average response time:  182.881008ms
2015-08-20 16:21:45 -06:00
Philip O'Toole fbc33c6818 Release note SELECT * changes
[ci skip]
2015-08-20 14:31:08 -07:00
Philip O'Toole 8bc939485d Fix typo in CHANGELOG
[ci skip]
2015-08-20 14:12:36 -07:00
Philip O'Toole 51ac67ba7a Add note re new required config wal-dir
[ci skip]
2015-08-20 14:11:46 -07:00
Ben Johnson 28c1c0a83e Merge branch '0.9.3' of https://github.com/influxdb/influxdb into 0.9.3 2015-08-20 14:25:15 -06:00
Ben Johnson 95041aad14 Append to small bz1 blocks
This commit changes the bz1 append to check for a small
ending block first. If the block is below the threshold
for block size then it is rewritten with the new data
points instead of having a new block written.

Conflicts:
	tsdb/engine/bz1/bz1.go
	tsdb/engine/bz1/bz1_test.go
2015-08-20 14:24:46 -06:00
Philip O'Toole 63f7784bdd Re-enable chunking test post WAL updates
Fixes issue #3725.
2015-08-20 12:56:54 -07:00
Paul Dix 54b1c62296 Ensure partition only closes current segment if its there 2015-08-20 15:26:48 -04:00
Ben Johnson 49b5e3e5fe fix wal close deadlock 2015-08-20 15:26:48 -04:00
Paul Dix cdeade0b53 Fix logic with closing partitions 2015-08-20 15:26:48 -04:00
Paul Dix 2544f3e5f4 Make bz1 close the WAL before closing bolt so it can flush, fix locking on write. 2015-08-20 15:26:47 -04:00
JP 41e88bf22f bump to version 0.9.3 and build assets 2015-08-20 10:58:19 -07:00
Paul Dix 995d35e882 Fix reads of metadata file in WAL 2015-08-20 13:09:04 -04:00
Paul Dix 914dcfcb07 Fix logging in segments and style on log messages 2015-08-20 12:05:39 -04:00
Paul Dix 1b4fb9a032 Fix WAL logging enable. 2015-08-20 12:05:30 -04:00
Paul Dix 06da7202cd Fix query engine not goroutine safe issue. 2015-08-20 11:33:43 -04:00
Paul Dix 04ddb24152 Fix bug querying data from WAL while compacting.
If a flush is happening and you bring up a cursor for a series, if that series didn't have any data in the cache (after the flush started) then it would return no data. What it should have done instead is return the data that is in the flush cache, which is held in separate area of memory until it is committed to the index.
2015-08-20 11:05:29 -04:00
Paul Dix 26dba919c2 Make the WAL cursor create a copy of the cache 2015-08-19 18:02:49 -04:00
Philip O'Toole 63f975b47c Reduce test size to 1gb, for 32-int compatibility 2015-08-19 12:58:39 -07:00
Jason Wilder dd68989fb6 Ensure wal-dir has a default value 2015-08-19 13:54:30 -06:00
Philip O'Toole 8c400343f7 Update CHANGELOG 2015-08-19 12:53:28 -07:00
Philip O'Toole b0711f2bfd Update shard retention time when policy changes
Fixes issue #3702.
2015-08-19 12:53:20 -07:00
Philip O'Toole 1efdab924a Skip failing chunking test
Until https://github.com/influxdb/influxdb/issues/3725 is fixed.
2015-08-19 11:41:30 -07:00
Philip O'Toole 2dac9663e3 A gigabyte parsing testing only requires 2GB
Fixes issue #3732.
2015-08-19 11:26:39 -07:00