MXS-2109: Change semantics of query_classifier_cache_size

The cache size now refers to the total memory used by the cache instead of
the per thread limit. This makes it easier to use as well as more
predictable by removing the dependency on the number of worker threads.
This commit is contained in:
Markus Mäkelä
2018-10-29 12:01:30 +02:00
parent 06d1189e94
commit 8d1b26060a
3 changed files with 21 additions and 25 deletions

View File

@ -572,9 +572,10 @@ the cache. The size of the cache can be specifed as explained [here](#sizes).
query_classifier_cache_size=1MB
```
Note that MaxScale uses a separate cache for each worker thread. So, the total
amount of memory used at most by the cache is obtained by multiplying the size
specified here, with the value of `threads`.
Note that MaxScale uses a separate cache for each worker thread. To obtain the
amount of memory available for each thread, divide the cache size with the value
of `threads`. If statements are evicted from the cache (visible in the
diagnostic output), consider increasing the cache size.
##### `log_unrecognized_statements`