content/chronograf/v1/administration/migrate-to-high-availability.md
Use chronoctl to migrate your Chronograf configuration store from BoltDB to a shared etcd data store used for Chronograf high-availability (HA) clusters.
{{% note %}}
Migrating Chronograf to a shared data source creates new source IDs for each resource. Update external links to Chronograf dashboards to reflect new source IDs. {{% /note %}}
Stop the Chronograf server by killing the chronograf process.
To prevent data loss, we strongly recommend that you back up your Chronograf data store before migrating to a Chronograf cluster.
Run the following command, specifying the local BoltDB file and the etcd endpoint beginning with etcd://.
(We recommend adding the prefix bolt:// to an absolute path.
Do not use the prefix to specify a relative path to the BoltDB file.)
chronoctl migrate \
--from bolt:///path/to/chronograf-v1.db \
--to etcd://localhost:2379
If authentication is enabled on etcd, use the standard URI basic
authentication format to define a username and password. For example:
etcd://username:password@localhost:2379
If TLS is enabled on etcd, provide your TLS certificate credentials using
the following query parameters in your etcd URL:
etcd://127.0.0.1:2379?cert=/tmp/client.crt&key=/tst/client.key&ca=/tst/ca.crt
Update links to Chronograf (for example, from external sources) to reflect your new URLs:
Set up a load balancer for Chronograf.