You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
netstorage: [traceID distribution] Change the data distribution by traceID (#65)
### Describe Your Changes
For cluster mode, distribute data by `trace ID` instead of `full random`.
This feature will make the spans of the same trace go to the same vtstorage instance.
```
goos: darwin
goarch: arm64
pkg: github.com/VictoriaMetrics/VictoriaTraces/app/vtstorage/netinsert
cpu: Apple M1 Pro
BenchmarkGetNodeIdx
BenchmarkGetNodeIdx-8 12863986 93.03 ns/op 0 B/op 0 allocs/op
BenchmarkGetNodeIdxBak
BenchmarkGetNodeIdxBak-8 11386562 106.3 ns/op 0 B/op 0 allocs/op
```
A simple benchmark with 15k ingestion rate to each vtinsert:
<img width="3024" height="1764" alt="image" src="https://github.com/user-attachments/assets/4e518c01-c4ce-4fbd-8911-501da811c863" />
### Checklist
The following checks are **mandatory**:
- [x] My change adheres to [VictoriaMetrics contributing guidelines](https://docs.victoriametrics.com/victoriametrics/contributing/#pull-request-checklist).
- [x] My change adheres to [VictoriaMetrics development goals](https://docs.victoriametrics.com/victoriametrics/goals/).
0 commit comments