How Cortex uses the Prometheus Write-Ahead Log (WAL) to prevent data loss
Since the beginning of the Cortex project, there was a flaw with the ingester service responsible for storing the incoming series data in memory for a while before writing it to a long-term storage backend. If any ingester happened to crash, it would lose all the data that it was holding.