etcd: increase message and transaction limits for embedded etcd

This commit is contained in:
Andras Banki-Horvath committed 2020-09-17 14:50:14 +02:00
1 parent 8668248d96
commit b4b5a9d7de
2 files changed
+3 -1

No files matched your search

+1
View File
@@ -180,6 +180,7 @@ func newEtcdBackend(config BackendConfig) (*db, error) {
Username: config.User, Username: config.User,
Password: config.Pass, Password: config.Pass,
TLS: tlsConfig, TLS: tlsConfig,
MaxCallSendMsgSize: 16384*1024 - 1,
}) })
if err != nil { if err != nil {
+2 -1
View File
@@ -42,7 +42,8 @@ func NewEmbeddedEtcdInstance(path string) (*BackendConfig, func(), error) {
cfg.Dir = path cfg.Dir = path
// To ensure that we can submit large transactions. // To ensure that we can submit large transactions.
cfg.MaxTxnOps = 1000 cfg.MaxTxnOps = 8192
cfg.MaxRequestBytes = 16384 * 1024
// Listen on random free ports. // Listen on random free ports.
clientURL := fmt.Sprintf("127.0.0.1:%d", getFreePort()) clientURL := fmt.Sprintf("127.0.0.1:%d", getFreePort())