Skip to content

feat: support mongodb sharding - #1701

Merged
gnolong merged 54 commits into
release-0.9from
support/mongodb-sharding-in-0.9
Jul 14, 2025
Merged

feat: support mongodb sharding#1701
gnolong merged 54 commits into
release-0.9from
support/mongodb-sharding-in-0.9

Conversation

@gnolong

@gnolong gnolong commented May 30, 2025

Copy link
Copy Markdown
Contributor

@gnolong gnolong added the nopick Not auto cherry-pick when PR merged label Jun 11, 2025
@gnolong
gnolong force-pushed the support/mongodb-sharding-in-0.9 branch from 291f98d to 4d51d64 Compare June 30, 2025 03:06
Define mongodb replicaset mode.
*/}}
{{- define "mongodb-cluster.replicasetMode" }}
{{- if .Values.useLegacyCompDef }}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

.Values.useLegacyCompDef can be removed; it is no longer used.

labels: {{ include "kblib.clusterLabels" . | nindent 4 }}
{{- if eq .Values.hostnetwork "enabled" }}
annotations:
{{- if eq .Values.mode "sharding" }}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The sharding topology no longer requires host-network.

"description": "The number of shards, for sharding mode, the default shards is 3.",
"type": "integer",
"default": 3,
"minimum": 1,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

mininum is 2

sleep $wait_interval
continue
fi

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

the while loop can end here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not Found error occurs frequently, I will set maximum retry count

@gnolong
gnolong merged commit a906565 into release-0.9 Jul 14, 2025
10 checks passed
@gnolong
gnolong deleted the support/mongodb-sharding-in-0.9 branch July 14, 2025 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

nopick Not auto cherry-pick when PR merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants