mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-04 05:00:25 +08:00
可以在集群设置中修改节点最大并发读/写数
This commit is contained in:
@@ -114,6 +114,8 @@ func (this *IndexAction) RunGet(params struct {
|
||||
"autoInstallNftables": cluster.AutoInstallNftables,
|
||||
"autoSystemTuning": cluster.AutoSystemTuning,
|
||||
"autoTrimDisks": cluster.AutoTrimDisks,
|
||||
"maxConcurrentReads": cluster.MaxConcurrentReads,
|
||||
"maxConcurrentWrites": cluster.MaxConcurrentWrites,
|
||||
"sshParams": sshParams,
|
||||
"domainName": fullDomainName,
|
||||
}
|
||||
@@ -143,6 +145,8 @@ func (this *IndexAction) RunPost(params struct {
|
||||
AutoInstallNftables bool
|
||||
AutoSystemTuning bool
|
||||
AutoTrimDisks bool
|
||||
MaxConcurrentReads int32
|
||||
MaxConcurrentWrites int32
|
||||
|
||||
Must *actions.Must
|
||||
}) {
|
||||
@@ -200,6 +204,8 @@ func (this *IndexAction) RunPost(params struct {
|
||||
AutoSystemTuning: params.AutoSystemTuning,
|
||||
AutoTrimDisks: params.AutoTrimDisks,
|
||||
SshParamsJSON: sshParamsJSON,
|
||||
MaxConcurrentReads: params.MaxConcurrentReads,
|
||||
MaxConcurrentWrites: params.MaxConcurrentWrites,
|
||||
})
|
||||
if err != nil {
|
||||
this.ErrorPage(err)
|
||||
|
||||
@@ -81,6 +81,8 @@ func (this *CreateAction) RunPost(params struct {
|
||||
AutoInstallNftables bool
|
||||
AutoSystemTuning bool
|
||||
AutoTrimDisks bool
|
||||
MaxConcurrentReads int32
|
||||
MaxConcurrentWrites int32
|
||||
|
||||
// DNS相关
|
||||
DnsDomainId int64
|
||||
@@ -151,6 +153,8 @@ func (this *CreateAction) RunPost(params struct {
|
||||
AutoInstallNftables: params.AutoInstallNftables,
|
||||
AutoSystemTuning: params.AutoSystemTuning,
|
||||
AutoTrimDisks: params.AutoTrimDisks,
|
||||
MaxConcurrentReads: params.MaxConcurrentReads,
|
||||
MaxConcurrentWrites: params.MaxConcurrentWrites,
|
||||
})
|
||||
if err != nil {
|
||||
this.ErrorPage(err)
|
||||
|
||||
@@ -126,6 +126,20 @@
|
||||
<p class="comment">执行TRIM后可以移除SSD硬盘中无效的数据,从而显著提升SSD硬盘写入性能。</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>节点I/O最大读并发数</td>
|
||||
<td>
|
||||
<input name="maxConcurrentReads" v-model="cluster.maxConcurrentReads" type="text" style="width: 5em" maxlength="4"/>
|
||||
<p class="comment">0表示根据系统资源自动计算;通常不需要修改,请在专业人士指导下操作。</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>节点I/O最大写并发数</td>
|
||||
<td>
|
||||
<input name="maxConcurrentWrites" v-model="cluster.maxConcurrentWrites" type="text" style="width: 5em" maxlength="4"/>
|
||||
<p class="comment">0表示根据系统资源自动计算;通常不需要修改,请在专业人士指导下操作。</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<submit-btn></submit-btn>
|
||||
|
||||
Reference in New Issue
Block a user