mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-03 23:20:25 +08:00
调整KV相关选项尺寸
This commit is contained in:
@@ -157,7 +157,11 @@ func (this *Store) Open() error {
|
|||||||
Logger: NewLogger(),
|
Logger: NewLogger(),
|
||||||
}
|
}
|
||||||
|
|
||||||
var memoryMB = memutils.SystemMemoryGB() * 1
|
if fsutils.DiskIsFast() {
|
||||||
|
opt.BytesPerSync = 1 << 20
|
||||||
|
}
|
||||||
|
|
||||||
|
var memoryMB = memutils.SystemMemoryGB() * 2
|
||||||
if memoryMB > 256 {
|
if memoryMB > 256 {
|
||||||
memoryMB = 256
|
memoryMB = 256
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user