mysql - 如何设置mysql MaxNoOfConcurrentOperations的值

标签 mysql storage

我收到以下错误:

Got temporary error 233 'Out of operation records in transaction coordinator (increase MaxNoOfConcurrentOperations)' from NDBCLUSTER

向ndb表中插入数据时。

谁能解释一下这个错误。同样在我的 config.ini 中,我没有设置此参数。有什么办法可以看到这个变量的默认值。因为当我使用命令 SHOW VARIABLES 时看不到这个变量。

要设置此变量,我还需要更改 MaxMaxNoOfConcurrentTransactionsMaxNoOfLocalOperations

最佳答案

MaxNoOfConcurrentOperations 的默认值为 32768,但您可以通过编辑 ndb_mgm 配置来增加此值,即/etc/mysql/ndb_mgmd.cnf

并添加类似的东西

MaxNoOfConcurrentOperations=100000

更新 MaxNoOfConcurrentOperations 值时,您还应该更新 MaxNoOfLocalOperations。经验法则是使 MaxNoOfLocalOperations 比 MaxNoOfConcurrentOperations 大 10%,这样您就可以拥有。

MaxNoOfConcurrentOperations=100000
MaxNoOfLocalOperations=110000

关于mysql - 如何设置mysql MaxNoOfConcurrentOperations的值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1310290/

相关文章:

PHP/MySQL 尝试获取 TIMESTAMPDIFF 来输出结果

mysql - 如果相同的字符串存储在多行中,MYSQL 是否以最佳方式存储它?

java - 存储实时 TestNG 数据

amazon-s3 - 如何通过 API 获取用户的 Google Cloud 存储项目列表?

java - 外部存储和 HTC One V

mysql - 站点定期崩溃并出现错误 "Mysql connect error [localhost]: (2002) Connection refused (400)"

mysql - SQL 表中的唯一交叉联接

php foreach 循环与数组

c - C (C89) 中十进制数的有效磁盘存储

mysql - 组合键作为外键(sql)