Datastore component for Gravwell distributed frontends
5.1K
The Gravwell Datastore component is used to synchronize state across multiple Gravwell webservers when running in a distributed frontend mode.
The Datastore allows for rapid scale up and scale down of webservers in a high load environment with many users. The datastore requires persistent storage and acts as the master control node when when more than one webserver is in use.
For full configuration details, see the Datastore Documentation for full configuration details.
Additional information on distributed webservers and Gravwell high availability see the Gravwell Distributed Setup docs.
The Datastore component shares the same gravwell.conf file as the indexer and webserver components so that it CAN be run co-located with a webserver. In a fully distributed setup, it needs its own gravwell.conf located in /opt/gravwell/etc/.
The following is an minimal example of a gravwell.conf:
[global]
# You should set this to whatever the frontends use
Control-Auth=ControlSecrets
# These defaults should be fine
Datastore-Log-Location=/opt/gravwell/log
Datastore-User-DB-Path=/opt/gravwell/etc/datastore-users.db
Datastore-Resource-Store=/opt/gravwell/resources/datastore
Datastore-Web-Store-Path=/opt/gravwell/etc/datastore-webstore.db
# These are optional parameters; the datastore will listen on 0.0.0.0:9405 by default.
#Datastore-Listen-Address=10.0.0.5 # listen only on 10.0.0.5
#Datastore-Port=9555 # listen on port 9555 instead of 9405
The Docker deployment enables some feature configuration and control using environment variables. Each Gravwell docker component ships with the Crash Reporting Service which can be disabled using environment variables.
| Component | Purpose | Disable Environment variable | Type |
|---|---|---|---|
| Datastore Disable TLS | Disable TLS usage for communication | GRAVWELL_DATASTORE_INSECURE_DISABLE_TLS | BOOL |
| Datastore Listen Address | Control listening address for Datastore | GRAVWELL_DATASTORE_LISTEN_ADDRESS | STRING/IP Address |
| Datastore Listen Port | Control listening port for Datastore | GRAVWELL_DATASTORE_LISTEN_PORT | UINT16 / TCP Port |
| Crash Reporter | Error handler that can report faults and crashes for triage and debugging | DISABLE_ERROR_HANDLER | BOOL |
Free community licenses for Gravwell are available.
Content type
Image
Digest
sha256:fd973a4a1…
Size
22.3 MB
Last updated
25 days ago
docker pull gravwell/datastore