Skip to content

Commit

Permalink
chore: disable performance schema for smaller class (#3936)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldming authored Jun 26, 2023
1 parent ad11148 commit e9fd547
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion deploy/apecloud-mysql/config/mysql8-config.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ innodb_buffer_pool_size={{ $pool_buffer_size }}
max_connections={{ div ( div $phy_memory 4 ) $single_thread_memory }}
{{- end}}

# alias replica_exec_mode. Aliyn slave_exec_mode=STRICT
# if memory less than 8Gi, disable performance_schema
{{- if lt $phy_memory 8589934592 }}
performance_schema=OFF
{{- end }}

# alias replica_exec_mode. Aliyun slave_exec_mode=STRICT
slave_exec_mode=IDEMPOTENT

# gtid
Expand Down

0 comments on commit e9fd547

Please sign in to comment.