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

feat(cluster): Allow to deploy multiple poolers #357

Merged

Conversation

dragoangel
Copy link
Contributor

implements: #360

@itay-grudev
Copy link
Collaborator

itay-grudev commented Aug 26, 2024

Can you sync with me on the CloudNativePG Slack?

I can't review these until the weekend, but I can give you guidance, so it's as easy as possible.

@dragoangel
Copy link
Contributor Author

Hi @itay-grudev, sure 😊

@dragoangel dragoangel force-pushed the feature/multiple-poolers-support branch from 89efdce to c428ea9 Compare August 26, 2024 11:06
@itay-grudev itay-grudev added the chart( cluster ) Related to the cluster chart label Aug 26, 2024
@dragoangel dragoangel force-pushed the feature/multiple-poolers-support branch 2 times, most recently from 63f617a to 6c3e52d Compare August 26, 2024 19:51
@dragoangel
Copy link
Contributor Author

In short about this PR: as it contains breaking change it will be merged a bit later.

@dragoangel dragoangel force-pushed the feature/multiple-poolers-support branch from 6c3e52d to 35b1c8b Compare August 28, 2024 18:13
@dragoangel dragoangel requested a review from itay-grudev August 28, 2024 18:14
Signed-off-by: Itay Grudev <[email protected]>
@dragoangel
Copy link
Contributor Author

@itay-grudev can you please help understand what is failing it tests?

Signed-off-by: Dmitriy Alekseev <[email protected]>
@dragoangel dragoangel force-pushed the feature/multiple-poolers-support branch from 5e8d121 to 0288a2f Compare September 3, 2024 09:32
@itay-grudev
Copy link
Collaborator

@dragoangel You're missing the monitoring section in the per-pooler configuration, hence the error. This wasn't a problem before since all the properties were always set. The best way to fix that would be an extensive use of default I suppose.

P.S. Because the old property is pooler and the new one poolers, this can be made backwards compatible.

@dragoangel
Copy link
Contributor Author

dragoangel commented Sep 4, 2024

@itay-grudev you mean in auto tests?
We can simplify this at all and move monitoring to the . Values.monitoring

And leave only podMonitor relabeling & metric relebling under cluster & poolers

Signed-off-by: Dmitriy Alekseev <[email protected]>
@dragoangel dragoangel force-pushed the feature/multiple-poolers-support branch from a1c73f2 to 43cf472 Compare September 4, 2024 16:13
@dragoangel
Copy link
Contributor Author

Hi @itay-grudev I pushed proper label example and tests.

I see 3 options:

  1. leave as is
  2. move .Values.cluster.monitoring and .Values.pooler.monitoring to .Values.monitoring, and leave podMonitor relablings under cluster and each pooler if they need to get this settings.
  3. remove .Values.poolers.[0].monitoring.enabled and .Values.poolers.[0].monitoring.podMonitor.enabled and take this info from cluster, while still looks for relablings under specific pooler. It will assume - if we create pod monitor for cluster we want to have pod monitor for pooler too, but this not always can be true?

For me all 3 options are okay, but 1 and 2 looks better.

@itay-grudev
Copy link
Collaborator

@dragoangel FYI: I went with option 1 as it was the simplest.

@itay-grudev itay-grudev merged commit 75a26f7 into cloudnative-pg:main Oct 15, 2024
5 checks passed
yremmet pushed a commit to yremmet/charts that referenced this pull request Dec 9, 2024
* feat(cluster): Allow to deploy multiple poolers
* Update NOTES.txt

---------

Signed-off-by: Dmitriy Alekseev <[email protected]>
Signed-off-by: Itay Grudev <[email protected]>
Signed-off-by: Itay Grudev <[email protected]>
Co-authored-by: Itay Grudev <[email protected]>
Co-authored-by: Itay Grudev <[email protected]>
hapeho pushed a commit to hapeho/cloudnative-pg-charts that referenced this pull request Dec 18, 2024
* feat(cluster): Allow to deploy multiple poolers
* Update NOTES.txt

---------

Signed-off-by: Dmitriy Alekseev <[email protected]>
Signed-off-by: Itay Grudev <[email protected]>
Signed-off-by: Itay Grudev <[email protected]>
Co-authored-by: Itay Grudev <[email protected]>
Co-authored-by: Itay Grudev <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking changes chart( cluster ) Related to the cluster chart
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants