Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: 大家对新部署的TiDB会做哪些初始化的优化呢?

In terms of performance and security, the more comprehensive, the better.
Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: 大家对新部署的TiDB会做哪些初始化的优化呢?
In terms of performance and security, the more comprehensive, the better.
For security, all servers are on the internal network, port 4000 is exposed, others are not exposed.
Set up alert notifications for monitoring.
Not much adjustment on performance.
If there is a compliance requirement, it is recommended to enable SSL.
10 Gigabit intranet isolated from other network segments, user permission restrictions
Regarding operating system security:
Linux:
No optimization is needed for the new cluster, just use it directly. When the data volume increases and there are monitoring anomalies, address them accordingly.
My personal research mainly focuses on the following points:
The default GC time is 10 minutes. Consider extending it to allow data recovery within the GC time.
Modify the log retention period; otherwise, too many logs might fill up the hard drive.
The tidb_ddl_reorg_worker_cnt
parameter can be increased to speed up index addition.
TiDB’s transaction isolation level is Repeatable Read by default. You can choose to use Read Committed.
Set the time period for statistical analysis.
You can schedule this statistical analysis to be executed during database idle times:
SET GLOBAL tidb_auto_analyze_start_time='23:00 +0800';
SET GLOBAL tidb_auto_analyze_end_time='00:00 +0800';
Adjust TiDB memory parameters.
If memory is sufficient, the default 1G tidb_mem_quota_query
can be increased.
Modify the MySQL version number displayed by TiDB to address vulnerability scanning issues.
Set the session connection timeout for TiDB.
Check the permissions and size settings of the temporary space.
I choose the default; the standard configuration is the best.
Initially, it’s best to use the default settings, and then adjust based on the actual production runtime situation.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.