Hi @Riley
It is recommended that you analyze your existing workload by performing the following tasks in a SQL Server test environment:
(1) Set the autogrowth of tempdb.
(2) Simulate individual queries or work tasks while monitoring tempdb space usage.
(3) Simulate performing some system maintenance operations, such as rebuilding indexes, while monitoring tempdb space.
(4) Use the tempdb space usage values in the previous steps 2 and 3 to predict how much space will be used under the total workload; and adjust this value for the planned concurrency. For example, if a task uses 10 GB of tempdb space, and in a production environment there may be up to 4 such tasks running at the same time, reserve at least 40 GB of space.
(5) According to the value obtained in step 4, set the initial size of tempdb in the production environment. Autogrowth is also turned on.
The number of tempdb files and the size settings should not only meet the needs of user tasks, but also consider performance optimization.
Best regards,
Cosmog Hong