Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change config reloading options in the short config #6883

Closed
wants to merge 1 commit into from

Conversation

ruflin
Copy link
Contributor

@ruflin ruflin commented Apr 17, 2018

Config reloading has gone through several release cycles and no major issues have shown up. We should make reloading GA.

There are several changes in this PR:

  • Config reloading is made GA but in the code it's disabled by default as otherwise this would be a breaking change
  • Enabling config reloading in our short config. This will make it easier for new users to use commands like metricbeat modules enable system as they will work out of the box.
  • Change reloading to true in K8s files. Not sure if we treat this as a breaking change?

@ruflin ruflin added review Filebeat Filebeat Metricbeat Metricbeat labels Apr 17, 2018
@@ -14,11 +14,11 @@ data:
# Mounted `filebeat-prospectors` configmap:
path: ${path.config}/prospectors.d/*.yml
# Reload prospectors configs as they change:
reload.enabled: false
reload.enabled: true
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@exekias Is this is a breaking change from your perspective? If yes, will remove it from the PR.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say it is. +1 to keep it to false by default, rest of the PR LGTM

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I realize now this is the configmap 🤦‍♂️ , I'm ok with having this enabled by default

@@ -14,7 +14,7 @@ metricbeat.config.modules:
path: ${path.config}/modules.d/*.yml

# Set to true to enable config reloading
reload.enabled: false
reload.enabled: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change too, I'm wondering if we should recommend this mode by default or not. It may make things less predictable, wdyt?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for not enabling reload by default. If I were a user who is getting started and editing the configuration just to see what a Beat can do, I would not like it to restart without my explicit permission.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's separate two discussions here:

  • Breaking change: I would argue it is not a breaking change as any user that keeps his config file from previous 6.x release will have the exact same behaviour. The behaviour only changes if someone uses the new "example" config.

  • On by default: It's valid point that it could be less predictable. The part I like most about having it on by default is that things like metricbeat modules enable * work out of the box without the user having to restart the Beat which I think is really powerful to get users started with Beats modules.

I will open a separate PR with making the reload GA so we can continue the discussion about the defaults. As I don't see it as a breaking change, it could still happen in any other 6.x release.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@exekias Now that we have the making it GA out of the way, lets continue the discussion here. Any thoughts to the above?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point about the breaking change, I guess it's not. I still don't like to have it enabled by default, I don't know many (or any) projects doing live changes without the user requesting them, it's probably unexpected.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, will close the PR then :-D

ruflin added a commit to ruflin/beats that referenced this pull request Apr 18, 2018
This PR makes config reloading GA. A follow up PR with potential config changes is in elastic#6883.
@ruflin ruflin mentioned this pull request Apr 18, 2018
@ruflin
Copy link
Contributor Author

ruflin commented Apr 18, 2018

Here is the PR to only make config reloading GA without config changes: #6891 Let's get this in and continue the discussion here about the defaults.

@ruflin ruflin changed the title Make config reloading GA Change config reloading options in the short config Apr 18, 2018
@ruflin ruflin added the in progress Pull request is currently in progress. label Apr 18, 2018
exekias pushed a commit that referenced this pull request Apr 18, 2018
This PR makes config reloading GA. A follow up PR with potential config changes is in #6883.
Config reloading has gone through several release cycles and no major issues have shown up. We should make reloading GA.

There are several changes in this PR:

* Config reloading is made GA but in the code it's disabled by default as otherwise this would be a breaking change
* Enabling config reloading in our short config. This will make it easier for new users to use commands like `metricbeat modules enable system` as they will work out of the box.
* Change reloading to true in K8s files. Not sure if we treat this as a breaking change?
@ruflin
Copy link
Contributor Author

ruflin commented Apr 25, 2018

Closing as we decided not to change the defaults in the short config as it could be an unexpected behaviour.

@ruflin ruflin closed this Apr 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Filebeat Filebeat in progress Pull request is currently in progress. Metricbeat Metricbeat review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants