Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
073890c843 | ||
|
|
44765ed970 | ||
|
|
39bd6264e7 | ||
|
|
8a480d296f |
@@ -1,7 +1,7 @@
|
||||
FROM --platform=linux/amd64 alpine:latest
|
||||
LABEL maintainer="goedge.cdn@gmail.com"
|
||||
ENV TZ "Asia/Shanghai"
|
||||
ENV VERSION 1.3.7
|
||||
ENV VERSION 1.3.8
|
||||
ENV ROOT_DIR /usr/local/goedge
|
||||
ENV TAR_FILE edge-admin-linux-amd64-plus-v${VERSION}.zip
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ func (this *UpdateAction) RunGet(params struct {
|
||||
{
|
||||
_, ok := cachePolicy.Options["enableMMAP"]
|
||||
if !ok {
|
||||
cachePolicy.Options["enableMMAP"] = true
|
||||
cachePolicy.Options["enableMMAP"] = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -129,14 +129,14 @@
|
||||
<tr>
|
||||
<td>节点I/O最大读并发数</td>
|
||||
<td>
|
||||
<input name="maxConcurrentReads" v-model="cluster.maxConcurrentReads" type="text" style="width: 5em" maxlength="3"/>
|
||||
<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="3"/>
|
||||
<input name="maxConcurrentWrites" v-model="cluster.maxConcurrentWrites" type="text" style="width: 5em" maxlength="4"/>
|
||||
<p class="comment">0表示根据系统资源自动计算;通常不需要修改,请在专业人士指导下操作。</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
<tr v-show="moreOptionsVisible && policyType == 'file'">
|
||||
<td class="color-border">启用MMAP</td>
|
||||
<td>
|
||||
<checkbox name="enableMMAP" checked="checked"></checkbox>
|
||||
<checkbox name="enableMMAP"></checkbox>
|
||||
<p class="comment">选中后,表示允许系统自动利用MMAP提升缓存读取性能。</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -12,7 +12,7 @@ Tea.context(function () {
|
||||
if (this.policyType == "file") {
|
||||
let options = this.cachePolicy.options
|
||||
if (options != null && typeof options == "object" && typeof options["dir"] === "undefined") {
|
||||
options["enableMMAP"] = true
|
||||
options["enableMMAP"] = false
|
||||
options["dir"] = "/opt/cache"
|
||||
options["memoryPolicy"] = {
|
||||
capacity: {
|
||||
|
||||
Reference in New Issue
Block a user