-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6052 from planetscale/ss-vrepl-helm2
helm: use new commands
- Loading branch information
Showing
35 changed files
with
1,113 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
topology: | ||
cells: | ||
- name: "zone1" | ||
vtctld: | ||
replicas: 1 | ||
vtgate: | ||
replicas: 1 | ||
mysqlProtocol: | ||
enabled: true | ||
authType: "none" | ||
keyspaces: | ||
- name: "commerce" | ||
shards: | ||
- name: "0" | ||
tablets: | ||
- type: "replica" | ||
vttablet: | ||
replicas: 3 | ||
- name: "customer" | ||
shards: | ||
- name: "0" | ||
tablets: | ||
- type: "replica" | ||
vttablet: | ||
replicas: 3 | ||
|
||
vtctld: | ||
serviceType: "NodePort" | ||
resources: | ||
|
||
vtgate: | ||
serviceType: "NodePort" | ||
resources: | ||
|
||
vttablet: | ||
mysqlSize: "prod" | ||
resources: | ||
mysqlResources: | ||
# It's generally not recommended to override this value for production usage. | ||
terminationGracePeriodSeconds: 1 | ||
|
||
vtworker: | ||
resources: | ||
|
||
pmm: | ||
enabled: false | ||
|
||
orchestrator: | ||
enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
topology: | ||
cells: | ||
- name: "zone1" | ||
vtctld: | ||
replicas: 1 | ||
vtgate: | ||
replicas: 1 | ||
mysqlProtocol: | ||
enabled: true | ||
authType: "none" | ||
keyspaces: | ||
- name: "commerce" | ||
shards: | ||
- name: "0" | ||
tablets: | ||
- type: "replica" | ||
vttablet: | ||
replicas: 3 | ||
- name: "customer" | ||
shards: | ||
- name: "0" | ||
tablets: | ||
- type: "replica" | ||
vttablet: | ||
replicas: 3 | ||
|
||
jobs: | ||
- name: "move-tables" | ||
kind: "vtctlclient" | ||
command: "MoveTables -workflow=commerce2customer commerce customer \'{\"customer\":{}, \"corder\":{}}\'" | ||
|
||
vtctld: | ||
serviceType: "NodePort" | ||
resources: | ||
|
||
vtgate: | ||
serviceType: "NodePort" | ||
resources: | ||
|
||
vttablet: | ||
mysqlSize: "prod" | ||
resources: | ||
mysqlResources: | ||
# It's generally not recommended to override this value for production usage. | ||
terminationGracePeriodSeconds: 1 | ||
|
||
vtworker: | ||
resources: | ||
|
||
pmm: | ||
enabled: false | ||
|
||
orchestrator: | ||
enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
topology: | ||
cells: | ||
- name: "zone1" | ||
vtctld: | ||
replicas: 1 | ||
vtgate: | ||
replicas: 1 | ||
mysqlProtocol: | ||
enabled: true | ||
authType: "none" | ||
keyspaces: | ||
- name: "commerce" | ||
shards: | ||
- name: "0" | ||
tablets: | ||
- type: "replica" | ||
vttablet: | ||
replicas: 3 | ||
- name: "customer" | ||
shards: | ||
- name: "0" | ||
tablets: | ||
- type: "replica" | ||
vttablet: | ||
replicas: 3 | ||
|
||
jobs: | ||
- name: "mswitch1" | ||
kind: "vtctlclient" | ||
command: "SwitchReads -tablet_type=rdonly customer.commerce2customer" | ||
- name: "mswitch2" | ||
kind: "vtctlclient" | ||
command: "SwitchReads -tablet_type=replica customer.commerce2customer" | ||
|
||
vtctld: | ||
serviceType: "NodePort" | ||
resources: | ||
|
||
vtgate: | ||
serviceType: "NodePort" | ||
resources: | ||
|
||
vttablet: | ||
mysqlSize: "prod" | ||
resources: | ||
mysqlResources: | ||
# It's generally not recommended to override this value for production usage. | ||
terminationGracePeriodSeconds: 1 | ||
|
||
vtworker: | ||
resources: | ||
|
||
pmm: | ||
enabled: false | ||
|
||
orchestrator: | ||
enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
topology: | ||
cells: | ||
- name: "zone1" | ||
vtctld: | ||
replicas: 1 | ||
vtgate: | ||
replicas: 1 | ||
mysqlProtocol: | ||
enabled: true | ||
authType: "none" | ||
keyspaces: | ||
- name: "commerce" | ||
shards: | ||
- name: "0" | ||
tablets: | ||
- type: "replica" | ||
vttablet: | ||
replicas: 3 | ||
- name: "customer" | ||
shards: | ||
- name: "0" | ||
tablets: | ||
- type: "replica" | ||
vttablet: | ||
replicas: 3 | ||
|
||
jobs: | ||
- name: "mswitch3" | ||
kind: "vtctlclient" | ||
command: "SwitchWrites customer.commerce2customer" | ||
|
||
vtctld: | ||
serviceType: "NodePort" | ||
resources: | ||
|
||
vtgate: | ||
serviceType: "NodePort" | ||
resources: | ||
|
||
vttablet: | ||
mysqlSize: "prod" | ||
resources: | ||
mysqlResources: | ||
# It's generally not recommended to override this value for production usage. | ||
terminationGracePeriodSeconds: 1 | ||
|
||
vtworker: | ||
resources: | ||
|
||
pmm: | ||
enabled: false | ||
|
||
orchestrator: | ||
enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
topology: | ||
cells: | ||
- name: "zone1" | ||
vtctld: | ||
replicas: 1 | ||
vtgate: | ||
replicas: 1 | ||
mysqlProtocol: | ||
enabled: true | ||
authType: "none" | ||
keyspaces: | ||
- name: "commerce" | ||
shards: | ||
- name: "0" | ||
tablets: | ||
- type: "replica" | ||
vttablet: | ||
replicas: 3 | ||
schema: | ||
postsplit: |- | ||
drop table customer; | ||
drop table corder; | ||
vschema: | ||
postsplit: |- | ||
{ | ||
"tables": { | ||
"product": {} | ||
} | ||
} | ||
- name: "customer" | ||
shards: | ||
- name: "0" | ||
tablets: | ||
- type: "replica" | ||
vttablet: | ||
replicas: 3 | ||
|
||
jobs: | ||
- name: "vclean1" | ||
kind: "vtctlclient" | ||
command: "SetShardTabletControl -blacklisted_tables=customer,corder -remove commerce/0 rdonly" | ||
- name: "vclean2" | ||
kind: "vtctlclient" | ||
command: "SetShardTabletControl -blacklisted_tables=customer,corder -remove commerce/0 replica" | ||
- name: "vclean3" | ||
kind: "vtctlclient" | ||
command: "SetShardTabletControl -blacklisted_tables=customer,corder -remove commerce/0 master" | ||
- name: "vclean4" | ||
kind: "vtctlclient" | ||
command: "ApplyRoutingRules -rules=\'{}\'" | ||
|
||
vtctld: | ||
serviceType: "NodePort" | ||
resources: | ||
|
||
vtgate: | ||
serviceType: "NodePort" | ||
resources: | ||
|
||
vttablet: | ||
mysqlSize: "prod" | ||
resources: | ||
mysqlResources: | ||
# It's generally not recommended to override this value for production usage. | ||
terminationGracePeriodSeconds: 1 | ||
|
||
vtworker: | ||
resources: | ||
|
||
pmm: | ||
enabled: false | ||
|
||
orchestrator: | ||
enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.