Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

Add new webserver_config_params #227

Merged
merged 5 commits into from Dec 12, 2019

Conversation

qazfff
Copy link
Contributor

@qazfff qazfff commented Dec 10, 2019

Since there was no item to be set during performance tuning, it was added.

@coveralls
Copy link

coveralls commented Dec 10, 2019

Coverage Status

Coverage remained the same at 100.0% when pulling 028c39b on kazukifujii:add/webserver_config_params into c740f63 on ajgon:master.

Copy link
Owner

@ajgon ajgon left a comment

Choose a reason for hiding this comment

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

Great addition, thank you!

I have some minor comments regarding specs - can you please address them, other that that - good job!

@@ -5,7 +5,15 @@ module Appserver
class Passenger < Drivers::Appserver::Base
adapter :passenger
allowed_engines :passenger
output filter: %i[max_pool_size min_instances mount_point]
WEBSERVER_CONFIG_PARAMS = %i[
max_pool_size min_instances
Copy link
Owner

Choose a reason for hiding this comment

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

Please, move it to new line.

deploy['dummy_project']['appserver']['pool_idle_time'] = 300
deploy['dummy_project']['appserver']['max_request_queue_size'] = 100
deploy['dummy_project']['appserver']['error_document'] = { "503": '503.html', "504": '504.html' }
deploy['dummy_project']['appserver']['passenger_max_preloader_idle_time'] = 300
Copy link
Owner

Choose a reason for hiding this comment

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

Please, add extra tests to it 'creates apache2 passenger config' spec, to test if those params are actually reflected in config.

Copy link
Contributor Author

@qazfff qazfff Dec 12, 2019

Choose a reason for hiding this comment

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

Added tests to it 'creates apache2 passenger config' .

@qazfff
Copy link
Contributor Author

qazfff commented Dec 12, 2019

Thank you for the review! Added and fixed missing cord.

@ajgon ajgon merged commit 0500521 into ajgon:master Dec 12, 2019
dotnofoolin pushed a commit to dotnofoolin/opsworks_ruby that referenced this pull request Nov 23, 2021
…n#227)

* chore: add new webserver_config_params

* style: Fixed failing rubocop lints.

* chore: add PassengerMaxPreloaderIdleTime params to webserver_config

* fix(appserver): fixed constants and error document values where the syntax violates the convention

* test: added webserver_config_params test
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants