Skip to content

make bbolt to SQL migration process friendly to kubernetes and prepare to integrate the SQL migration process inside LND #78

@ZZiigguurraatt

Description

@ZZiigguurraatt

Most of lndinit is geared towards helping to initialize and run LND from within a kubernetes environment. For example

tells us how to initialize a wallet in kubernetes.

What is important to note is that these commands, if run a second time result in a no-op if they were already completed before. This allows them to be placed inside a kubernetes deployment startup script and if needed, they will do something on first start, if not, LND will restart normally all the other times. This allows a kubernetes deployment to have no changes required after the first startup to make the following startups work.

We should have a similar experience with migrate-db. We should be able to re-run it and it should be smart enough to move forward with no error if an appropriate SQL DB already exists, whether an old, non-SQL DB existed or not. I've created some more specific issues that I think we should fix to achieve this goal:

.

Also, if we can make these changes, then we will be testing the exact same workflow that we will need once we integrate the migrate-db process directly inside lnd. We plan do do this in later LND releases and I think we should start now by developing that workflow inside the external tool lndinit so that we can get testing out in the field on many nodes before we make this an automatic and integrated process inside of lnd for all nodes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions