PMM-14931 Control built-in ClickHouse config via PMM_CLICKHOUSE_CONFIG env var#5414
PMM-14931 Control built-in ClickHouse config via PMM_CLICKHOUSE_CONFIG env var#54144nte wants to merge 17 commits into
Conversation
Previously we relied on symlinking with switch-config.sh script
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## v3 #5414 +/- ##
==========================================
+ Coverage 43.20% 43.25% +0.05%
==========================================
Files 413 414 +1
Lines 42279 42309 +30
==========================================
+ Hits 18265 18301 +36
+ Misses 22146 22138 -8
- Partials 1868 1870 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I have an alternative idea.
So that in general we may point: So that no need to touch supervisord configuration (it always uses config.xml). This approach allows switching configuration without passing ENV var with container restart. |
Co-authored-by: Alex Demidoff <alexander.demidoff@percona.com>
@maxkondr I agree it's a nice solution to use symlinks the way it was previously implemented by @JiriCtvrtka. My issue is that we're now introducing a new way to control ClickHouse config through an env var, but still allow users to change the configuration in runtime meaning that For example it's possible for user to deploy PMM with On top of that, configuration applied through For these reasons I think |
|
@4nte could you check why test for config is failing? If this could be bug. |
@JiriCtvrtka Thanks for noticing. Had to update the test to match the actual error message which was changed just recently (8a2479b) |
PMM-14931
Feature Build
Previously, switching the built-in ClickHouse required manually running
switch-config.shinside the container.PMM_CLICKHOUSE_CONFIGis a new env var that instructs supervisord to start ClickHouse with specified config.If not set, ClickHouse will start with default config.
switch-config.shhas been deprecated in favor of configuring via env var. When ran, it will print out a deprecation message with link to docs.