The was our starting configuration when we stood up loki the first time.
Has been working for us.
Now that the dust has settled on 2.4, we’re trying to upgrade.
Node one is the zero dependency configuration with our IP addresses and it runs the compactor.
Node two and three as the same as one, minus the compactor.
They were defaulting to target=all in 2.3
I’ve added targets: "all" to node one, and targets: "distributor,querier,ingester" to nodes two and three.
The good news - the cluster starts, processes logs.
The bad news - searching from grafana/explore only works when the load balancer is pointing at node one. I’ve tried to add other targets to start on nodes two and three, but that ends in error.
Q1: Is there a functional reference design using multiple nodes behind a LB and not on Kubernetes that somebody can point me to?
Q2: Why is the compactor included in the “all” target when the documentation indicates it’s a singleton?
Q3: Is there a way to “subtract” the compactor from the “all” target? (i.e. “all,!compactor” )
Just to circle back on this, I sorted out my configuration by reading code.
This configuration allows all three nodes to start, run and deal with single node restarts.
The 2.4.2 upgrade + configuration changes has also eliminated these errors: