Skip to content

Commit 71e2423

Browse files
committed
Increase TiKV file descriptor limit to 200000
- TiKV now requires at least 123880 file descriptors (increased from previous 82920) - Set ulimit to 200000 to provide sufficient headroom
1 parent 1b3d806 commit 71e2423

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

mysql/testcontainers_helper.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -412,12 +412,12 @@ func startTiDBCluster(ctx context.Context, t *testing.T, version string) *TiDBTe
412412
"--pd=pd:2379",
413413
},
414414
HostConfigModifier: func(hostConfig *container.HostConfig) {
415-
// Set ulimit for file descriptors to 100000 (TiKV requires at least 82920)
415+
// Set ulimit for file descriptors to 200000 (TiKV requires at least 123880)
416416
hostConfig.Ulimits = []*container.Ulimit{
417417
{
418418
Name: "nofile",
419-
Soft: 100000,
420-
Hard: 100000,
419+
Soft: 200000,
420+
Hard: 200000,
421421
},
422422
}
423423
},
@@ -531,12 +531,12 @@ func startSharedTiDBCluster(version string) (*TiDBTestCluster, error) {
531531
"--pd=pd:2379",
532532
},
533533
HostConfigModifier: func(hostConfig *container.HostConfig) {
534-
// Set ulimit for file descriptors to 100000 (TiKV requires at least 82920)
534+
// Set ulimit for file descriptors to 200000 (TiKV requires at least 123880)
535535
hostConfig.Ulimits = []*container.Ulimit{
536536
{
537537
Name: "nofile",
538-
Soft: 100000,
539-
Hard: 100000,
538+
Soft: 200000,
539+
Hard: 200000,
540540
},
541541
}
542542
},

0 commit comments

Comments
 (0)