Open liuxuzxx opened 2 years ago
Please proviate ingrestion_rate_xx and per_stream_rate_limit_xx configuration, the default values is 4MB/s , when the replication count is 3,one loki-write can use 1.33MB/s speed!
auth_enabled: false
common:
path_prefix: /var/loki
replication_factor: 3
storage:
s3:
......
limits_config:
......
#add the configuration
#每个实例只会分到1.3MB/s
ingestion_rate_mb: 100
ingestion_burst_size_mb: 150
per_stream_rate_limit: "100MB"
per_stream_rate_limit_burst: "300MB"
and the values.yaml:
loki:
......
config: |
{{- if .Values.enterprise.enabled}}
{{- tpl .Values.enterprise.config . }}
{{- else }}
auth_enabled: {{ .Values.loki.authEnabled }}
{{- end }}
server:
http_listen_port: 3100
grpc_listen_port: 9095
memberlist:
join_members:
- {{ include "loki.name" . }}-memberlist
{{- if .Values.loki.commonConfig}}
common:
{{- toYaml .Values.loki.commonConfig | nindent 2}}
storage:
{{- include "loki.commonStorageConfig" . | nindent 4}}
{{- end}}
limits_config:
enforce_metric_name: false
reject_old_samples: true
reject_old_samples_max_age: 168h
max_cache_freshness_per_query: 10m
split_queries_by_interval: 15m
# add rate configuration
ingestion_rate_mb: 100
ingestion_burst_size_mb: 150
per_stream_rate_limit: "100MB"
per_stream_rate_limit_burst: "300MB"
@trevorwhitney
Can the loki-simple-scalable loki-gateway provider /metircs prometheus proxy
Is this ask here just to add better limits to the default config? I like this idea, but I think there's a bit more work to be done here in terms of a cluster planning tools. Do you have an issue overriding the config for now?
Yes ,the values.yaml must provide ingestion_rate_xx config information ,and must provide ingestor config information:
ingester:
flush_check_period: 5s
flush_op_timeout: 100m
And how to collect loki-read-xx and loki-write-xx metrics? Can the loki-gateway give a metrics path proxy?
When the storage type is local,the config information is:
path_prefix: /var/loki
replication_factor: 3
storage:
filesystem:
chunks_directory: /var/loki/chunks
rules_directory: /var/loki/rules
the path_prefix is loki-write-xx write path and the chunks_directory is sharedPath?
When we use loki-simple-scalable loki-read and loki-write replication count is 3! when the log speed is 30MB/s the error is occure:
the loki-gateway return http 429(Too man request)