LokiStack per stream rate limited in RHOCP 4
Issue
LokiInternal log is beingstream rate limited.- An alert reporting
X% of records have resulted in an error by openshift-logging/collector-xxx collector componentis active - How to minimize the effort to continuously tune the
ingestion per stream rate limitwhen forwarding logs toLoki. - Automatically control the "per stream ingestion rate" in
Loki. -
LokiIngester pods are producing error messages similar to the following:level=warn ts=2024-08-07T15:38:10.37249059Z caller=grpc_logging.go:57 method=/logproto.Pusher/Push duration=749.707µs err="rpc error: code = Code(429) desc = entry with timestamp 2024-08-07 15:38:10.26457417 +0000 UTC ignored, reason: 'Per stream rate limit exceeded (limit: 5MB/sec) while attempting to ingest for stream '{kubernetes_container_name=\"<container name>\", kubernetes_host=\"<hostname>\", kubernetes_namespace_name=\"<namespace>\", kubernetes_pod_name=\"<pod name>\", log_type=\"<log type>\"}' totaling 4305B, consider splitting a stream via additional labels or contact your Loki administrator to see if the limit can be increased'
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4
- Red Hat OpenShift Logging (RHOL)
- 5
- 6
- Red Hat Loki Operator
- 5
- 6
- Lokistack
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.