> ## Documentation Index
> Fetch the complete documentation index at: https://doc.lucidworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ConfigSync

[old doc.lw link]: https//doc.lucidworks.com/fusion/5.9/j47yes

[localhost link]: http://localhost:3000/docs/5/fusion/operations/config-sync/overview

[mintlify link]: https://doc.lucidworks.com/docs/5/fusion/operations/config-sync/overview.md

> [card] Key questions to get you started
>
> Powered by Lucidworks Agent Studio

ConfigSync keeps your Fusion configuration settings consistent and up-to-date across different environments by automatically synchronizing configuration data between your GitHub repository and your Fusion cluster.
It follows [GitOps](https://github.blog/enterprise-software/devops/applying-gitops-principles-to-your-operations/) principles by using GitHub as the single source of truth for configuration management.

> [!NOTE]
>
> ConfigSync requires using GitHub. Other Git providers are not supported.

> [!WARNING]
>
> ConfigSync supports TLS in Fusion 5.9.16 and later. For earlier versions, TLS must be disabled.

## Features

ConfigSync supports these features:

* Configuration storage:

  ConfigSync stores and synchronizes the objects that make up your Fusion configuration.
  See [Supported Objects](https://doc.lucidworks.com/docs/5/fusion/operations/config-sync/objects/overview.md) for the complete list, with details about how each object type is handled.

  It works like this:

  * GitHub Repository: Stores the configuration files.
  * Fusion Cluster: Applies the configuration files to the Fusion cluster.
  * Kubernetes Secret: Stores the Fusion secrets.

* Synchronization mechanisms

  * Polling:

    * Periodically pulls the latest changes from the GitHub repository and applies them to the Fusion cluster.
    * Periodically pulls the latest changes from some solr collections (blobs, rules) and pushes them to the GitHub repository.
  * Event-driven:

    * Listens for changes in the Fusion cluster and pushes them to the GitHub repository.
    * Listens for changes in the Kubernetes secret and syncs them with the Fusion cluster.

* Synchronization modes

  * [Publisher mode](https://doc.lucidworks.com/docs/5/fusion/operations/config-sync/modes/publisher-mode.md): Monitors Fusion for changes and pushes them to a GitHub repository.
  * [Subscriber mode](https://doc.lucidworks.com/docs/5/fusion/operations/config-sync/modes/subscriber-mode.md): Polls a GitHub repository for changes and applies them to Fusion.
  * [Pub/Sub mode](https://doc.lucidworks.com/docs/5/fusion/operations/config-sync/modes/pubsub-mode.md): Combines the features of both Publisher and Subscriber modes.

* [Secret management](https://doc.lucidworks.com/docs/5/fusion/operations/config-sync/secrets-management-used-in-config-sync.md)

  * Supports storing Fusion secrets in a Kubernetes secret and syncing them with the GitHub repository using the legacy ZooKeeper encryption format.
  * Watches for changes in the Kubernetes secret and syncs them with the Fusion cluster.

    > [!NOTE]
    >
    > Config Sync uses the [Secrets Management using ZooKeeper](https://doc.lucidworks.com/docs/5/fusion/operations/security/zookeeper.md) method. For new deployments, see [Secrets Management using Fusion Vault](https://doc.lucidworks.com/docs/5/fusion/operations/security/external-vault.md).

* [Version control](https://doc.lucidworks.com/docs/5/fusion/operations/config-sync/commits-management.md)

  * Maintains the `latest-synced-commit` to track the last applied commit.
  * Supports locking the configuration to a specific commit using `locked-commit`.

* Restoring configuration

  * Allows rollback to a previous state.
  * Supports restoring the configurations to a specific commit, branch or date.

* Metrics

  * Exposes metrics such as `resource_update_errors_total`, `out_of_sync`, `sync_seconds`, and `sync_seconds_max` at the `/actuator/prometheus `endpoint.

## Setup

See [ConfigSync deployment](https://doc.lucidworks.com/docs/5/fusion/operations/config-sync/deployment.md) to set up ConfigSync on your Fusion cluster.

> [card] [ConfigSync](https://academy.lucidworks.com/configsync-course)
>
> The course for **ConfigSync** focuses on how to synchronize your Fusion configuration with a GitHub repository.

## ConfigSync and S3BackupRepository

If you are using the S3BackupRepository plugin for Solr, note that changes from a restoration using the plugin are not pushed through ConfigSync, because backups and restores on the primary cluster using S3BackupRepository do not run through the update handler.
Backup and restore is an independent process.
You must backup and restore in both locations.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.