Open nhippe-ds opened 3 months ago
Not sure if this should be a separate issue, but I found when attempting the same migration the ingester paths in the nginx config pointed to a non-existent loki-ingester service when using zone awareness. There are only zone-aware service resources. With zone awareness disabled, the ingester paths work fine
I'm actually changing my mind on this one. I no longer think this is an issue. (deleted my old comment)
My understanding is that the SimpleScalable<->Distributed
mode is meant to be used with replicas > 0 for all components from both the SimpleScalable
and Distributed
modes at the same time.
This to get all components up and running and joined to the rings before switching to Distributed
mode to get the traffic directed to the new distributed components in Nginx.
My view on the migration steps from SSD to distributed as follows:
deploymentMode: SimpleScalable<->Distributed
and increase replicas for the distributed components.deploymentMode: Distributed
and remove values for SSD components.
Describe the bug When setting deploymentMode to
SimpleScalable<->Distributed
, the generatednginx.conf
retains references toSimpleScalable
components instead of correctly transitioning toDistributed
components. This issue appears to stem from the logic in the _helpers.tpl file.I wound up just changing deploymentMode to
Distributed
after theloki-gateway
configmap was not updated to distributed components.To Reproduce Steps to reproduce the behavior:
SimpleScalable
toSimpleScalable<->Distributed
loki/templates/gateway/configmap-gateway.yaml
Expected behavior If users are expected to migrate from
SimpleScalable
toDistributed
usingdeploymentMode: SimpleScalable<->Distributed
the nginx.conf should be updated to reference the appropriate Distributed components instead of retaining old SimpleScalable references. The configuration should include correct URLs for components like distributor, queryFrontend, ingester, ruler, etc., as per the Distributed deployment mode.Environment: