Launch a singe storage node
This commit is contained in:
parent
bd7a8d26ea
commit
bf9e587728
3 changed files with 96 additions and 0 deletions
12
storage/Makefile
Normal file
12
storage/Makefile
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
SHELL=/bin/bash
|
||||||
|
.SHELLFLAGS=-euo pipefail -c
|
||||||
|
|
||||||
|
include ../Makefile
|
||||||
|
|
||||||
|
.PHONY: up
|
||||||
|
up: wallet/storage01.json | $(NODE)
|
||||||
|
$(NODE) --config storage.yml
|
||||||
|
|
||||||
|
wallet/%.json:
|
||||||
|
mkdir -p $(dir $@)
|
||||||
|
ln -sf $(abspath ../morph/$@) $@
|
1
storage/bin
Symbolic link
1
storage/bin
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../bin
|
83
storage/storage.yml
Normal file
83
storage/storage.yml
Normal file
|
@ -0,0 +1,83 @@
|
||||||
|
# Logger section
|
||||||
|
logger:
|
||||||
|
level: debug # Minimum enabled logging level
|
||||||
|
|
||||||
|
# Profiler section
|
||||||
|
pprof:
|
||||||
|
enabled: true
|
||||||
|
address: 127.0.0.202:6060 # Server address
|
||||||
|
shutdown_timeout: 15s # Timeout for profiling HTTP server graceful shutdown
|
||||||
|
|
||||||
|
# Application metrics section
|
||||||
|
prometheus:
|
||||||
|
enabled: true
|
||||||
|
address: 127.0.0.202:9090 # Server address
|
||||||
|
shutdown_timeout: 15s # Timeout for metrics HTTP server graceful shutdown
|
||||||
|
|
||||||
|
# Morph section
|
||||||
|
morph:
|
||||||
|
dial_timeout: 30s # Timeout for side chain NEO RPC client connection
|
||||||
|
rpc_endpoint: # Side chain NEO RPC endpoints
|
||||||
|
- address: ws://127.0.0.200:30333/ws
|
||||||
|
priority: 1
|
||||||
|
|
||||||
|
# Common storage node settings
|
||||||
|
node:
|
||||||
|
wallet:
|
||||||
|
path: wallet/storage01.json
|
||||||
|
password: storage01
|
||||||
|
addresses:
|
||||||
|
- grpc://127.0.0.202:8801
|
||||||
|
attribute_0: "User-Agent:FrostFS/0.34"
|
||||||
|
|
||||||
|
grpc:
|
||||||
|
- endpoint: 127.0.0.202:8802
|
||||||
|
tls:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
# Tree section
|
||||||
|
tree:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
# Storage engine configuration
|
||||||
|
storage:
|
||||||
|
shard:
|
||||||
|
0:
|
||||||
|
writecache:
|
||||||
|
enabled: true
|
||||||
|
path: data/wc0 # Write-cache root directory
|
||||||
|
|
||||||
|
metabase:
|
||||||
|
path: data/meta0 # Path to the metabase
|
||||||
|
|
||||||
|
blobstor:
|
||||||
|
- type: blobovnicza
|
||||||
|
path: data/blobovnicza0 # Blobovnicza root directory
|
||||||
|
depth: 2
|
||||||
|
width: 4
|
||||||
|
- type: fstree
|
||||||
|
path: data/fstree0 # FSTree root directory
|
||||||
|
depth: 2
|
||||||
|
|
||||||
|
pilorama:
|
||||||
|
path: data/pilorama0 # Path to the pilorama database
|
||||||
|
|
||||||
|
1:
|
||||||
|
writecache:
|
||||||
|
enabled: true
|
||||||
|
path: data/wc1 # Write-cache root directory
|
||||||
|
|
||||||
|
metabase:
|
||||||
|
path: data/meta1 # Path to the metabase
|
||||||
|
|
||||||
|
blobstor:
|
||||||
|
- type: blobovnicza
|
||||||
|
path: data/blobovnicza1 # Blobovnicza root directory
|
||||||
|
depth: 2
|
||||||
|
width: 4
|
||||||
|
- type: fstree
|
||||||
|
path: data/fstree1 # FSTree root directory
|
||||||
|
depth: 2
|
||||||
|
|
||||||
|
pilorama:
|
||||||
|
path: data/pilorama1 # Path to the pilorama database
|
Loading…
Add table
Reference in a new issue