This repository was archived by the owner on Jul 19, 2023. It is now read-only.
Commit ebc3e04
Introduce symdb (#767)
* Increase parquet writer PageBufferSize
* reduce by 2 page buffer size
* Introduce symdb
* Add chunk format description
* Add chunk format description
* Improve naming
* Implement stack trace appender
* Limit chunk by number of nodes
* Stacktrace ID is uint32
* Add in-memory stacktrace resolver
* Add writer
* Add writer
* Fix stacktrace resolver
* Single pass write
* Index file refactoring
* Fixes, improvements, notes
* Ignore empty stacktraces
* Fix chunk boundary check
* Fix tests
* Store chunk headers sorted
* Make chunk index explicit
* Add file reader
* Use group varint encoding
* Refine stacktrace tree
* Stacktrace tree race condition elimination
* Remove unused stacktracesResolve.do
* Better nil coalescence in stack trace appender
* Format imports
* Use the new symDB package (#770)
* Ingest stacktraces in the new symdb
* Setup read in memory read path
* Fix up a comment placement
* Start setting up the read path
* Update to uint32
* Introduce stacktrace partition (#775)
* Introduce stacktrace partition
This determines the partition of a particular profile, by looking first
at its metadata:
* If there is a `Filename` on the main mapping use its
filepath.Base(Filename)
* Failing that take the externally supplied `service_name`
* Fallback to `unknown`
Take the underlying string value and hash.
* After a chat with cyril we decided to not longer mod and use the hash
straight away.
We don't wanted to risk the collisions of two very big stacktrace
applications.
* Remove reconstructMeta from singleBlockQuerier
* support multiple versions of stacktraces resolver
* Integrate v2 reader for stacktraces in block reader
* Fixes tests
* Rewrite locations Ids
* Rewrite test for counting uniq stacktraces
* lint and fmt
* Fixes more tests
* Fixes leftover from todo
---------
Co-authored-by: Christian Simon <[email protected]>
* Use prefixed bucket for symbols
* Initialize locationsIdsByStacktraceID
* Initialize locationsIdsByStacktraceID for pprof as well
* Fix chunk headers sort
* Inline node alloc
* Mapping filename extraction
* Tidy go.mod
* Fix TestHeadIngestStacktraces
* Use symdb.DefaultDirName
* Sort mappings on write
* Make column iterator to respect the context
* Fix unexpected EOF on stacktrace chunk unmarshal
* Fix symbols upload
* Fix symbols upload
* Release fetched data
* 3MB Page Buffer Size
* Sort stacktraces IDs as expected by the resolver
---------
Co-authored-by: Cyril Tovena <[email protected]>
Co-authored-by: Christian Simon <[email protected]>1 parent 4d21cbe commit ebc3e04
File tree
29 files changed
+3138
-456
lines changed- pkg
- model
- phlaredb
- block
- query
- schemas/v1
- symdb
- testdata
29 files changed
+3138
-456
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
| 574 | + | |
| 575 | + | |
574 | 576 | | |
575 | 577 | | |
576 | 578 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
61 | 64 | | |
62 | 65 | | |
63 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
| 134 | + | |
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
| |||
143 | 145 | | |
144 | 146 | | |
145 | 147 | | |
146 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
147 | 152 | | |
148 | 153 | | |
149 | 154 | | |
| |||
174 | 179 | | |
175 | 180 | | |
176 | 181 | | |
177 | | - | |
178 | | - | |
179 | 182 | | |
180 | 183 | | |
181 | 184 | | |
| |||
249 | 252 | | |
250 | 253 | | |
251 | 254 | | |
252 | | - | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
253 | 259 | | |
254 | 260 | | |
255 | 261 | | |
| |||
0 commit comments