I am trying to configure a 3 nodes cluster (not using Kubernetes) with Loki using Garage as the S3 storage:
- Each node has a Garage process. Garage clustering is configured with replication_factor=3 and consistent_mode=consistent. Each node has been assigned a different zone in the Garage layout, so it behaves as a multimaster cluster (each node is capable of reading/writing and data is kept in sync in all the nodes).
- Each node has a Loki monolithic deployment. Loki clustering has been configured with replication_factor=3 and a ring/memberlist. In each node, Loki has been configured to connect to its local Garage. A load balancer distributes the incoming requests to each Loki instance in a round-robin fashion.
The question is: Can this setup corrupt the storage?
How does the Loki cluster avoid writng the same chunk to two different Garage instances at the same time?
Should I configure Garage in active-passive mode with a virtual floating IP instead, to avoid corruption?