Loki Ingester Shutdown API 404

I am deploying Loki using the simple scalable mode using Amazon ECS, with two containers as writers and two as readers. I am attempting to figure out a way to gracefully scale down the cluster, and are looking at the flush / shutdown API, but they seem to be unavailable for some reason. I’ve tried:

# Assuming 10.100.100.123 being the IP of one particular writer container
curl -X POST http://10.100.100.123:3100/flush_shutdown
curl -X POST http://10.100.100.123:3100/ingester/shutdown

Both gave me error 404:

HTTP/1.1 404 Not Found
Content-Type: text/plain; charset=utf-8
X-Content-Type-Options: nosniff
Date: Mon, 17 Oct 2022 21:36:41 GMT
Content-Length: 19

Is this API not available under simple scalable mode? Or am I hitting the wrong endpoint? Just want to point out, the same IP with /ring does return results, so I know it is the IP of one of the containers.

Please advise.

I am facing the exact same issue. This is with the latest v2.6.1, also using Simple scalable mode but on EC2.

Temporarily, I use the ‘DEPRECATED’ endpoint but definitely hope to move on from that.
/ingester/flush_shutdown
HTTP API | Grafana Loki documentation)

What ever endpoints I am trying, I am getting 404 on a microservice deployment. The only endpoint working is /flush.

I am using the latest version of Loki 2.6.1.

What do you call to get it to work ?
Thanks

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.