mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-29 09:02:40 +02:00
etcd: increase message and transaction limits for embedded etcd
This commit is contained in:
@@ -174,12 +174,13 @@ func newEtcdBackend(config BackendConfig) (*db, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cli, err := clientv3.New(clientv3.Config{
|
cli, err := clientv3.New(clientv3.Config{
|
||||||
Context: config.Ctx,
|
Context: config.Ctx,
|
||||||
Endpoints: []string{config.Host},
|
Endpoints: []string{config.Host},
|
||||||
DialTimeout: etcdConnectionTimeout,
|
DialTimeout: etcdConnectionTimeout,
|
||||||
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 {
|
||||||
|
@@ -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())
|
||||||
|
Reference in New Issue
Block a user