kvdb
interface LND can support multiple database backends allowing experimentation with the storage model as well as improving robustness trough eg. replicating essential data.kvdb
in v0.11.0 we're adding experimental etcd support to LND. As this is an unstable feature heavily in development, it still has many rough edges for the time being. It is therefore highly recommended to not use LND on etcd
in any kind of production environment especially not on bitcoin mainnet.kvdb_etcd
, without which the binary is built without the etcd driver.GOFLAGS
environment variable to "-tags=test"
otherwise gopls
won't work on code in channeldb/kvdb/etcd
directory.max-txn-ops
and max-request-bytes
values are currently required in case of running LND with the full graph in etcd. Upcoming versions will split the database to local and replicated parts and only essential parts will remain in the replicated database, removing the requirement for these additional settings. These parameters have been tested to work with testnet LND.lnd.conf
.lnd.conf
(with other setting omitted):db.etcd.user
and db.etcd.pass
for db user authentication. If the database is shared, it is possible to separate our data from other users by setting db.etcd.namespace
to an (already existing) etcd namespace. In order to test without TLS, users are able to set db.etcd.disabletls
flag to true
.