Files
EdgeAdmin/web/views/@default/clusters/cluster/settings/index.html

66 lines
3.2 KiB
HTML
Raw Normal View History

2020-09-06 16:19:34 +08:00
{$layout}
{$template "/left_menu"}
<div class="right-box">
2020-11-10 12:47:24 +08:00
<form method="post" class="ui form" data-tea-action="$" data-tea-success="success">
2020-09-06 16:19:34 +08:00
<input type="hidden" name="clusterId" :value="cluster.id"/>
<table class="ui table selectable definition">
<tr>
<td class="title">集群名称 *</td>
<td><input type="text" name="name" maxlength="50" ref="focus" v-model="cluster.name"/></td>
</tr>
<tr>
<td>默认SSH登录方式</td>
<td>
<grant-selector :v-grant="grant"></grant-selector>
<p class="comment">当节点没有单独设置SSH登录方式时默认使用此设置。</p>
</td>
</tr>
<tr>
<td>节点安装目录</td>
2020-09-06 16:19:34 +08:00
<td>
<input type="text" name="installDir" maxlength="100" v-model="cluster.installDir"/>
<p class="comment">当节点没有单独设置安装目录时,默认使用此设置。如果集群和节点都没有设置安装目录,则使用<span class="ui label tiny">$登录用户HOME路径/edge-node</span> 目录。</p>
2020-09-06 16:19:34 +08:00
</td>
</tr>
2021-10-12 11:43:53 +08:00
<tr>
<td colspan="2"><more-options-indicator></more-options-indicator></td>
2021-10-12 11:43:53 +08:00
</tr>
<tbody v-show="moreOptionsVisible">
<tr>
<td>时区</td>
<td>
<div class="ui fields inline">
<div class="ui field">
<select class="ui dropdown" v-model="timeZoneGroupCode">
<option v-for="timeZoneGroup in timeZoneGroups" :value="timeZoneGroup.code">{{timeZoneGroup.name}}</option>
</select>
</div>
<div class="ui field">
<select class="ui dropdown" name="timeZone" v-model="cluster.timeZone">
<option v-for="timeZoneLocation in timeZoneLocations" :value="timeZoneLocation.name" v-if="timeZoneLocation.group == timeZoneGroupCode">{{timeZoneLocation.name}} ({{timeZoneLocation.offset}})</option>
</select>
</div>
</div>
<p class="comment">节点记录日志使用的时区。</p>
</td>
</tr>
<tr>
<td>单节点最大线程数</td>
<td>
<input type="text" name="nodeMaxThreads" maxlength="6" v-model="cluster.nodeMaxThreads"/>
<p class="comment">取值在{{defaultNodeMaxThreadsMin}}和{{defaultNodeMaxThreadsMax}}之间如果为0则默认为{{defaultNodeMaxThreads}}。</p>
</td>
</tr>
<tr>
<td>单节点TCP最大连接数</td>
<td>
<input type="text" name="nodeTCPMaxConnections" maxlength="6" v-model="cluster.nodeTCPMaxConnections"/>
<p class="comment">如果为0则默认为{{defaultNodeTCPMaxConnections}}。</p>
</td>
</tr>
</tbody>
2020-09-06 16:19:34 +08:00
</table>
<submit-btn></submit-btn>
</form>
</div>