User-defined Playground

etcd store Playground

A distributed, reliable key-value store for the most critical data of a distributed system.

Playground Parameters

etcd store playground: A distributed, reliable key-value store for the most critical data of a distributed system.

💡 This is a single-node playground for etcd. To explore clustering capabilities, try the multi-node playground.

Use etcdctl to interact with etcd on the local host:

etcdctl version
etcdctl endpoint health

💡 Check out the official tutorials for learning more about etcd.

Configuring etcd

There are multiple ways to configure etcd:

  • Configure environment variables in /etc/default/etcd
  • Change configuration in /etc/etcd/config.yaml
  • Use sudo systemctl edit etcd to edit the service configuration (to use flags)
Configuration file

Uncomment the following line in /etc/default/etcd:

# ETCD_CONFIG_FILE=/etc/etcd/config.yaml

Then edit the configuration file.

Service configuration

When creating a systemd override, you can use this as a starting template:

[Service]
ExecStart=
ExecStart=/usr/bin/etcd --foo=bar

The empty ExecStart= is important, otherwise systemd will attempt to run two instances of etcd.

After editing the service configuration, you need to reload systemd:

sudo systemctl daemon-reload

Check out the configuration reference for more details.

Restart the service for the changes to take effect:

sudo systemctl restart etcd