Options
All
  • Public
  • Public/Protected
  • All
Menu

Configuration options for the etcd v3

Hierarchy

  • IOptions
    • Etcd3StoreOptions

Index

Properties

Optional auth

auth: undefined | object

Etcd password auth, if using.

Optional backoffStrategy

backoffStrategy: IBackoffStrategy

Backoff strategy to use for connecting to hosts. Defaults to an exponential strategy, starting at a 500 millisecond retry with a 30 second max.

Optional credentials

credentials: undefined | object

Optional client cert credentials for talking to etcd. Describe more here, passed into the createSsl function in GRPC here.

Optional dialTimeout

dialTimeout: undefined | number

Duration in milliseconds to wait while connecting before timing out. Defaults to 30 seconds.

Optional grpcOptions

grpcOptions: ChannelOptions

Internal options to configure the GRPC client. These are channel options as enumerated in their C++ documentation. For example:

const etcd = new Etcd3({
  // ...
  grpcOptions: {
    'grpc.http2.max_ping_strikes': 3,
  },
})

hosts

hosts: string[] | string

A list of hosts to connect to. Hosts should include the https?:// prefix.

Optional prefix

prefix: undefined | string

Prefix used to record the keys of all the sessions.

Defaults to sess.

Optional retry

retry: undefined | true | false

Whether, if a query fails as a result of a primitive GRPC error, to retry it on a different server (provided one is available). This can make service disruptions less-severe but can cause a domino effect if a particular operation causes a failure that grpc reports as some sort of internal or network error.

Defaults to false.

Optional skipTouch

skipTouch: undefined | true | false

Option to skip touching process that express does every time it reads the session. This is useful if you work with big TTL and wanna free your ETCD from this extra access.

Defaults to false.

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc