- 29 Oct 2024
-
DarkLight
-
PDF
Store Backend
- Updated on 29 Oct 2024
-
DarkLight
-
PDF
The store
package abstracts persistent data storage into the backend interface. Stores are key/value databases used to persistently store objects within gateway.
The store_backend
can be configured using the GATEWAY_STORE_BACKEND
environment variable. The default is set to local
.
Different store_backends
are supported in the gateway
; however, only one backend is in use at any given time.
Configuration
Store currently has one configuration variable of GATEWAY_STORE_BACKEND
. This
variable can be set to either local
, memory
, or etcd
.
For more information see → Store Variables
Local
The local
backend is implemented as a key/value database on disk. It writes to a single file.
The default filename for the local backend is GATEWAY_APPLICATION_WORKING_DIR/gateway.db
Memory
The memory
backend is implemented as a memory resident key/value database using a hashmap
.
Etcd
And etcd
store can be configured along with additional connection variables to connect to an etcd
storage backend.
An etcd
store is required when running gateway with runners.
For more on configuring an etcd
cluster see → Etcd Database