tilegroxy Docs

Example

  • YAML

  • JSON

datastores:
  - name: redis
    id: redis-0
    mode: ring
    servers:
      - host: 127.0.0.1
        port: 6379
      - host: 127.0.0.1
        port: 6380
{
  "datastores": [
    {
      "name": "redis",
      "id": "redis-0",
      "mode": "ring",
      "servers": [
        {
          "host": "127.0.0.1",
          "port": 6379
        },
        {
          "host": "127.0.0.1",
          "port": 6380
        }
      ]
    }
  ]
}

Configuration

Configuration options
Parameter Description Type Required Default

ID

The unique identifier of the datastore used to reference this datastore elsewhere in configuration

string

Yes

None

Host

The host of the redis server. A convenience equivalent to supplying servers with a single entry. Do not supply both this and servers

string

No

127.0.0.1

Port

The port of the redis server. A convenience equivalent to supplying servers with a single entry. Do not supply both this and servers

int

No

6379

DB

Database number, defaults to 0. Unused in cluster mode

int

No

0

Username

Username to use to authenticate with redis

string

No

None

Password

Password to use to authenticate with redis

string

No

None

Mode

Controls operating mode of redis. Can be standalone, ring or cluster. Standalone is a single redis server. Ring distributes entries to multiple servers without any replication (more details). Cluster is a proper redis cluster.

string

No

standalone

Servers

The list of servers to connect to supplied as an array of objects, each with a host and key parameter. This should only have a single entry when operating in standalone mode. If this is unspecified it uses the standalone host and port parameters as a default, therefore this shouldn’t be specified at the same time as those

Array of host and port

No

host and port