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

435 - Update threadCount configuration key #436

Merged
merged 2 commits into from
Jun 3, 2020

Conversation

Jayfrown
Copy link

@Jayfrown Jayfrown commented Nov 20, 2019

As described in rundeck/docs issue 44, and fixed in this commit,
the threadCount configuration key changed from quartz.props.threadPool.threadCount to quartz.threadPool.threadCount

Pull Request (PR) description

Replaces the threadCount configuration key with the correct one (as indicated by a change in rundeck documentation)

This Pull Request (PR) fixes the following issues

Fixes #435

As described in [rundeck/docs issue
44](rundeck/docs#44), and fixed in [this
commit](rundeck/docs@b3cea42),
the threadCount configuration key changed from
`quartz.props.threadPool.threadCount` to `quartz.threadPool.threadCount`
@Jayfrown
Copy link
Author

Jayfrown commented Nov 20, 2019

TODO: reflect change in rspec tests

@Jayfrown
Copy link
Author

It'd be great if we could get some feedback, or have this merged - we would prefer not having to fork and maintain this.

@Jayfrown
Copy link
Author

Jayfrown commented Jan 3, 2020

See this comment on the related issue for a workaround.

@dandunckelman
Copy link
Contributor

dandunckelman commented Mar 10, 2020

Thanks for doing this @Jayfrown

I just got bit by this.

EDIT

I set this up yesterday, and it worked as expected! 👍

@tsde
Copy link

tsde commented Apr 9, 2020

Thank you for this @Jayfrown
@dandunckelman Another workaround is to define quartz.threadPool.threadCount under rundeck::gui_config as it takes arbitrary key/value configuration. I did this through hiera and it works just fine. Of course, this leaves the obsolete quartz.props.threadPool.threadCount entry but there seems to be no conflict between the two.

@Jayfrown Maybe the main concern for this PR is the backward compatibility with Rundeck 2. It seems that quartz.props.threadPool.threadCount is the valid key with Rundeck 2 as stated here: https://docs.rundeck.com/2.11.14/administration/tuning-rundeck.html#quartz-job-threadcount

@Jayfrown
Copy link
Author

Thanks for the feedback @dandunckelman @tsde. A little after opening this PR we spotted the possibility to specify a custom template location like so:

Class { 'rundeck':
  rdeck_config_template => 'profile/application/rundeck/rundeck-config.erb'
}

We simply copied the vendored rundeck-config.erb to modules/profile/templates/application/rundeck/rundeck-config.erb, making the necessary adjustments there.

Leaving the issue/PR open as I'm guessing upstream might want to provide different templates per rundeck version.

@ghoneycutt ghoneycutt merged commit 523a03c into voxpupuli:master Jun 3, 2020
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.

Incorrect configuration key for threadcount
4 participants