-
Notifications
You must be signed in to change notification settings - Fork 549
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
Config reloading in Flying Passenger is broken #1554
Comments
High level process: finish converting components to config kit, and then expose an api for triggering a config reload & apply to configkit. Details:
|
The structure that currently best represents per-app config, is ApplicationPool::Options. However this structure is incomplete: it only represents config that are relevant to ApplicationPool. So for example Furthermore, there are two dictionaries that map the app group name to ApplicationPool::Options. There is one in Core::Controller (the I'll leave it up to you to think of a proper design. The easiest way would be to cram everything into ApplicationPool::Options, but that would violate separation-of-concerns. I haven't given a good thought yet about what would be a more elegant design, but that will no doubt be a bigger effort. |
It looks like the Passenger 5 pool options cache, which was meant to improve performance, broke config reloading in Flying Passenger. Because most options are now cached, reloading the web server configuration has no effect.
We should introduce a command for clearing that cache.
Furthermore, it looks like environment variables set with
passenger_env_var
are cached and never updated. We should clear that cache too.The text was updated successfully, but these errors were encountered: