Skip to content

Commit 5047af9

Browse files
authored
chore(mysql-cluster): change dump default theads to 1 for avoid use too many mem
1 parent 07687a4 commit 5047af9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • addons/mysql-cluster/8.0/chart/mysql-cluster/templates/cluster

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': 4, '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, '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

0 commit comments

Comments
 (0)