| | |
| | | MaxQueryRespSize = 50 * 1024 * 1024 |
| | | MaxQuerySize = 50 * 1024 * 1024 |
| | | MaxUserEventSize = 5 * 1024 |
| | | ReplayOnJoinDefault = false |
| | | SnapshotPathDefault = "/opt/vasystem/serfSnapShot" |
| | | ) |
| | | |
| | | // DefaultConfig default config |
| | |
| | | if c.Mode == ModeCluster && c.RetryMaxAttempts <= 0 { |
| | | c.RetryMaxAttempts = retryMaxAttempts |
| | | } |
| | | c.SnapshotPath = SnapshotPathDefault |
| | | c.ReplayOnJoin = ReplayOnJoinDefault |
| | | |
| | | serfConf.QueryResponseSizeLimit = c.QueryResponseSizeLimit |
| | | serfConf.QuerySizeLimit = c.QuerySizeLimit |
| | | serfConf.UserEventSizeLimit = c.UserEventSizeLimit |
| | | serfConf.SnapshotPath = c.SnapshotPath |
| | | |
| | | return serfConf, nil |
| | | } |