Current section

Files

Jump to
ddb_connection priv ddb_connection.schema
Raw

priv/ddb_connection.schema

%% -*- erlang -*-
%% @doc The TCP endpoint for the backend server. Doesn't support hostnames.
%% This setting overwrites backend_host and backend_port connections.
{mapping, "ddb_connection.backend_server", "ddb_connection.backend",
[{datatype, ip}]}.
%% @doc The TCP hostname or IP for the backend server.
%% Set this or backend_server.
{mapping, "ddb_connection.backend_host", "ddb_connection.backend_host",
[{default, "127.0.0.1"},
{datatype, string}]}.
%% @doc The TCP port for the backend server
%% Set this or backend_server.
{mapping, "ddb_connection.backend_port", "ddb_connection.backend_port",
[{default, 5555},
{datatype, integer}]}.
%% @doc Maximum number of datapoints to read in 1 chunk
{mapping, "ddb_connection.max_read", "ddb_connection.max_read",
[{default, 604800},
{datatype, integer}]}.
%% @doc maximum pool size
{mapping, "ddb_connection.pool.size", "ddb_connection.pool_size",
[{default, 20},
{datatype, integer}]}.
%% @doc maximum number of workers created if pool is empty
{mapping, "ddb_connection.pool.max", "ddb_connection.pool_max",
[{default, 5},
{datatype, integer}]}.