-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change etcd to external db #4046
Comments
We recently added support for migration from sqlite to etcd; this is currently the only supported path. |
Is there any info anywhere on how to do that? I didn't find anything in the documentation. |
Just add --cluster-init to the flags of the server. If you're using systemd, you can edit the unit to add the flag, and then reload/restart. |
Any updates on this? I migrated my data store to the embedded etcd for the native backups, but my hardware can't support the I/O requirements of etcd and I'd like to migrate back to a traditional database. |
Only sqlite -> etcd is supported, not etcd back to sqlite. |
Nice, so Documented is that SQLite is the default, and here is that the it migrates from SQLite to external etcd. Now i have an empty cluster... |
No, don't do that. --cluster-init starts a new embedded etcd instance, and will copy over data from sqlite, if any is present. --datastore-endpoint overrides the embedded etcd instance, and points at the requested datastore, without enabling any migration. Don't use both together, it won't do what you want. |
So what would be the migration way to migrate from internal SQLite to external etcd? Or is it only possible to migrate from an Internal SQLite to an internal etcd? |
Hi,
is there an easy way to change the datastore option from etcd to an external database without loosing any data?
Thanks
The text was updated successfully, but these errors were encountered: