0

我正在使用具有 5 个节点的 MariaDB Gallera 集群,数据库版本 10.0.23-MariaDB-1~trusty-wsrep-log(mariadb.org 二进制分发,wsrep_25.11.r21a2415) 供应商:mariadb ClusterControl UI 版本:1.3.0.1393 ClusterControl CMON版本:1.3.0.1242 CMON API 版本:1.3.0.183

所有节点都是 60GB 的 RAM,其中一个服务器消耗更多的 RAM,同时其他 4 个节点运行良好。

maria2-| success | rc=0 >>
             total       used       free     shared    buffers     cached
Mem:           60G        28G        31G       4.1M       317M        12G
-/+ buffers/cache:        16G        43G
Swap:          19G         0B        19G
Total:         80G        28G        51G

**maria1-** | success | rc=0 >>
             total       used       free     shared    buffers     cached
Mem:           60G        46G        **13G**       4.0M       312M       7.3G
-/+ buffers/cache:        38G        21G
Swap:          19G         0B        19G
Total:         80G        46G        33G

maria4- | success | rc=0 >>
             total       used       free     shared    buffers     cached
Mem:           60G        22G        37G       4.0M       284M       6.7G
-/+ buffers/cache:        15G        44G
Swap:          19G         0B        19G
Total:         80G        22G        57G

maria3- | success | rc=0 >>
             total       used       free     shared    buffers     cached
Mem:           60G        23G        36G       4.0M       314M       7.0G
-/+ buffers/cache:        15G        44G
Swap:          19G         0B        19G
Total:         80G        23G        56G

maria5- | success | rc=0 >>
             total       used       free     shared    buffers     cached
Mem:           60G        22G        37G       4.0M       284M       6.7G
-/+ buffers/cache:        15G        44G
Swap:          19G         0B        19G
Total:         80G        22G        57G

如何减少 mariadb1 服务器的 RAM 使用量?

请为此提供解决方案。

4

1 回答 1

0

一个猜测......你有大约 20GB 的数据+索引;innodb_buffer_pool_size = 40G; 并且,出于某种原因,maria1 的 buffer_pool 已填充到完整大小,但其余部分没有。

猜测之上的猜测......一个巨大的查询命中 mariadb1,做了很多索引更改、重做、撤消等,但随后要么回滚,要么没有发送(通过基于行的复制)它所占用的所有临时内容执行查询。

于 2016-05-03T01:43:51.523 回答