TMAegis
Thêm quy tắc cho tdsql

TMA-TDSQL-11.4

Ensure Cross-Shard Operations Are Appropriately Controlled

ThấpCấp 2Xem xét thủ côngtdsql

Mô tả

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

Cách kiểm tra

Phương pháp kiểm tra: Xem xét thủ công

Khuyến nghị này không thể kiểm tra tự động. Lần quét sẽ liệt kê mục này kèm hướng dẫn khi bạn truyền cờ --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.

Cách khắc phục

Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng

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.

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
tdsqltransactions
Tham chiếu
CIS Tencent TDSQL 10.3.22 Benchmark v1.0.0 - 11.4 Ensure Cross-Shard Operations Are Appropriately Controlled