question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

hot-reload of pipeline configs without restarting logstash pods

See original GitHub issue

Describe 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:closed
  • Created 4 years ago
  • Comments:20 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
liladlercommented, Mar 8, 2021

Since secrets are automatically reloaded without restarting the pods, what worked for me is to configure Logstash with a stringData Secret while setting config.reload.automatic: true in logstash.yml

0reactions
cchrisocommented, Jun 30, 2022

still valid

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found