Skip to content

Commit

Permalink
consul: Reduce mmap size on 32bit
Browse files Browse the repository at this point in the history
  • Loading branch information
armon committed Oct 15, 2014
1 parent cc999e3 commit f8fc46d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion consul/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion consul/state_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down

0 comments on commit f8fc46d

Please sign in to comment.