etcd-wrapper

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2024 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 10 Imported by: 0

README

etcd-wrapper

CI Build status Go Report Card

etcd-wrapper configures and starts an embedded etcd.

In gardener context, each control plane (whether it is part of a seed or a shoot) gets its own etcd cluster. An etcd cluster is realized as a StatefulSet.

Each etcd member is a two container Pod which consists of:

  • etcd-wrapper which is the main etcd process.
  • etcd-backup-restore sidecar which currently provides the following capabilities (the list is not comprehensive):
    • etcd DB validation.
    • Scheduled DB defragmentation.
    • Snapshotting - delta and full snapshots are taken at regularly.
    • Backup - delta and full snapshots are backed in an object store if one is configured.
    • Restoration - In case of a DB corruption for a single member cluster it helps in restoring from last full snapshot.
    • Member control operations e.g. adding the peer etcd process as a learner.

etcd-wrapper currently depends upon backup-restore sidecar container for the following:

  • Validation of etcd DB
  • Optionally restore the etcd DB from the backup object store in case the DB is corrupt (this is only relevant in a single node etcd cluster).
  • Provide user provided etcd configuration.

To learn more about etcd-wrapper see /docs directory, please find the index here.

Future improvements

  • It is currently not possible to productively use etcd-wrapper without its sidecar(etcd-backup-restore). We intend to change this in the near future to make it possible to even productively consume etcd-wrapper independently.

Feedback and Support

We always look forward to active community engagement. Please report bugs or suggestions on how we can enhance etcd-wrapper on Github Issues.

More Learning

  • For more information on gardener refer to the docs.
  • For more information on the etcd operator that is used in gardener see etcd-druid.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
app

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL