Skip to content

Commit

Permalink
etcd: set txn constant value
Browse files Browse the repository at this point in the history
  • Loading branch information
nitinprakash96 committed Jul 5, 2017
1 parent 12baba6 commit cb91677
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion etcd/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ const (
DefaultIdealClusterSize = 5 // default ideal cluster size target for initial seed
DefaultClientURL = "127.0.0.1:2379"
DefaultServerURL = "127.0.0.1:2380"
DefaultEtcdMaxTxnOps = uint(512)
)

var (
Expand Down Expand Up @@ -1656,7 +1657,7 @@ func (obj *EmbdEtcd) StartServer(newCluster bool, peerURLsMap etcdtypes.URLsMap)
cfg.LCUrls = obj.clientURLs
cfg.LPUrls = peerURLs
cfg.StrictReconfigCheck = false // XXX: workaround https://github.com/coreos/etcd/issues/6305
cfg.MaxTxnOps = uint(512) //set the etcd max transaction limit higher than the default configuration
cfg.MaxTxnOps = DefaultEtcdMaxTxnOps //set the etcd max transaction limit higher than the default configuration

cfg.InitialCluster = initialPeerURLsMap.String() // including myself!
if newCluster {
Expand Down

0 comments on commit cb91677

Please sign in to comment.