集群设置中增加“自动调节系统参数”选项

This commit is contained in:
GoEdgeLab
2023-10-08 15:08:11 +08:00
parent efc9c5dd58
commit af53f02a1b
6 changed files with 76 additions and 32 deletions

View File

@@ -112,6 +112,7 @@ func (this *IndexAction) RunGet(params struct {
"clock": clockConfig,
"autoRemoteStart": cluster.AutoRemoteStart,
"autoInstallNftables": cluster.AutoInstallNftables,
"autoSystemTuning": cluster.AutoSystemTuning,
"sshParams": sshParams,
"domainName": fullDomainName,
}
@@ -139,6 +140,7 @@ func (this *IndexAction) RunPost(params struct {
ClockCheckChrony bool
AutoRemoteStart bool
AutoInstallNftables bool
AutoSystemTuning bool
Must *actions.Must
}) {
@@ -193,6 +195,7 @@ func (this *IndexAction) RunPost(params struct {
ClockJSON: clockConfigJSON,
AutoRemoteStart: params.AutoRemoteStart,
AutoInstallNftables: params.AutoInstallNftables,
AutoSystemTuning: params.AutoSystemTuning,
SshParamsJSON: sshParamsJSON,
})
if err != nil {

View File

@@ -64,6 +64,7 @@ func (this *CreateAction) RunPost(params struct {
InstallDir string
SystemdServiceIsOn bool
AutoInstallNftables bool
AutoSystemTuning bool
// DNS相关
DnsDomainId int64
@@ -132,6 +133,7 @@ func (this *CreateAction) RunPost(params struct {
SystemServicesJSON: systemServicesJSON,
GlobalServerConfigJSON: globalServerConfigJSON,
AutoInstallNftables: params.AutoInstallNftables,
AutoSystemTuning: params.AutoSystemTuning,
})
if err != nil {
this.ErrorPage(err)