From 88b53702f1dfc11572d0a48645301c7e2f82d99b Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Wed, 15 Oct 2014 11:32:40 -0700 Subject: [PATCH] consul: Reduce mmap size on 32bit --- consul/server.go | 2 +- consul/state_store.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/consul/server.go b/consul/server.go index a16b0e0be..ecd9b7fc5 100644 --- a/consul/server.go +++ b/consul/server.go @@ -35,7 +35,7 @@ const ( serfWANSnapshot = "serf/remote.snapshot" raftState = "raft/" snapshotsRetained = 2 - raftDBSize32bit uint64 = 128 * 1024 * 1024 // Limit Raft log to 128MB + raftDBSize32bit uint64 = 64 * 1024 * 1024 // Limit Raft log to 64MB raftDBSize64bit uint64 = 8 * 1024 * 1024 * 1024 // Limit Raft log to 8GB // serverRPCCache controls how long we keep an idle connection diff --git a/consul/state_store.go b/consul/state_store.go index fcb4f04ec..0ce993fe2 100644 --- a/consul/state_store.go +++ b/consul/state_store.go @@ -23,7 +23,7 @@ const ( dbSessions = "sessions" dbSessionChecks = "sessionChecks" dbACLs = "acls" - dbMaxMapSize32bit uint64 = 512 * 1024 * 1024 // 512MB maximum size + dbMaxMapSize32bit uint64 = 128 * 1024 * 1024 // 128MB maximum size dbMaxMapSize64bit uint64 = 32 * 1024 * 1024 * 1024 // 32GB maximum size )