validation.DiscardedBytes.WithLabelValues(validation.StreamLimit, i.instanceID).Add(float64(bytes)) return nil, httpgrpc.Errorf(http.StatusTooManyRequests, validation.StreamLimitErrorMsg()) } 总结: 可以看到Loki对于全局的动态配置计算还是比较简单,如果启用max_global_streams_per_user的话,应要合理的配置...
在AssertMaxStreamsPerUser函数中简单处理local和global的限制数据后,对日志流个数判断,低于计算后的limit则返回空,否则抛出超过租户最大限制数的异常 func (l *Limiter) AssertMaxStreamsPerUser(userID string, streams int) error { localLimit := l.limits.MaxLocalStreamsPerUser(userID) globalLimit := l.li...
will retry"status=429error="server returned HTTP status 429 Too Many Requests (429): entry with timestamp 2021-12-02 06:27:01.316127865 +0000 UTC ignored, reason: 'Per stream rate limit exceeded (limit: 3MB/sec) while attempting to ingest for ...
limits_config:# 每个租户的最大日志流个数max_streams_per_user:|default=10000#启用全局的租户最大日志流个数,默认0关闭#一旦配置,每个租户日志流将有ingester注册到hash环上同时状态为#HEALTH的个数动态计算得出,任何ingester的数量变化都会动态生效到这个值max_global_streams_per_user:default=0 在这里我们可以...
Z caller=grpc_logging.go:43 duration=1.434942ms method=/logproto.Pusher/Push err="rpc error: code = Code(429) desc = entry with timestamp 2023-08-30 14:57:32.012778399 +0000 UTC ignored, reason: 'Per stream rate limit exceeded (limit: 3MB/sec) ...
per_stream_rate_limit This limit is enforced when a single stream reaches its rate-limit. Each stream has a rate-limit applied to it to prevent individual streams from overwhelming the set of ingesters it is distributed to (the size of that set is equal to the replication_factor value)....
The problem occurs when connecting the second server (9-10GB per day) - errors 429 occur - maximum active stream limit exceeded? reduce the number of active streams… For a long time I have already tried big limits and small ones, I can’t win in any way. Loki put from github. How...
Loki的Limit_Config关于长度的限制包括对label键值对的大小限制等,其主要包含以下几个: 代码语言:javascript 复制 limits_config:# label的key最大长度max_label_name_length:|default=1024# label的value最大长度max_label_value_length:|default=2048# 每个流中的最大label个数max_label_names_per_series:|default...
15 ingestion_burst_size_mb: 30 per_stream_rate_limit: 10MB per_stream_rate_limit_burst: 20MB reject_old_samples: true reject_old_samples_max_age: 168h retention_period: 744h max_query_length: 0h promtail: config: clients: - url: http://loki.default.svc.cluster.local:3100/loki/api/...
关于OpenShift Kubernetes Engine 相同和不同的地方 订阅限制 开始使用 开始使用 Kubernetes 概述 Kubernetes 概述 Kubernetes 组件 Kubernetes 资源 Kubernetes 概念指南 OpenShift Container Platform 概述 OpenShift Container Platform 概述 ...