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

#429 Added new map_hash_bucket_size and map_hash_max_size paramater #430

Closed
wants to merge 1 commit into from
Closed

Conversation

jg-development
Copy link
Contributor

Closes #429

@@ -221,6 +229,8 @@
multi_accept => $multi_accept,
names_hash_bucket_size => $names_hash_bucket_size,
names_hash_max_size => $names_hash_max_size,
map_hash_bucket_size => $map_hash_bucket_size,
Copy link
Contributor

Choose a reason for hiding this comment

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

This creates an error because the new parameters haven't been added to the nginx::config class.

@3flex
Copy link
Contributor

3flex commented Sep 2, 2014

I added a couple of comments - please also add tests in spec/classes/config_spec.rb for the new parameters once they've been added to nginx::config

@jg-development
Copy link
Contributor Author

Hi,

you are right about your comments... I forgot the config file.
But there are no config_specs for the other similar config params (names_hash_bucket_size,...),
so I dont included them.

Greetings Jan

@3flex
Copy link
Contributor

3flex commented Sep 2, 2014

It's true some PRs were merged without tests in the past, but going forward tests will be strongly encouraged. New values in the templates will require tests prior to merging.

@@ -28,6 +28,8 @@
$nx_types_hash_max_size = 1024
$nx_types_hash_bucket_size = 512
$nx_names_hash_bucket_size = 64
$nx_map_hash_bucket_size = 64
Copy link
Contributor

Choose a reason for hiding this comment

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

64 is not always an appropriate default since map_hash_bucket_size has a dynamic default based on the processor's cache line size. Please set this to undef in params.pp and add logic to the template so map_hash_bucket_size is only added to the config when set by the user.

@jg-development
Copy link
Contributor Author

For now I am not quite experienced with the testing from puppet modules. As soon I am, I will add a pull request.

@wyardley
Copy link
Collaborator

wyardley commented Oct 6, 2016

Closing this one, since @jg-development said he will open another PR when tests are added.

@wyardley wyardley closed this Oct 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add map_hash_bucket_size and map_hash_max_size
3 participants