增加SSD硬盘自动TRIM功能

This commit is contained in:
刘祥超
2024-04-04 17:20:13 +08:00
parent 94ada46abc
commit e034c31333
2 changed files with 79 additions and 0 deletions

View File

@@ -228,6 +228,11 @@ func (this *Node) Start() {
stats.SharedHTTPRequestStatManager.Start()
})
// 硬盘TRIM任务
goman.New(func() {
NewTrimDisksTask().Start()
})
// 启动端口
err = sharedListenerManager.Start(nodeConfig)
if err != nil {