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

peadm default pe.conf settings conflict with pe_tune #103

Closed
vchepkov opened this issue Jun 20, 2020 · 4 comments
Closed

peadm default pe.conf settings conflict with pe_tune #103

vchepkov opened this issue Jun 20, 2020 · 4 comments

Comments

@vchepkov
Copy link
Contributor

pe.conf java args settings added by peadm::generate_pe_conf function are not compatible with pe_tune module.

# cat /etc/puppetlabs/enterprise/conf.d/pe.conf 
{
  "puppet_enterprise::profile::master::java_args": {
    "Xmx": "2048m",
    "Xms": "512m"
  },
  "puppet_enterprise::profile::console::java_args": {
    "Xmx": "768m",
    "Xms": "256m"
  },
  "puppet_enterprise::profile::orchestrator::java_args": {
    "Xmx": "768m",
    "Xms": "256m"
  },
  "puppet_enterprise::profile::puppetdb::java_args": {
    "Xmx": "768m",
    "Xms": "256m"
  }
}
# puppet infrastructure tune --local --pe_conf
# Unable to output optimized settings to: /etc/puppetlabs/enterprise/conf.d/pe.conf: conflicting settings found.

@vchepkov vchepkov added the bug label Jun 20, 2020
@vchepkov
Copy link
Contributor Author

cc: @tkishel

@tkishel
Copy link
Contributor

tkishel commented Jun 22, 2020

Rather, puppet infra tune avoids merging with existing settings pe.conf as per ...

https://github.com/tkishel/pe_tune/blob/master/lib/puppet_x/puppetlabs/tune.rb#L661

https://github.com/tkishel/pe_tune/blob/master/lib/puppet_x/puppetlabs/tune/peconf.rb#L16

( The error message should probably state existing instead of conflicting settings. )

I added the guard block in PuppetX::Puppetlabs::Tune::PEConf.write() because I was concerned about unintended consequences of a merge with manually-specified tuning in pe.conf.

Perhaps the Installer team could investigate or simply remove the guard block?

@vchepkov
Copy link
Contributor Author

vchepkov commented Jul 8, 2020

Ah, right, that's not issue of this module, it's pe_tune's problem. It balks on it's own settings if runs second time. I think this guard should at least have an option to disable it, since it doesn't allow to adjust settings after PE upgrade. I can open issue in pe_tune, if you like @tkishel . thanks

@vchepkov vchepkov closed this as completed Jul 8, 2020
@tkishel
Copy link
Contributor

tkishel commented Jul 8, 2020

See tkishel/pe_tune#16

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

No branches or pull requests

2 participants