Skip to content

Allow open files limit param#548

Merged
albertvaka merged 5 commits intoDataDog:masterfrom
rmrf-run:allow-open-files-limit-param
Aug 19, 2019
Merged

Allow open files limit param#548
albertvaka merged 5 commits intoDataDog:masterfrom
rmrf-run:allow-open-files-limit-param

Conversation

@rmrf-run
Copy link
Copy Markdown

Allow users to configure open files limit with hiera or manifests

@albertvaka
Copy link
Copy Markdown
Contributor

albertvaka commented Jul 15, 2019

Hi @mylivingweb and thanks for your contribution!

Can you make the option default to undef, and only set it in logs_config if it has been defined? This way, if it's not set, the agent will use its default value, and if that default ever changes, we won't have to change it also here.

It is definitely a good idea to expose this config param via the puppet module, but I think it's better to avoid duplicating default values in puppet and the agent code.

@rmrf-run
Copy link
Copy Markdown
Author

makes sense, i'll work on it

@albertvaka
Copy link
Copy Markdown
Contributor

Can I ask you one more change? Can we call this logs_open_files_limit and mention in the documentation that this is only for the logs agent? Could be something like Set the max open files for the logs agent.

Otherwise, people might think this affect all datadog agents, while it only affects the logs agent.

@rmrf-run
Copy link
Copy Markdown
Author

rmrf-run commented Jul 24, 2019

sure, i can rename it, it is actually breaking in our dev environment due to variable reassignment so i need to fix that real quick

@rmrf-run
Copy link
Copy Markdown
Author

tested in our dev environment with the latest commit.
datadog_agent::logs_open_files_limit: 2000
or

class { "datadog_agent":
    api_key               => "***",
    logs_enabled          => true,
    logs_open_files_limit => 2000,
  }

@rmrf-run
Copy link
Copy Markdown
Author

any word on merging?

@albertvaka
Copy link
Copy Markdown
Contributor

Looks good to me! Thanks for the patch and sorry for the delay, I was on vacation and I'm just catching up 🌴🙂

@albertvaka albertvaka merged commit bad6e04 into DataDog:master Aug 19, 2019
@rmrf-run
Copy link
Copy Markdown
Author

awesome, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants