File tree Expand file tree Collapse file tree 4 files changed +59
-79
lines changed
Expand file tree Collapse file tree 4 files changed +59
-79
lines changed Original file line number Diff line number Diff line change @@ -5,4 +5,4 @@ kind: Kustomization
55images :
66- name : controller
77 newName : ghcr.io/numtide/multigres-operator
8- newTag : 076c82c -dirty
8+ newTag : 84cd6d9 -dirty
Original file line number Diff line number Diff line change 77 # Logical name of the cell
88 name : zone-a
99
10- # Container images for cell components
11- images :
12- multigateway : ghcr.io/multigres/multigateway:latest
13- multiorch : ghcr.io/multigres/multiorch:latest
10+ # Physical zone placement (use either 'zone' or 'region', not both)
11+ zone : us-west-1a
12+
13+ # Container image for multigateway
14+ multigatewayImage : ghcr.io/multigres/multigres:main
1415
1516 # MultiGateway deployment - query routing
1617 multigateway :
@@ -23,38 +24,20 @@ spec:
2324 cpu : 200m
2425 memory : 256Mi
2526
26- # MultiOrch deployment - cell orchestration
27- multiorch :
28- replicas : 1
29- resources :
30- requests :
31- cpu : 50m
32- memory : 64Mi
33- limits :
34- cpu : 200m
35- memory : 128Mi
36-
3727 # Reference to the global topology server
3828 globalTopoServer :
39- rootPath : /multigres
40- clientServiceName : kind-global-topo-client
29+ address : kind-global-topo:2379
30+ rootPath : /multigres/global
31+ implementation : etcd2
4132
42- # Cell-local topology server configuration
43- # If managedSpec is set, a TopoServer CR will be created for this cell
33+ # Cell-local topology server configuration (optional)
34+ # If specified, creates a local etcd cluster for this cell
4435 topoServer :
45- managedSpec :
36+ etcd :
4637 image : quay.io/coreos/etcd:v3.5.12
4738 replicas : 1
48-
49- # Storage for etcd data - kind uses local storage provisioner
50- dataVolumeClaimTemplate :
51- accessModes :
52- - ReadWriteOnce
53- resources :
54- requests :
55- storage : 1Gi
56-
57- # Resource requirements for etcd - lower for kind
39+ storage :
40+ size : 1Gi
5841 resources :
5942 requests :
6043 cpu : 50m
7053 # Topology reconciliation settings
7154 topologyReconciliation :
7255 registerCell : true
73- pruneTablets : true
56+ prunePoolers : true
Original file line number Diff line number Diff line change @@ -4,41 +4,48 @@ metadata:
44 name : kind-shard-sample
55 namespace : default
66spec :
7+ # Shard identification
8+ databaseName : mydb
9+ tableGroupName : users
10+ shardName : " 0"
11+
712 # Container images for shard components
813 images :
14+ multiorch : ghcr.io/multigres/multigres:main
15+ multipooler : ghcr.io/multigres/multigres:main
916 postgres : postgres:16-alpine
10- multipooler : ghcr.io/multigres/multipooler:latest
17+
18+ # Reference to the global topology server
19+ globalTopoServer :
20+ address : kind-global-topo:2379
21+ rootPath : /multigres/global
22+ implementation : etcd2
1123
1224 # MultiOrch configuration for shard orchestration
13- multiOrch :
25+ multiorch :
1426 cells :
1527 - zone-a
16- image : ghcr.io/multigres/multiorch:latest
28+ replicas : 1
1729 resources :
1830 requests :
1931 cpu : 50m
2032 memory : 64Mi
2133 limits :
2234 cpu : 200m
23- memory : 256Mi
35+ memory : 128Mi
2436
2537 # Shard pools - different types of PostgreSQL replicas
2638 pools :
2739 # Primary replica pool
2840 primary :
29- type : replica
30- cell : zone-a
31- database : mydb
32- tableGroup : users
33- replicas : 1
41+ type : readWrite
42+ cells :
43+ - zone-a
44+ replicasPerCell : 1
3445
3546 # Storage configuration - kind uses local storage provisioner
36- dataVolumeClaimTemplate :
37- accessModes :
38- - ReadWriteOnce
39- resources :
40- requests :
41- storage : 1Gi
47+ storage :
48+ size : 1Gi
4249
4350 # PostgreSQL container configuration - lower resources for kind
4451 postgres :
@@ -62,18 +69,13 @@ spec:
6269
6370 # Read replica pool
6471 replica :
65- type : replica
66- cell : zone-a
67- database : mydb
68- tableGroup : users
69- replicas : 1
72+ type : readOnly
73+ cells :
74+ - zone-a
75+ replicasPerCell : 1
7076
71- dataVolumeClaimTemplate :
72- accessModes :
73- - ReadWriteOnce
74- resources :
75- requests :
76- storage : 1Gi
77+ storage :
78+ size : 1Gi
7779
7880 postgres :
7981 resources :
Original file line number Diff line number Diff line change @@ -4,29 +4,24 @@ metadata:
44 name : kind-toposerver-sample
55 namespace : default
66spec :
7- # Root path for topology data in etcd
8- rootPath : /multigres/global
7+ # Etcd configuration for the topology server
8+ etcd :
9+ # etcd container image
10+ image : quay.io/coreos/etcd:v3.5.12
911
10- # etcd container image
11- image : quay.io/coreos/etcd:v3.5.12
12+ # Number of etcd replicas (must be odd: 1, 3, 5, etc.)
13+ # Using 1 replica for kind to minimize resource usage
14+ replicas : 1
1215
13- # Number of etcd replicas (must be odd: 1, 3, 5, etc.)
14- # Using 1 replica for kind to minimize resource usage
15- replicas : 1
16+ # Storage configuration for etcd data - kind uses local storage provisioner
17+ storage :
18+ size : 1Gi
1619
17- # Storage configuration for etcd data - kind uses local storage provisioner
18- dataVolumeClaimTemplate :
19- accessModes :
20- - ReadWriteOnce
20+ # Resource requirements for etcd containers - lower for kind
2121 resources :
2222 requests :
23- storage : 1Gi
24-
25- # Resource requirements for etcd containers - lower for kind
26- resources :
27- requests :
28- cpu : 50m
29- memory : 128Mi
30- limits :
31- cpu : 200m
32- memory : 256Mi
23+ cpu : 50m
24+ memory : 128Mi
25+ limits :
26+ cpu : 200m
27+ memory : 256Mi
You can’t perform that action at this time.
0 commit comments