forked from pokt-network/pocket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
persistence_config.proto
21 lines (18 loc) · 1008 Bytes
/
persistence_config.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
syntax = "proto3";
package configs;
option go_package = "github.com/pokt-network/pocket/runtime/configs";
// CLEANUP: Need to make the configuration be "postgres agnostic"
message PersistenceConfig {
string postgres_url = 1;
string node_schema = 2; // the postgres schema used to store all the tables for a specific node; useful when multiple nodes share a single postgres instance
string block_store_path = 3;
string tx_indexer_path = 4;
string trees_store_dir = 5;
int32 max_conns_count = 6;
int32 min_conns_count = 7;
string max_conn_lifetime = 8; // See pkg.go.dev/time#ParseDuration for reference
string max_conn_idle_time = 9; // See pkg.go.dev/time#ParseDuration for reference
string health_check_period = 10; // See pkg.go.dev/time#ParseDuration for reference
// TODO: `local_database_path` may need to be expanded to multiple stores depending on how usage evolves
string local_database_path = 11; // The path used to store local, i.e. off-chain and node-specific, data.
}