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

Addition of the Orchestrator #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion kubernetes/init_cluster_vitess.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ spec:
vtgate: vitess/lite:v8.0.0
vttablet: vitess/lite:v8.0.0
vtbackup: vitess/lite:v8.0.0
vtorc: vitess/orctest:v1
mysqld:
mysql56Compatible: vitess/lite:v8.0.0
mysqldExporter: prom/mysqld-exporter:v0.11.0
Expand Down Expand Up @@ -39,7 +40,19 @@ spec:
requests:
cpu: 100m
memory: 128Mi

vitessOrchestrator:
cells:
- zone1
configSecret:
name: vitess-cluster-secret
key: orc_config.json
replicas: 1
resources:
limits:
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
keyspaces:
- name: articles
turndownPolicy: Immediate
Expand Down
14 changes: 14 additions & 0 deletions kubernetes/init_cluster_vitess_sharded_final.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ spec:
vtgate: vitess/lite:v8.0.0
vttablet: vitess/lite:v8.0.0
vtbackup: vitess/lite:v8.0.0
vtorc: vitess/orchestrator:v3.2.3
mysqld:
mysql56Compatible: vitess/lite:v8.0.0
mysqldExporter: prom/mysqld-exporter:v0.11.0
Expand Down Expand Up @@ -61,6 +62,19 @@ spec:
- name: vitess-region-config-volume
configMap:
name: vitess-cluster-config-sharding
vitessOrchestrator:
cells:
- zone1
configSecret:
name: vitess-cluster-secret
key: orc_config.json
replicas: 1
resources:
limits:
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
keyspaces:
- name: articles
turndownPolicy: Immediate
Expand Down
14 changes: 14 additions & 0 deletions kubernetes/init_cluster_vitess_sharded_final_jaeger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ spec:
vtgate: vitess/lite:v8.0.0
vttablet: vitess/lite:v8.0.0
vtbackup: vitess/lite:v8.0.0
vtorc: vitess/orchestrator:v3.2.3
mysqld:
mysql56Compatible: vitess/lite:v8.0.0
mysqldExporter: prom/mysqld-exporter:v0.11.0
Expand Down Expand Up @@ -42,6 +43,19 @@ spec:
- name: vitess-region-config-volume
configMap:
name: vitess-cluster-config-sharding
vitessOrchestrator:
cells:
- zone1
configSecret:
name: vitess-cluster-secret
key: orc_config.json
replicas: 1
resources:
limits:
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
vitessDashboard: # VTCTLD
cells:
- zone1
Expand Down
16 changes: 16 additions & 0 deletions kubernetes/vitess_cluster_secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ metadata:
namespace: vitess
type: Opaque
stringData:
orc_config.json: |
{
"Debug": true,
"Durability": "none",
"MySQLTopologyUser": "orc_client_user",
"MySQLTopologyPassword": "orc_client_user_password",
"MySQLReplicaUser": "vt_repl",
"MySQLReplicaPassword": "",
"RecoveryPeriodBlockSeconds": 5
}
users.json: |
{
"user": [{
Expand Down Expand Up @@ -71,6 +81,12 @@ stringData:
SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, CREATE USER, EVENT, TRIGGER
ON *.* TO 'vt_filtered'@'localhost';

CREATE USER 'orc_client_user'@'%' IDENTIFIED BY 'orc_client_user_password';
GRANT SUPER, PROCESS, REPLICATION SLAVE, RELOAD
ON *.* TO 'orc_client_user'@'%';
GRANT SELECT
ON _vt.* TO 'orc_client_user'@'%';

FLUSH PRIVILEGES;

RESET SLAVE ALL;
Expand Down