consul: Reduce mmap size on 32bit

This commit is contained in:
Armon Dadgar 2014-10-15 11:32:40 -07:00
parent 80a77a82df
commit 88b53702f1
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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
)