gpt4 book ai didi

Mysql cluster 7.2.2忽略设置和TABLE IS FULL错误

转载 作者:行者123 更新时间:2023-11-29 14:30:11 25 4
gpt4 key购买 nike

这是我的 my.cnf 设置

[mysqld]
ndbcluster
#engine_condition_pushdown=0
optimizer_switch=engine_condition_pushdown=off

# IP address of the cluster management node
ndb-connectstring=127.0.0.1

[mysql_cluster]
# IP address of the cluster management node
ndb-connectstring=127.0.0.1


[ndbd default]
NoOfReplicas= 2
MaxNoOfConcurrentOperations= 10000
DataMemory= 320M
IndexMemory= 96M
TimeBetweenWatchDogCheck= 30000
DataDir= /usr/local/mysql-cluster-gpl-7.2.2-osx10.6-x86_64/mysql-cluster
MaxNoOfOrderedIndexes= 512



[MYSQLD DEFAULT]

[NDB_MGMD DEFAULT]

[TCP DEFAULT]

# Section for the cluster management node
[NDB_MGMD]
# IP address of the management node (this system)
id=1
HostName=127.0.0.1


# Section for the storage nodes
[NDBD]
# IP address of the first storage node
id=2
HostName=127.0.0.1
DataDir= /usr/local/mysql-cluster-gpl-7.2.2-osx10.6-x86_64/mysql-cluster


[NDBD]
# IP address of the second storage node
id=3
HostName=127.0.0.1
DataDir= /usr/local/mysql-cluster-gpl-7.2.2-osx10.6-x86_64/mysql-cluster2

# one [MYSQLD] per storage node
[MYSQLD]
[MYSQLD]

我将数据内存设置为 320M,当我运行脚本来填充表时,它会停止并出现错误“表 blabla 已满”。我尝试使用 -f 选项和配置文件路径运行 ndb_mgmd 。我将此文件复制到名为 config.ini 的 mysql-cluster 文件夹中,但没有结果。

我得到了:

ndb_mgm> ALL REPORT MEMORYUSAGE
Node 2: Data usage is 100%(2560 32K pages of total 2560)
Node 2: Index usage is 74%(1741 8K pages of total 2336)
Node 3: Data usage is 100%(2560 32K pages of total 2560)
Node 3: Index usage is 74%(1741 8K pages of total 2336)

2560*32K=80M。 80M 就像默认的 mysql 集群设置。

最佳答案

我解决了我的问题。我需要将此配置分为两个配置文件,一个用于 mysql 服务器,并将其放在 data/my.cnf 中:

[mysqld]
ndbcluster
#engine_condition_pushdown=0
optimizer_switch=engine_condition_pushdown=off

# IP address of the cluster management node
ndb-connectstring=127.0.0.1

[mysql_cluster]
# IP address of the cluster management node
ndb-connectstring=127.0.0.1

/mysql_cluster/config.ini 文件夹中集群 bundle 的第二个文件:

[ndbd default]
NoOfReplicas= 2
MaxNoOfConcurrentOperations= 10000
DataMemory= 320M
IndexMemory= 96M
TimeBetweenWatchDogCheck= 30000
DataDir= /usr/local/mysql-cluster-gpl-7.2.2-osx10.6-x86_64/mysql-cluster
MaxNoOfOrderedIndexes= 512



[MYSQLD DEFAULT]

[NDB_MGMD DEFAULT]

[TCP DEFAULT]

# Section for the cluster management node
[NDB_MGMD]
# IP address of the management node (this system)
id=1
HostName=127.0.0.1


# Section for the storage nodes
[NDBD]
# IP address of the first storage node
id=2
HostName=127.0.0.1
DataDir= /usr/local/mysql-cluster-gpl-7.2.2-osx10.6-x86_64/mysql-cluster


[NDBD]
# IP address of the second storage node
id=3
HostName=127.0.0.1
DataDir= /usr/local/mysql-cluster-gpl-7.2.2-osx10.6-x86_64/mysql-cluster2

# one [MYSQLD] per storage node
[MYSQLD]
[MYSQLD]

关于Mysql cluster 7.2.2忽略设置和TABLE IS FULL错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10158177/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com