MXS-2433: Reduce default query classifier cache size
Reduced the default cache size from 40% to 15%. Most cases don't benefit from that much memory and the defaults have caused problems in live environments.
This commit is contained in:
parent
d13e6e56ee
commit
61f728c05a
@ -679,7 +679,9 @@ _qc_sqlite_.
|
||||
#### `query_classifier_cache_size`
|
||||
|
||||
Specifies the maximum size of the query classifier cache. The default limit is
|
||||
40% of total system memory.
|
||||
15% of total system memory starting with MaxScale 2.3.7. In older versions the
|
||||
default limit was 40% of total system memory. This feature was added in MaxScale
|
||||
2.3.0.
|
||||
|
||||
When the query classifier cache has been enabled, MaxScale will, after a
|
||||
statement has been parsed, store the classification result using the
|
||||
|
@ -2850,7 +2850,7 @@ void config_set_global_defaults()
|
||||
gateway.peer_password[0] = '\0';
|
||||
gateway.log_target = MXB_LOG_TARGET_DEFAULT;
|
||||
|
||||
gateway.qc_cache_properties.max_size = get_total_memory() * 0.4;
|
||||
gateway.qc_cache_properties.max_size = get_total_memory() * 0.15;
|
||||
|
||||
if (gateway.qc_cache_properties.max_size == 0)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user