Hello,
I’m using Loki with AWS S3 as the backend for long-term storage of my indexed log data. I have implemented an S3 lifecycle policy that transitions my Loki files in the ‘fake/’ and 'index/’ directories to the Glacier Deep Archive storage class after a certain period to reduce storage costs.
However, I’m encountering an issue where Loki is unable to write new files to these directories once the existing files have been transitioned to Glacier Deep Archive. The specific error message I’m getting is “failed to run compaction” and “failed to get s3 object: InvalidObjectState: The operation is not valid for the object’s storage class”.
From my understanding, the Glacier Deep Archive requires objects to be restored before they can be accessed, which can take up to 12 hours. But, I’m unclear as to why this is impacting Loki’s ability to write new files to the S3 bucket.
Could you please provide insight into why this might be happening and how to best handle this situation? Would using a different S3 storage class for my Loki files resolve this problem?
Any advice or guidance would be greatly appreciated.
Thank you.