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

create db needs to choose a primary subcluster #202

Merged
merged 9 commits into from
Apr 29, 2022

Conversation

spilchen
Copy link
Collaborator

When creating a database, we pick a subcluster from the vdb that new nodes will be added to. We previously picked the very first subcluster, but if this is defined as a secondary, we end up creating it as a primary. This PR fixes that by selecting the first primary subcluster in the vdb.

This also will log an event when we detect the shard/node ratio is not optimal. It should be no higher than 3:1. This could be an important event now that we have integration with the autoscaler.

@spilchen spilchen self-assigned this Apr 28, 2022
Matt Spilchen added 4 commits April 28, 2022 21:18
Small timing window exists that cause us to check the service object
routing before it was actually changed.
Two fixes here:
- timing window in operator-metrics.  The guage for pod readyiness might
  not yet be updated when we check, even though the pod is ready.
  Adding a retry method.
- Saw failures in upgrade-vertica-ks-0.  If we don't include all of the
  pods in the start_db command, we can get stuck.  Then attempts after
  to get podfacts die because the vsql commands fail.
@spilchen spilchen merged commit bbd6ce3 into vertica:vnext Apr 29, 2022
@spilchen spilchen deleted the shard-node-ratio branch April 29, 2022 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant