Applying config changes

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Frodo
Posts: 6
Joined: Fri Nov 27, 2015 4:09 am

Applying config changes

Post by Frodo »

When applying changes to our global configuration in our cluster I have noticed that all logstash instances will become unavailable.
As we have a load balancer in front of the cluster this is really bad. We will loose logs.

What is the supported way to apply config changes without restarting all logstash instances at the same time?
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Applying config changes

Post by hsmith »

There is not one, as the logstash configuration will have to update configuration across the whole cluster. What is the interaction you're experiencing with the load balancer? We have a lot of people that have a load balancer in front of NLS, and I've never seen any issues personally.
Former Nagios Employee.
me.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Applying config changes

Post by eloyd »

It may also depend on how you're sending data to the log server via the load balancer. If using rsyslog, it will queue up messages if they cannot be immediately sent, but it might be your load balancer that's accepting them, but not able to send them on (and not queuing).
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Applying config changes

Post by hsmith »

Thanks Eric :)
Former Nagios Employee.
me.
Frodo
Posts: 6
Joined: Fri Nov 27, 2015 4:09 am

Re: Applying config changes

Post by Frodo »

If I do save. Doesn't that distribute the changes on all nodes? If so then I will have to restart each logstash manually one node at a time. We have udp syslog going to this server and they are fire and forget. Some systems can't do anything else :-(
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Applying config changes

Post by hsmith »

What do you mean 'If I do save'? Are you talking about running the apply configuration? You shouldn't have to do anything manually if you run that. If you edit the flat configuration files, the next apply configuration will overwrite them. I might be missing what you're describing though.
Former Nagios Employee.
me.
Frodo
Posts: 6
Joined: Fri Nov 27, 2015 4:09 am

Re: Applying config changes

Post by Frodo »

To clarify. If I click the "Save" button in "Administration / Configuration Editor / Global Configuration". Will that write down the new configuration without restarting logstash on all nodes? If so then I will have to restart logstash on one node at a time to prevent data loss.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Applying config changes

Post by hsmith »

Saving it will push it to the DB - but it will not push the configuration to the flat config files. Only the Apply Config will push the configs.
Former Nagios Employee.
me.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Applying config changes

Post by eloyd »

...and restart the appropriate services across the cluster in an orderly fashion.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Applying config changes

Post by tmcdonald »

eloyd wrote:...and restart the appropriate services across the cluster in an orderly fashion.
An important clarification.
Former Nagios employee
Locked