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.