UTXO Persister Service Settings
Related Topic: UTXO Persister Service
Configuration Settings
| Setting |
Type |
Default |
Environment Variable |
Usage |
| UTXOPersisterBufferSize |
string |
"256KB" |
utxoPersister_buffer_size |
CRITICAL - Buffer size for UTXO file I/O operations |
| UTXOPersisterDirect |
bool |
true |
direct |
Direct I/O operations control |
| UTXOPersisterLivenessStallTimeout |
time.Duration |
0s |
utxoPersister_livenessStallTimeout |
Liveness reports 503 if the main loop stops making progress for this long; 0 = off |
Configuration Dependencies
Buffer Management
I/O Operations
UTXOPersisterDirect controls direct I/O behavior
- Affects how buffer operations are performed
Liveness
UTXOPersisterLivenessStallTimeout is off at 0s. Above 0, the liveness probe reports 503 once the main loop has not beaten its heartbeat for this long
- The loop beats every 5s when idle, through the wait for 100 confirmations, once per block rolled up, and once per 10,000 records read or written
- Size it against the worst
teranode_utxopersister_liveness_heartbeat_age_seconds seen on the node through a restart and a catch-up. In a single-process deployment a persister stall restarts the whole node
Service Dependencies
| Dependency |
Interface |
Usage |
| BlockStore |
blob.Store |
CRITICAL - UTXO set storage and retrieval |
| BlockchainClient |
blockchain.ClientI |
CRITICAL - Blockchain operations and block notifications |
Validation Rules
| Setting |
Validation |
Impact |
When Checked |
| UTXOPersisterBufferSize |
Must be valid byte size format |
I/O performance |
During service initialization |
| UTXOPersisterDirect |
Controls I/O operation mode |
Performance behavior |
During service initialization |
Configuration Examples
Basic Configuration
utxoPersister_buffer_size = "256KB"
direct = true
utxoPersister_buffer_size = "1MB"
direct = true
Memory Constrained
utxoPersister_buffer_size = "1KB"
direct = false