From b97496d4a5bd8869b6c6d6185c9220d6a6553914 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sat, 26 Nov 2016 10:33:22 +0900 Subject: [PATCH] Set max_open_files for LevelDB to 256 On Linux it seems a bit greedy --- server/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/storage.py b/server/storage.py index 35e0a7e..b8a0785 100644 --- a/server/storage.py +++ b/server/storage.py @@ -77,7 +77,7 @@ class LevelDB(Storage): def open(self, name, create): self.db = self.module.DB(name, create_if_missing=create, - compression=None) + max_open_files=256, compression=None) self.get = self.db.get self.put = self.db.put self.iterator = self.db.iterator