云数据库 GaussDB-其它选项:max_concurrent_autonomous_transactions

时间:2023-11-01 16:22:17

max_concurrent_autonomous_transactions

参数说明:自治事务最大连接数,同一时间自治事务执行的最大并发数。当设置为0时,将无法执行自治事务。

该参数属于POSTMASTER类型参数,请参考表表1中对应设置方法进行设置。

取值范围:0-10000,理论最大值为10000,实际最大值为动态值,计算公式为“262143 - job_queue_processes - autovacuum_max_workers - max_inner_tool_connections - max_connections - AUXILIARY_BACKENDS - AV_LAUNCHER_PROCS”,job_queue_processesautovacuum_max_workersmax_inner_tool_connectionsmax_connections的值取决于对应GUC参数的设置,AUXILIARY_BACKENDS为预留辅助线程数固定为20,AV_LAUNCHER_PROCS为预留autovacuum的launcher线程数固定为2。

默认值:

独立部署:80(60核CPU/480G内存);40(32核CPU/256G内存);20(16核CPU/128G内存);10(8核CPU/64G内存,4核CPU/32G内存,4核CPU/16G内存)

金融版(标准型):

CN:200(196核CPU/1536G内存,128核CPU/1024G内存,104核CPU/1024G内存,96核CPU/1024G内存);150(96核CPU/768G内存);120(80核CPU/640G内存,72核CPU/576G内存);100(64核CPU/512G内存);80 (60核CPU/480G内存);40(32核CPU/256G内存);20(16核CPU/128G内存);10(8核CPU/64G内存)

DN:200(196核CPU/1536G内存,128核CPU/1024G内存,104核CPU/1024G内存,96核CPU/1024G内存);150(96核CPU/768G内存);120(80核CPU/640G内存,72核CPU/576G内存);100(64核CPU/512G内存);80 (60核CPU/480G内存);40(32核CPU/256G内存);20(16核CPU/128G内存);10(8核CPU/64G内存)

企业版:

CN:200(196核CPU/1536G内存,128核CPU/1024G内存,104核CPU/1024G内存,96核CPU/1024G内存);150(96核CPU/768G内存);120(80核CPU/640G内存,72核CPU/576G内存);100(80核CPU/512G内存,64核CPU/512G内存);80(60核CPU/480G内存);40(32核CPU/256G内存);20(16核CPU/128G内存);10(8核CPU/64G内存)

DN:200(196核CPU/1536G内存,128核CPU/1024G内存,104核CPU/1024G内存,96核CPU/1024G内存);150(96核CPU/768G内存);120(80核CPU/640G内存,72核CPU/576G内存);100(80核CPU/512G内存,64核CPU/512G内存);80(60核CPU/480G内存);40(32核CPU/256G内存);20(16核CPU/128G内存);10(8核CPU/64G内存)

金融版(数据计算型):

CN:200(196核CPU/1536G内存,128核CPU/1024G内存);150(96核CPU/768G内存);120(72核CPU/576G内存);100(64核CPU/512G内存);40(32核CPU/256G内存)

DN:200(196核CPU/1536G内存,128核CPU/1024G内存);150(96核CPU/768G内存);120(72核CPU/576G内存);100(64核CPU/512G内存);40(32核CPU/256G内存)

设置建议:根据实际业务需要和硬件配置设置此参数,建议不超过max_connections的1/10。若仅调大此参数,未同比例调整内存参数,业务压力大时,容易出现内存不足,报错提示“memory is temporarily unavailable”。

若升级过程中涉及此参数范围变更,并且在commit前修改了此参数,则如果执行升级回滚,需要将此参数调整至升级前允许的范围,否则可能导致数据库无法启动。

support.huaweicloud.com/distributed-devg-v3-opengauss/gaussdb-10-0319.html