Overview
Defines connections to shared resources, primarily databases.
Description
These connections are used by certain providers, analytics modules, caches, authentication, and rate limiting. Each datastore definition creates a connection pool when the application is running.
Like other entities, the datastores configuration uses a parameter called name to dictate the type of datastore which controls the specific list of configuration parameters available. Every datastore configuration must also have an ID defined which can be any string and is used by a corresponding provider, analytics, cache, authentication, or rate limit configuration, usually as a datastore parameter.
Choosing a datastore
| Goal | Datastore | Used by |
|---|---|---|
Connect to a ClickHouse database |
||
Connect to a PostgreSQL database |
postgismvt provider, postgresql analytics, bearer authentication, and postgresql rate limit |
|
Connect to redis or a redis-compatible store |
||
Connect to memcached |
||
Hold tiles in the memory of the tilegroxy process |
memory cache. Not recommended for production |