-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.example
More file actions
269 lines (204 loc) · 7.27 KB
/
Copy path.env.example
File metadata and controls
269 lines (204 loc) · 7.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
# Graphica Coordinator Configuration
# Copy this file to .env and adjust values for your environment
# ==============================================================================
# SHARD CONFIGURATION (REQUIRED FOR DISTRIBUTED MODE)
# ==============================================================================
# Comma-separated list of shard endpoints (host:port)
# Example: shard-0.local:9090,shard-1.local:9091,shard-2.local:9092
# Leave empty for standalone mode (in-memory RDF store, no persistence)
SHARD_URLS=
# Number of shards (informational, derived from SHARD_URLS)
# Default: 2
SHARD_COUNT=2
# ==============================================================================
# NETWORK CONFIGURATION
# ==============================================================================
# REST API port (HTTP)
# Default: 8080
REST_PORT=8080
# gRPC API port
# Default: 9090
GRPC_PORT=9090
# Bind address for REST API
# Default: 0.0.0.0 (all interfaces)
# Use 127.0.0.1 for localhost only
REST_BIND_ADDRESS=0.0.0.0
# Bind address for gRPC API
# Default: 0.0.0.0 (all interfaces)
GRPC_BIND_ADDRESS=0.0.0.0
# ==============================================================================
# STORAGE CONFIGURATION
# ==============================================================================
# RocksDB path for coordinator data (temporal indexes, shard registry)
# Default: ./data/coordinator/rocksdb
ROCKSDB_PATH=./data/coordinator/rocksdb
# Parquet storage path for lineage data (warm tier)
# Default: ./data/parquet
PARQUET_PATH=./data/parquet
# Archive path for cold storage (S3/local filesystem)
# Default: ./data/archive
ARCHIVE_PATH=./data/archive
# ==============================================================================
# KAFKA CONFIGURATION
# ==============================================================================
# Kafka bootstrap servers (comma-separated)
# Default: localhost:9092
KAFKA_BROKERS=localhost:9092
# Kafka consumer group ID
# Default: graphica-coordinator
KAFKA_CONSUMER_GROUP=graphica-coordinator
# Kafka topic for lineage events
# Default: graphica.lineage
KAFKA_LINEAGE_TOPIC=graphica.lineage
# Kafka topic for quality events
# Default: graphica.quality
KAFKA_QUALITY_TOPIC=graphica.quality
# ==============================================================================
# AUTHENTICATION & SECURITY
# ==============================================================================
# JWT secret for token signing (base64 encoded)
# Generate with: openssl rand -base64 32
# REQUIRED for production
JWT_SECRET=
# JWT token expiration time (seconds)
# Default: 3600 (1 hour)
JWT_EXPIRATION_SECONDS=3600
# Enable authentication
# Default: true
# Set to false for development only
ENABLE_AUTH=true
# CORS allowed origins (comma-separated)
# Default: http://localhost:3000,http://localhost:5173
CORS_ALLOWED_ORIGINS=http://localhost:3000,http://localhost:5173
# ==============================================================================
# LOGGING & MONITORING
# ==============================================================================
# Rust log level
# Options: trace, debug, info, warn, error
# Default: info
RUST_LOG=info
# Enable metrics endpoint
# Default: true
ENABLE_METRICS=true
# Metrics port (Prometheus format)
# Default: 9091
METRICS_PORT=9091
# Enable tracing
# Default: false
ENABLE_TRACING=false
# Jaeger agent endpoint for distributed tracing
# Default: localhost:6831
JAEGER_AGENT_ENDPOINT=localhost:6831
# ==============================================================================
# CONNECTION POOL SETTINGS
# ==============================================================================
# Shard connection timeout (milliseconds)
# Default: 5000 (5 seconds)
SHARD_CONNECT_TIMEOUT_MS=5000
# Shard request timeout (milliseconds)
# Default: 30000 (30 seconds)
SHARD_REQUEST_TIMEOUT_MS=30000
# Circuit breaker: max failures before opening
# Default: 3
SHARD_MAX_FAILURES=3
# Circuit breaker: reset duration (seconds)
# Default: 30
SHARD_CIRCUIT_RESET_SECONDS=30
# Connection pool size per shard
# Default: 10
SHARD_POOL_SIZE=10
# ==============================================================================
# QUERY EXECUTION SETTINGS
# ==============================================================================
# Query timeout (milliseconds)
# Default: 60000 (60 seconds)
QUERY_TIMEOUT_MS=60000
# Max query results per shard (for scatter-gather)
# Default: 10000
QUERY_MAX_RESULTS_PER_SHARD=10000
# Query failure mode
# Options: best_effort, all_or_nothing, quorum
# Default: best_effort
QUERY_FAILURE_MODE=best_effort
# Enable query result caching
# Default: false
ENABLE_QUERY_CACHE=false
# Query cache TTL (seconds)
# Default: 300 (5 minutes)
QUERY_CACHE_TTL_SECONDS=300
# ==============================================================================
# WORKFLOW ENGINE SETTINGS
# ==============================================================================
# Enable workflow engine
# Default: false
ENABLE_WORKFLOW_ENGINE=false
# Workflow execution timeout (seconds)
# Default: 3600 (1 hour)
WORKFLOW_TIMEOUT_SECONDS=3600
# Max concurrent workflow executions
# Default: 10
WORKFLOW_MAX_CONCURRENT=10
# ==============================================================================
# PERFORMANCE TUNING
# ==============================================================================
# RocksDB block cache size (MB)
# Default: 256
ROCKSDB_BLOCK_CACHE_MB=256
# RocksDB write buffer size (MB)
# Default: 64
ROCKSDB_WRITE_BUFFER_MB=64
# RocksDB max background jobs
# Default: 4
ROCKSDB_MAX_BACKGROUND_JOBS=4
# Max HTTP request body size (bytes)
# Default: 10485760 (10MB)
MAX_REQUEST_BODY_SIZE=10485760
# HTTP request timeout (seconds)
# Default: 60
HTTP_REQUEST_TIMEOUT_SECONDS=60
# ==============================================================================
# DEVELOPMENT & DEBUGGING
# ==============================================================================
# Enable development mode (less strict validation, verbose errors)
# Default: false
DEV_MODE=false
# Enable SQL query logging
# Default: false
LOG_SQL_QUERIES=false
# Enable detailed error messages in API responses
# Default: false (for security)
DETAILED_ERRORS=false
# Pretty print JSON responses
# Default: false
PRETTY_PRINT_JSON=false
# ==============================================================================
# HEALTH CHECK SETTINGS
# ==============================================================================
# Health check interval (seconds)
# Default: 30
HEALTH_CHECK_INTERVAL_SECONDS=30
# Shard health check timeout (milliseconds)
# Default: 5000
SHARD_HEALTH_TIMEOUT_MS=5000
# Mark shard unhealthy after N failed health checks
# Default: 3
SHARD_HEALTH_FAILURE_THRESHOLD=3
# ==============================================================================
# ADVANCED SETTINGS
# ==============================================================================
# RDF storage client endpoint (for schema inference)
# Example: http://localhost:9090
# Leave empty to disable
SHARD_ENDPOINT=
# Ontology registry path
# Default: ./data/ontologies
ONTOLOGY_REGISTRY_PATH=./data/ontologies
# Enable bitemporal indexing
# Default: true
ENABLE_BITEMPORAL=true
# Replication factor for shard registry
# Default: 2
SHARD_REPLICATION_FACTOR=2
# Shard heartbeat timeout (seconds)
# Default: 60
SHARD_HEARTBEAT_TIMEOUT_SECONDS=60