How to know which backend instance is the compactor

Hello,

In my Loki deployments, I have three write pods, three read pods, and three backend pods, with the backend containing the compactor. I’m wondering if this is wrong in Loki? From what I’m seeing in the 3.7.1 docs, the compactor is supposed to be run as a single instance, is that correct? What happens if I have multiple instances? It seems like based on the memberlist, Loki itself designates one instances as the compactor. In that case, should compactor_grpc_address point to that one instance? How would know which of the three instances is designated as the compactor?

Thanks

I assume you are deploying via the helm chart? If so that should be take care of for you.

Sounds like you are are deploying Loki in simple scalable mode. In simple scalable mode, compactor will use membership ring to elect a single instance to run the compaction. You would need to set compactor_address to the service discovery address for the backend service, not just one instance of the backend.