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
use grpc for communicating with compactor for query time filtering of
data requested for deletion (#7804)
Manual backport of #7804 and #7814
**What this PR does / why we need it**:
Add grpc support to compactor for getting delete requests and gen number
for query time filtering.
Since these requests are internal to Loki, it would be good to use grpc
instead of HTTP same as all the internal requests we do in Loki.
I have added a new config for accepting the grpc address of the
compactor. I tried having just the existing config and detecting if it
is a grpc server, but it was hard to do it reliably, considering the
different deployment modes we support. I think it is safe to keep it the
same and eventually deprecate the existing config.
**Checklist**
- [x] Documentation added
- [x] Tests updated
- [x] `CHANGELOG.md` updated
(cherry picked from commit 1410808)
Co-authored-by: Sandeep Sukhani <[email protected]>
Copy file name to clipboardexpand all lines: CHANGELOG.md
+6
Original file line number
Diff line number
Diff line change
@@ -45,10 +45,16 @@ Check the history of the branch FIXME.
45
45
46
46
#### Loki
47
47
48
+
##### Enhancements
49
+
50
+
*[7804](https://github.com/grafana/loki/pull/7804)**sandeepsukhani**: Use grpc for communicating with compactor for query time filtering of data requested for deletion.
51
+
48
52
##### Fixes
53
+
49
54
*[7453](https://github.com/grafana/loki/pull/7453)**periklis**: Add single compactor http client for delete and gennumber clients
50
55
51
56
##### Changes
57
+
52
58
*[7877](https://github.com/grafana/loki/pull/7877)A **trevorwhitney**: Due to a known bug with experimental new delete mode feature, the default delete mode has been changed to `filter-only`.
throwaway.Var((*flagext.StringSlice)(&c.InstanceInterfaceNames), "common.instance-interface-names", "List of network interfaces to read address from.")
58
61
59
62
f.StringVar(&c.CompactorAddress, "common.compactor-address", "", "the http address of the compactor in the form http://host:port")
63
+
f.StringVar(&c.CompactorGRPCAddress, "common.compactor-grpc-address", "", "the grpc address of the compactor in the form host:port")
0 commit comments