Production grade lnd
setup for High Availability and Fault Tolerance as a payment gateway.
#8040
-
Hello, Can someone please guide me or point me in the right direction with "Best Practices" to setup To be clear, I'm not asking best practices for routing node. Here are key points I'm concerned about:
Any other things I should be concerned about? Thanks in advance for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I'm not sure there are any "best practices" for that written down anywhere, since that always kind of depends on the use case. But giving a shot at answering your questions for your specific setup.
Yes, how to handle backups. If you back up your storage backend (whether that's file based SQLite or a Postgres cluster), you can't simply restore a backup if things go wrong, as you can never be certain you have the absolute latest state in that backup. Therefore making sure the DB cluster cannot easily corrupt or get out of sync is way more important than the actual backup of it by itself. Please read this document to get more info around the topic of backup and safety around channel management: https://github.com/lightningnetwork/lnd/blob/master/docs/safety.md |
Beta Was this translation helpful? Give feedback.
-
Re 1., here are some thoughts on lightning node fail-over strategies:
They might be dated but could still be useful. |
Beta Was this translation helpful? Give feedback.
I'm not sure there are any "best practices" for that written down anywhere, since that always kind of depends on the use case. But giving a shot at answering your questions for your specific setup.
lnd
architecture. But if you use a remote database backend (for example Postgres), you can have a "hot-standby" setup where you have one "hot" node running and one or more "standby" nodes waiting to take over if the hot one fails. That setup would require anetcd
cluster just for the leader election functionality though, but in case of a kubernetes setup that would already be available.nginx
…