tencent cloud

TDSQL Boundless

max_allowed_packet

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 2026-03-27 15:01:19

Feature Description

max_allowed_packet sets the maximum packet size allowed during data transmission between the SQLEngine and clients, measured in bytes. When a client sends a packet exceeding the value of max_allowed_packet, the SQLEngine will reject the packet.
When adjusting the max_allowed_packet parameter, you need to consider the following factors:
System resources: Set appropriate values according to the actual resource situation of the server. When resources are sufficient, the value of max_allowed_packet can be appropriately increased to improve the system's concurrent processing capacity. In the case of resource shortage, the value of max_allowed_packet needs to be reduced to avoid resource exhaustion.
Application requirements: Set appropriate values based on the actual needs of the application. For applications with high requirements for packet size, the value of max_allowed_packet may need to be increased to meet concurrency requirements. For applications with low requirements for data packet size, the value of max_allowed_packet can be reduced to save system resources.
Database performance: Set appropriate values based on the actual performance of the database. For databases with good performance, the value of max_allowed_packet may need to be increased to improve their concurrency processing capability. For databases with poor performance, the value of max_allowed_packet needs to be reduced to avoid database overload.

Attribute Description

Required
Description
Parameter Type
ULONG
Default Value
67108864
Value Range
1024 ~ 1073741824
Note:
The value of this variable should be an integer multiple of 1024. If the value is not divisible by 1024, a warning will be issued and the value will be rounded down. For example, if set to 1025, the actual value used in TDSQL Boundless will be 1024.
Effective Scope
GLOBAL
SESSION
Restart Required
No

Ajuda e Suporte

Esta página foi útil?

comentários