Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add compaction of mutable segments for index blocks #1197

Merged
merged 132 commits into from
Jan 30, 2019

Conversation

robskillington
Copy link
Collaborator

@robskillington robskillington commented Nov 24, 2018

This change uses the compaction planner to constantly move mutable segments from the index block into a compacted state.

@robskillington robskillington force-pushed the r/add-compaction-of-mutable-segments branch from 976b8e5 to c3962d3 Compare November 24, 2018 17:50
@codecov
Copy link

codecov bot commented Nov 24, 2018

Codecov Report

Merging #1197 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #1197   +/-   ##
======================================
  Coverage    70.7%   70.7%           
======================================
  Files         826     826           
  Lines       69869   69869           
======================================
  Hits        49411   49411           
  Misses      17296   17296           
  Partials     3162    3162
Flag Coverage Δ
#aggregator 81.4% <0%> (ø) ⬆️
#cluster 85.6% <0%> (ø) ⬆️
#collector 78.4% <0%> (ø) ⬆️
#dbnode 80.9% <0%> (ø) ⬆️
#m3em 73.2% <0%> (ø) ⬆️
#m3ninx 74.3% <0%> (ø) ⬆️
#m3nsch 51.1% <0%> (ø) ⬆️
#metrics 17.8% <0%> (ø) ⬆️
#msg 74.9% <0%> (ø) ⬆️
#query 64.3% <0%> (ø) ⬆️
#x 75.9% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 15c7e4b...a7031f3. Read the comment docs.

@robskillington robskillington changed the base branch from r/use-pilosa-roaring-bitmaps to r/concurrent-index-block-queries November 24, 2018 17:51
@robskillington robskillington force-pushed the r/add-compaction-of-mutable-segments branch from 64592d1 to 632daaa Compare November 26, 2018 22:18
@robskillington robskillington changed the title [WIP] Add compaction of mutable segments for index blocks Add compaction of mutable segments for index blocks Nov 27, 2018
@robskillington robskillington force-pushed the r/add-compaction-of-mutable-segments branch 2 times, most recently from 2a4fc05 to 673ac2c Compare November 29, 2018 16:00
@robskillington robskillington force-pushed the r/add-compaction-of-mutable-segments branch from 673ac2c to 185c86f Compare November 29, 2018 16:02
richardartoul and others added 22 commits January 27, 2019 23:26
Temporal functions don't properly propagate series tags (thanks to @arnikola for suggesting this as the bug!).

For instance, given series:

```
coordinator_engine_datapoints{type="fetched"} 1386
coordinator_engine_datapoints{type="generated"} 104
```

a query like increase(coordinator_engine_datapoints[5s]) will return

```
{
  "__name__": "coordinator_engine_datapoints",
  "instance": "host.docker.internal:7203",
  "job": "coordinator",
  "role": "remote"
}
{
  "__name__": "coordinator_engine_datapoints",
  "instance": "host.docker.internal:7203",
  "job": "coordinator",
  "role": "remote"
}
```

dropping tags. Querying the same range without increase gives all tags, as expected.

Fix is simple; we weren't copying tags into the new block's SeriesMetas; now we do.
* Correctly return error for failed json unmarshal

* Added test for erroring on bad JSON parsing.
Adds processing for carbon queries, handling the find and query endpoints.
This also updates the carbon ingester configuration to match the default M3 ingester config where if the config is not nil, then it is used, otherwise it's not. This removes the enabled field which was rather different to how the M3 ingester config's presence or absence defines whether to use it or not.
@@ -0,0 +1,358 @@
// Copyright (c) 2018 Uber Technologies, Inc.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2019

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As talked, going to leave these as a fair few were from 2018 hah.

Copy link
Contributor

@richardartoul richardartoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@robskillington robskillington merged commit 0b9891b into master Jan 30, 2019
@robskillington robskillington deleted the r/add-compaction-of-mutable-segments branch January 30, 2019 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants