Issues with PD Parameter Configuration

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: pd参数配置问题

| username: mono

[TiDB Usage Environment] Production Environment
[TiDB Version] 6.5.7
Using the show config command to check the PD configuration, you can see the max-request-bytes configuration item. However, there is no information about this parameter in the official documentation.

| username: zhaokede | Original post link

Used to control the maximum number of bytes for a single SQL request.

| username: mono | Original post link

Is it similar to max_allowed_packet?

| username: TiDBer_aaO4sU46 | Original post link

You can view the source code of TiDB.

| username: 这里介绍不了我 | Original post link

I encountered this issue before as well, but I didn’t address it. The cluster is functioning quite normally now.

| username: Kamner | Original post link

It should be a parameter that does not support modification, so there is no documentation.

bad request to http://10.0.0.13:2379/pd/api/v1/config: “config prefix max-request-bytes not found”

| username: buddyyuan | Original post link

default max bytes for grpc message, but it looks like using unsafe recovery in a large cluster will be limited by this

| username: TiDBer_小阿飞 | Original post link

The link you provided points to the configuration file in the TiKV PD repository on GitHub. Specifically, it refers to line 144 in the config.go file.

| username: Kongdom | Original post link

It is probably a hidden parameter configuration, which should not be modified, only viewed.

| username: redgame | Original post link

The maximum number of bytes. Haven’t used it before…

| username: TiDBer_ok0VXN1s | Original post link

Have you studied this deeply? I’m just getting started.

| username: kelvin | Original post link

It’s better not to change the parameters that are not officially recommended.

| username: TiDBer_rvITcue9 | Original post link

The official documentation does not recommend modifying this parameter.

| username: GreenGuan | Original post link

Be careful to verify in the test environment.

| username: Soysauce520 | Original post link

Can pdctl be successfully modified?