TMAegisBeta
更多 tdsql 规则

TDSQL

TMA-TDSQL-11.4

Ensure Cross-Shard Operations Are Appropriately Controlled

低级别 2人工审核tdsql

说明

tdsql_trx_cross_shard_op_whitelist controls the types of cross-shard operations allowed within a distributed transaction.

检查方式

审计方法: 人工审核

此项建议无法自动检查。当您传入 --include-manual 时,扫描结果会列出该项并附带这些说明。

On the SQLEngine run SHOW VARIABLES LIKE 'tdsql_trx_cross_shard_op_whitelist'; If the business does not require cross-shard writes the value must be READ; the default READ,WRITE is acceptable only where cross-shard writes are a documented requirement.

修复方式

修复方法: 操作指南或基础设施补丁

Configure the allowed operation types according to business needs, minimizing cross- shard write operations: If the business does not require cross-shard writes, set it to READ. If cross-shard writes are required, keep the default READ,WRITE.

属性

操作系统
任意
标签
tdsqltransactions
参考
CIS Tencent TDSQL 10.3.22 Benchmark v1.0.0 - 11.4 Ensure Cross-Shard Operations Are Appropriately Controlled