Skip to content

Commit

Permalink
Move memberlist config block.
Browse files Browse the repository at this point in the history
  • Loading branch information
Whyeasy committed Sep 21, 2020
1 parent 50f85b6 commit 6bca7e9
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 17 deletions.
2 changes: 1 addition & 1 deletion charts/distributed-loki/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ name: loki-distributed
description: A Helm chart for Kubernetes
type: application

version: 0.3.1
version: 0.3.2
appVersion: 1.6.0
2 changes: 1 addition & 1 deletion charts/distributed-loki/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ loki-distributed
================
A Helm chart for Kubernetes

Current chart version is `0.3.1`
Current chart version is `0.3.2`



Expand Down
34 changes: 19 additions & 15 deletions charts/distributed-loki/templates/config/loki-cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,19 @@ data:
consistent_hash: true
host: {{ include "loki-helm.memcached-index-writes" . }}.{{ .Release.Namespace }}.svc.cluster.local
service: memcached-client
memberlist:
rejoin_interval: {{ .Values.memberlist.rejoin }}
bind_port: {{ .Values.memberlist.port }}
join_members: [
{{ include "loki.fullname" . }}-gossip-ring
]
distributor:
ring:
kvstore:
{{ if .Values.memberlist.enable }}
store: memberlist
memberlist:
rejoin_interval: {{ .Values.memberlist.rejoin }}
bind_port: {{ .Values.memberlist.port }}
join_members: [
{{ include "loki-helm.ingester" . }}.{{ .Release.Namespace }}.svc.cluster.local
{{ include "loki-helm.distributor" . }}.{{ .Release.Namespace }}.svc.cluster.local
]
{{ else }}
consul:
consistent_reads: false
Expand All @@ -41,17 +42,20 @@ data:
watch_rate_limit: 1
store: consul
{{ end }}
frontend:
compress_responses: {{ .Values.querierFrontend.config.compressResponses }}
max_outstanding_per_tenant: 200
{{- if .Values.querierFrontend.config.logQueries}}
log_queries_longer_than: {{ .Values.querierFrontend.config.logQueries }}
{{- end }}
frontend_worker:
frontend_address: {{ include "loki-helm.querier-frontend" . }}.{{ .Release.Namespace }}.svc.cluster.local:9095
grpc_client_config:
max_send_msg_size: 1.048576e+08
parallelism: {{ .Values.querier.config.parallelism }}
ingester:
chunk_block_size: {{ .Values.ingester.config.chunkSize }}
chunk_idle_period: {{ .Values.ingester.config.chunkIdle }}
Expand All @@ -68,13 +72,6 @@ data:
kvstore:
{{ if .Values.memberlist.enable }}
store: memberlist
memberlist:
rejoin_interval: {{ .Values.memberlist.rejoin }}
bind_port: {{ .Values.memberlist.port }}
join_members: [
{{ include "loki-helm.ingester" . }}.{{ .Release.Namespace }}.svc.cluster.local
{{ include "loki-helm.distributor" . }}.{{ .Release.Namespace }}.svc.cluster.local
]
{{ else }}
consul:
consistent_reads: true
Expand All @@ -84,10 +81,12 @@ data:
{{ end }}
replication_factor: {{ .Values.ingester.config.replicationFactor }}
max_transfer_retries: {{ .Values.ingester.config.transferRetries }}
ingester_client:
grpc_client_config:
max_recv_msg_size: 6.7108864e+07
remote_timeout: 1s
limits_config:
enforce_metric_name: false
ingestion_burst_size_mb: 20
Expand All @@ -99,6 +98,7 @@ data:
max_streams_per_user: 0
reject_old_samples: true
reject_old_samples_max_age: 168h
query_range:
align_queries_with_step: true
cache_results: {{ .Values.querierFrontend.config.cacheResult }}
Expand All @@ -114,6 +114,7 @@ data:
update_interval: 1m
max_freshness: 10m
split_queries_by_interval: {{ .Values.querierFrontend.config.splitQueries }}
schema_config:
configs:
- from: "2018-04-15"
Expand All @@ -123,6 +124,7 @@ data:
object_store: {{ .Values.storage.objectStore }}
schema: v11
store: {{ .Values.storage.store }}
server:
graceful_shutdown_timeout: 5s
grpc_server_max_concurrent_streams: 1000
Expand All @@ -131,6 +133,7 @@ data:
http_listen_port: 3100
http_server_idle_timeout: 120s
http_server_write_timeout: 1m
storage_config:
cassandra:
addresses: {{ .Values.storage.config.storeUrl }}
Expand All @@ -146,7 +149,8 @@ data:
memcached_client:
consistent_hash: true
host: {{ include "loki-helm.memcached-index-queries" . }}.{{ .Release.Namespace }}.svc.cluster.local
service: memcached-client
service: memcached-client
table_manager:
chunk_tables_provisioning:
inactive_read_throughput: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
namespace: {{ .Release.Namespace }}
labels: {{- include "loki-helm.labels" . | nindent 4 }}
app.kubernetes.io/component: distributor
app.kubernetes.io/part-of: gossip-ring
spec:
minReadySeconds: 10
replicas: {{ .Values.distributor.replicaCount }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
namespace: {{ .Release.Namespace }}
labels: {{- include "loki-helm.labels" . | nindent 4 }}
app.kubernetes.io/component: ingester
app.kubernetes.io/part-of: gossip-ring
spec:
minReadySeconds: 60
replicas: {{ .Values.ingester.replicaCount }}
Expand Down
1 change: 1 addition & 0 deletions charts/distributed-loki/templates/querier/querier-dpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
namespace: {{ .Release.Namespace }}
labels: {{- include "loki-helm.labels" . | nindent 4 }}
app.kubernetes.io/component: querier
app.kubernetes.io/part-of: gossip-ring
spec:
minReadySeconds: 10
replicas: {{ .Values.querier.replicaCount }}
Expand Down

0 comments on commit 6bca7e9

Please sign in to comment.