mirror of
				https://github.com/TeaOSLab/EdgeNode.git
				synced 2025-11-04 07:40:56 +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