diff options
author | liyuenan <liyuenan@huawei.com> | 2017-02-10 09:37:26 +0800 |
---|---|---|
committer | Justin chi <chigang@huawei.com> | 2017-02-13 08:19:21 +0000 |
commit | 00791156cb2b98f7126a466dc28cf89a4a2a9eef (patch) | |
tree | 88ed86f27c2aa4ce8aeac7928f4b957bd0f7e7d5 /deploy/adapters/ansible/roles | |
parent | d4a90ad0ff4930f4853dc47dd11619a92a1fb1dd (diff) |
FIX access database failed
JIRA: COMPASS-521
Nova compute use osapi_compute and metadata api. Both of their worker
processes should be limited, otherwise mysql would not deal with those
processes.
Change-Id: Ib00b4731369c1c677639c9437ab83887550db572
Signed-off-by: liyuenan <liyuenan@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles')
-rw-r--r-- | deploy/adapters/ansible/roles/database/templates/my.cnf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deploy/adapters/ansible/roles/database/templates/my.cnf b/deploy/adapters/ansible/roles/database/templates/my.cnf index f1170ece..1ed9b931 100644 --- a/deploy/adapters/ansible/roles/database/templates/my.cnf +++ b/deploy/adapters/ansible/roles/database/templates/my.cnf @@ -29,7 +29,7 @@ tmp-table-size = 32M max-heap-table-size = 32M query-cache-type = 0 query-cache-size = 0M -thread-cache-size = 50 +thread-cache-size = {{ ansible_processor_vcpus * 10 }} open-files-limit = 65535 table-definition-cache = 4096 table-open-cache = 10240 |