Skip to content

Commit 605ba28

Browse files
authored
chore(mysql-cluster): add router resources limits
1 parent b8b7c15 commit 605ba28

5 files changed

Lines changed: 35 additions & 3 deletions

File tree

addons/mysql-cluster/8.0/chart/mysql-cluster/templates/cluster/cronjob.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ spec:
6666
endpoint=os.getenv('AWS_ENDPOINT_URL')
6767
bucket_name=os.getenv('AWS_BUCKET_NAME')
6868
69-
util.dump_instance(now_str, {'s3BucketName': bucket_name, 's3EndpointOverride': endpoint, 'threads': 1, 'compatibility': ['strip_restricted_grants', 'strip_definers', 'ignore_missing_pks'] ,'excludeSchemas': ['mysql_innodb_cluster_metadata','sys','information_schema','performance_schema','mondb'],'compatibility':['strip_restricted_grants', 'strip_definers', 'ignore_missing_pks'] })
69+
util.dump_instance(now_str, {'s3BucketName': bucket_name, 's3EndpointOverride': endpoint, 'threads': 1, 'maxRate': '8M', 'compatibility': ['strip_restricted_grants', 'strip_definers', 'ignore_missing_pks'] ,'excludeSchemas': ['mysql_innodb_cluster_metadata','sys','information_schema','performance_schema','mondb'],'compatibility':['strip_restricted_grants', 'strip_definers', 'ignore_missing_pks'] })
7070
" > /tmp/dump_instance.py
7171
7272
mysqlsh --uri=${MYSQL_ROOT_USER}@${MYSQL_HOST}:${MYSQL_PORT_NUMBER} -p${MYSQL_ROOT_PASSWORD} --py < /tmp/dump_instance.py

addons/mysql-cluster/8.0/plans/standard-16c64g400/values.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,15 @@ primary:
2020
requests:
2121
cpu: 16000m
2222
memory: 64Gi
23-
23+
24+
router:
25+
resources:
26+
limits:
27+
cpu: 1600m
28+
memory: 2Gi
29+
requests:
30+
cpu: 1600m
31+
memory: 2Gi
2432

2533
## @section Persistence parameters
2634

addons/mysql-cluster/8.0/plans/standard-32c128g800/values.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,15 @@ primary:
2020
requests:
2121
cpu: 32000m
2222
memory: 128Gi
23-
23+
24+
router:
25+
resources:
26+
limits:
27+
cpu: 3200m
28+
memory: 4Gi
29+
requests:
30+
cpu: 3200m
31+
memory: 4Gi
2432

2533
## @section Persistence parameters
2634

addons/mysql-cluster/8.0/plans/standard-4c16g100/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ primary:
2121
cpu: 4000m
2222
memory: 16Gi
2323

24+
router:
25+
resources:
26+
limits:
27+
cpu: 500m
28+
memory: 512Mi
29+
requests:
30+
cpu: 500m
31+
memory: 512Mi
2432

2533
## @section Persistence parameters
2634

addons/mysql-cluster/8.0/plans/standard-8c32g200/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ primary:
2121
cpu: 8000m
2222
memory: 32Gi
2323

24+
router:
25+
resources:
26+
limits:
27+
cpu: 800m
28+
memory: 1024Mi
29+
requests:
30+
cpu: 800m
31+
memory: 1024Mi
2432

2533
## @section Persistence parameters
2634

0 commit comments

Comments
 (0)