集群设置增加自动硬盘TRIM选项

This commit is contained in:
GoEdgeLab
2024-04-04 17:04:28 +08:00
parent 77ae8f848b
commit 329695f0d0
5 changed files with 20 additions and 1 deletions

View File

@@ -113,6 +113,7 @@ func (this *IndexAction) RunGet(params struct {
"autoRemoteStart": cluster.AutoRemoteStart,
"autoInstallNftables": cluster.AutoInstallNftables,
"autoSystemTuning": cluster.AutoSystemTuning,
"autoTrimDisks": cluster.AutoTrimDisks,
"sshParams": sshParams,
"domainName": fullDomainName,
}
@@ -141,6 +142,7 @@ func (this *IndexAction) RunPost(params struct {
AutoRemoteStart bool
AutoInstallNftables bool
AutoSystemTuning bool
AutoTrimDisks bool
Must *actions.Must
}) {
@@ -196,6 +198,7 @@ func (this *IndexAction) RunPost(params struct {
AutoRemoteStart: params.AutoRemoteStart,
AutoInstallNftables: params.AutoInstallNftables,
AutoSystemTuning: params.AutoSystemTuning,
AutoTrimDisks: params.AutoTrimDisks,
SshParamsJSON: sshParamsJSON,
})
if err != nil {

View File

@@ -80,6 +80,7 @@ func (this *CreateAction) RunPost(params struct {
SystemdServiceIsOn bool
AutoInstallNftables bool
AutoSystemTuning bool
AutoTrimDisks bool
// DNS相关
DnsDomainId int64
@@ -149,6 +150,7 @@ func (this *CreateAction) RunPost(params struct {
GlobalServerConfigJSON: globalServerConfigJSON,
AutoInstallNftables: params.AutoInstallNftables,
AutoSystemTuning: params.AutoSystemTuning,
AutoTrimDisks: params.AutoTrimDisks,
})
if err != nil {
this.ErrorPage(err)