forked from oracle/oracle-database-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshard_prov_memory_cpu.yaml
67 lines (67 loc) · 2.06 KB
/
shard_prov_memory_cpu.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#
# Copyright (c) 2022, Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
#
apiVersion: database.oracle.com/v1alpha1
kind: ShardingDatabase
metadata:
name: shardingdatabase-sample
namespace: shns
spec:
shard:
- name: shard1
storageSizeInGb: 50
resources:
requests:
memory: "1000Mi"
cpu: "1000m"
envVars:
- name: "INIT_SGA_SIZE"
value: "600"
- name: "INIT_PGA_SIZE"
value: "400"
- name: shard2
storageSizeInGb: 50
resources:
requests:
memory: "1000Mi"
cpu: "1000m"
envVars:
- name: "INIT_SGA_SIZE"
value: "600"
- name: "INIT_PGA_SIZE"
value: "400"
catalog:
- name: catalog
storageSizeInGb: 50
resources:
requests:
memory: "1000Mi"
cpu: "1000m"
gsm:
- name: gsm1
storageSizeInGb: 50
replicas: 1
envVars:
- name: "SERVICE1_PARAMS"
value: "service_name=oltp_rw_svc;service_role=primary"
- name: "SERVICE2_PARAMS"
value: "service_name=oltp_ro_svc;service_role=primary"
- name: gsm2
storageSizeInGb: 50
replicas: 1
envVars:
- name: "SERVICE1_PARAMS"
value: "service_name=oltp_rw_svc;service_role=primary"
- name: "SERVICE2_PARAMS"
value: "service_name=oltp_ro_svc;service_role=primary"
storageClass: oci
dbImage: container-registry.oracle.com/database/enterprise:latest
dbImagePullSecret: ocr-reg-cred
gsmImage: container-registry.oracle.com/database/gsm:latest
gsmImagePullSecret: ocr-reg-cred
scriptsLocation: "set -ex;curl https://codeload.github.com/oracle/db-sharding/tar.gz/master | tar -xz --strip=4 db-sharding-master/docker-based-sharding-deployment/dockerfiles/21.3.0/scripts; cp -i -r scripts/* /opt/oracle/scripts/sharding/scripts/;cp -i -r scripts/*py /opt/oracle/scripts/sharding"
secret: db-user-pass
isExternalSvc: false
isDeleteOraPvc: True
namespace: shns