Introduction

Blink has an ability to use ETCD server to register pipelines. It allows to you to see if pipeline if running or not. In this article, we will walk you through how to use ETCD for managing pipeline statuses in Blink.

How does it work

If ETCD configuration is provided - Blink will register pipeline in ETCD server. It will create a key with the pipeline id and value with the pipeline status. The key will be updated every time the pipeline status changes.

Blink sets the key with cetrain status for a defined TTL. If the TTL is expired - the key will be removed from ETCD server and you can reveice a notification about it.

/service/${PIPELINE_ID}
string

Format of the key in ETCD server. PIPELINE_ID will be replaced with the pipeline id from the configuration file.

Default TTL is 15 seconds. Blink will try to refresh the key every 10 seconds.

Statuses

Starting ServiceState = “starting” Loaded ServiceState = “loaded” Started ServiceState = “started”

starting
string

starting status is being sent to ETCD server when the pipeline is starting. Normally you will see it once. If you receive it multiple times within a short period of time - it means that the pipeline is restarting.

starting
string

loaded is a transient status. It means that the pipeline is loaded and ready to start. It will be followed by started status.

started
string

started is a final status. It means that the pipeline is running.

Configuration

Currently, Blink doesn’t support any auth mechanisms available in ETCD server. Please, make sure you are running ETCD server with is not avaialable from external networks
service:
  etcd:
    host: "http://etcd:2379"