etcd: make max message size configurable

This commit is contained in:
Andras Banki-Horvath
2021-12-02 20:55:05 +01:00
parent 8d3fec35fe
commit 1ccc5e8014
5 changed files with 11 additions and 2 deletions

View File

@@ -73,6 +73,10 @@ func DefaultDB() *DB {
AutoCompactMinAge: kvdb.DefaultBoltAutoCompactMinAge,
DBTimeout: kvdb.DefaultDBTimeout,
},
Etcd: &etcd.Config{
// Allow at most 32 MiB messages by default.
MaxMsgSize: 32768 * 1024,
},
Postgres: &postgres.Config{
MaxConnections: defaultPostgresMaxConnections,
},