raft: set default maxSize to be 11
server: improve code