hot-reload of pipeline configs without restarting logstash pods
See original GitHub issueDescribe the feature:
https://www.elastic.co/guide/en/logstash/current/reloading-config.html
Describe a specific use case for the feature:
Starting logstash can be slow. Hot-reloading config files should help when updating logstash pipelines via helm values.
Seems to me it’s just a matter of adding --config.reload.automatic
and removing/disabling this code in logstash/templates/statefulset.yaml
{{/* This forces a restart if the configmap has changed */}}
{{- if .Values.logstashConfig }}
configchecksum: {{ include (print .Template.BasePath "/configmap-config.yaml") . | sha256sum | trunc 63 }}
{{- end }}
{{/* This forces a restart if the configmap has changed */}}
{{- if .Values.logstashPipeline }}
pipelinechecksum: {{ include (print .Template.BasePath "/configmap-pipeline.yaml") . | sha256sum | trunc 63 }}
{{- end }}
Or is restart preferred for any reason?
Issue Analytics
- State:
- Created 4 years ago
- Comments:20 (7 by maintainers)
Top Results From Across the Web
Reloading the Config File | Logstash Reference [8.5] - Elastic
If Logstash is already running without auto-reload enabled, you can force Logstash to reload the config file and restart the pipeline.
Read more >Logstash configuration reload - Stack Overflow
There is a Issue. The logstash configuration is loaded at startup, so, if you kill your process (to restart it later), there is...
Read more >Is there any other way to update the config map for ... - Edureka
How do i update the config map without restarting the kubernetes pod?
Read more >Create and use multiple pipelines - Bitnami Documentation
Create a ConfigMap with the configuration files: cat bye. · Deploy the Helm chart with the enableMultiplePipelines parameter: helm install logstash . ·...
Read more >Awesome-docker
Without a good handle on the terminology, It can be difficult to grasp the key ... applications that require static configuration in docker...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Since secrets are automatically reloaded without restarting the pods, what worked for me is to configure Logstash with a
stringData
Secret while settingconfig.reload.automatic: true
inlogstash.yml
still valid