Interface ConfigProvider

interface ConfigProvider {
    interval?: number;
    path?: string;
}

Properties

Properties

interval?: number

Interval in milliseconds between dynamic configuration check for file modifications. The value must be greater than or equal to the {Config.tenderInterval}.

path?: string

Dynamic configuration file path. If set, cluster policies will be read from the yaml file at cluster initialization and whenever the file changes. The policies fields in the file override all command policies as well as all policies specified in the Node.js Client Config.

If the AEROSPIKE_CLIENT_CONFIG_URL environment variable is set, it will take precedence over any path provided with a config provider.