Skip to content

Assess and adjust SQL instance flags #6

@jan-meyer-1986

Description

@jan-meyer-1986

A range of flages to adjusted were suggested:

max_join_size // useful for denying execution of outright stupid queries like large cross-joins.
    key_buffer_size, join_buffer_size, innodb_buffer_pool_size // optimal sizes depend on available RAM. I am mentioning it just to make sure it is not left at the default values
    max_allowed_packet = 10M // important for imports with long rows. You might have already encountered this limit
    sql_mode // I think I was disabling some of MySQL shenanigans and making it more ANSI compatible.
    wait_timeout, lock_wait_timeout, max_execution_time // consider decreasing these default values to improve availability of the server for the public

The following list shows them with their current (default) values:

'max_join_size', '18446744073709551615'

'key_buffer_size', '8388608'
'join_buffer_size', '262144'
'innodb_buffer_pool_size', '2550136832'

'max_allowed_packet', '33554432'

'sql_mode', 'ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'

'wait_timeout', '28800'
'lock_wait_timeout', '31536000'
'max_execution_time', '0'

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions