Demo of progressive storage bootstrap fees
This commit is contained in:
parent
d0c32731f2
commit
8b08f8c171
5 changed files with 131 additions and 0 deletions
4
extra/.gitignore
vendored
Normal file
4
extra/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
bin
|
||||||
|
storage
|
||||||
|
.frostfs-storage-state
|
||||||
|
new_storage_wallet.json
|
47
extra/Makefile
Normal file
47
extra/Makefile
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
WALLET=new_storage_wallet.json
|
||||||
|
GAS?=1000
|
||||||
|
|
||||||
|
INNERRING_IP?=$(call docker_ip,ir01)
|
||||||
|
MORPH_IP?=$(call docker_ip,morph_chain)
|
||||||
|
MORPH_ENDPOINT=http://$(MORPH_IP):30333
|
||||||
|
|
||||||
|
ADM=../vendor/frostfs-adm
|
||||||
|
CLI=../vendor/frostfs-cli
|
||||||
|
NEO=./bin/neo-go
|
||||||
|
NODE=./bin/frostfs-node
|
||||||
|
|
||||||
|
.PHONY: up
|
||||||
|
up: wallet | $(NEO) $(NODE)
|
||||||
|
$(NEO) wallet nep17 balance -r $(MORPH_ENDPOINT) -w $(WALLET)
|
||||||
|
$(ADM) morph refill-gas --storage-wallet $(WALLET) --gas $(GAS) \
|
||||||
|
--rpc-endpoint $(MORPH_ENDPOINT) --alphabet-wallets ../services/ir \
|
||||||
|
--config ../frostfs-adm.yml
|
||||||
|
$(NEO) wallet nep17 balance -r $(MORPH_ENDPOINT) -w $(WALLET)
|
||||||
|
$(NODE) --config-dir config &
|
||||||
|
NODE_PID=$$!
|
||||||
|
sleep 10
|
||||||
|
kill $$NODE_PID
|
||||||
|
$(NEO) wallet nep17 balance -r $(MORPH_ENDPOINT) -w $(WALLET)
|
||||||
|
|
||||||
|
.PHONY: wallet
|
||||||
|
wallet: | $(NEO)
|
||||||
|
rm $(WALLET) || true
|
||||||
|
$(NEO) wallet init --account --wallet-config new_storage_wallet.template
|
||||||
|
|
||||||
|
$(NEO):
|
||||||
|
mkdir -p $(dir $@)
|
||||||
|
curl -o $@ -sSL https://github.com/nspcc-dev/neo-go/releases/download/v0.106.3/neo-go-linux-amd64
|
||||||
|
chmod +x $@
|
||||||
|
|
||||||
|
$(NODE):
|
||||||
|
mkdir -p $(dir $@)
|
||||||
|
curl -o $@ -sSL https://git.frostfs.info/TrueCloudLab/frostfs-node/releases/download/v0.42.9/frostfs-node
|
||||||
|
chmod +x $@
|
||||||
|
|
||||||
|
define docker_ip
|
||||||
|
$(firstword $(shell docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}} {{end}}' $(1)))
|
||||||
|
endef
|
||||||
|
|
||||||
|
SHELL=/bin/bash
|
||||||
|
.SHELLFLAGS=-euo pipefail -c
|
||||||
|
.ONESHELL:
|
1
extra/config/devenv.yml
Symbolic link
1
extra/config/devenv.yml
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../../services/storage/cfg/config.yml
|
77
extra/config/extra.yml
Normal file
77
extra/config/extra.yml
Normal file
|
@ -0,0 +1,77 @@
|
||||||
|
logger:
|
||||||
|
loki:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
pprof:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
prometheus:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
tracing:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
morph:
|
||||||
|
rpc_endpoint: # Side chain NEO RPC endpoints
|
||||||
|
- address: ws://morph-chain.frostfs.devenv:30333/ws
|
||||||
|
priority: 1
|
||||||
|
|
||||||
|
# Common storage node settings
|
||||||
|
node:
|
||||||
|
wallet:
|
||||||
|
path: new_storage_wallet.json
|
||||||
|
password: ""
|
||||||
|
addresses:
|
||||||
|
- grpc://s01.frostfs.devenv:8080
|
||||||
|
notification:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
grpc:
|
||||||
|
- endpoint: 127.0.88.1:8802
|
||||||
|
tls:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
tree:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
storage:
|
||||||
|
shard:
|
||||||
|
0:
|
||||||
|
writecache:
|
||||||
|
enabled: true
|
||||||
|
path: storage/wc0 # Write-cache root directory
|
||||||
|
|
||||||
|
metabase:
|
||||||
|
path: storage/meta0 # Path to the metabase
|
||||||
|
|
||||||
|
blobstor:
|
||||||
|
- type: blobovnicza
|
||||||
|
path: storage/blobovnicza0 # Blobovnicza root directory
|
||||||
|
depth: 2
|
||||||
|
width: 4
|
||||||
|
- type: fstree
|
||||||
|
path: storage/fstree0 # FSTree root directory
|
||||||
|
depth: 2
|
||||||
|
|
||||||
|
pilorama:
|
||||||
|
path: storage/pilorama0 # Path to the pilorama database
|
||||||
|
|
||||||
|
1:
|
||||||
|
writecache:
|
||||||
|
enabled: true
|
||||||
|
path: storage/wc1 # Write-cache root directory
|
||||||
|
|
||||||
|
metabase:
|
||||||
|
path: storage/meta1 # Path to the metabase
|
||||||
|
|
||||||
|
blobstor:
|
||||||
|
- type: blobovnicza
|
||||||
|
path: storage/blobovnicza1 # Blobovnicza root directory
|
||||||
|
depth: 2
|
||||||
|
width: 4
|
||||||
|
- type: fstree
|
||||||
|
path: storage/fstree1 # FSTree root directory
|
||||||
|
depth: 2
|
||||||
|
|
||||||
|
pilorama:
|
||||||
|
path: storage/pilorama1 # Path to the pilorama database
|
2
extra/new_storage_wallet.template
Normal file
2
extra/new_storage_wallet.template
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
Path: new_storage_wallet.json
|
||||||
|
Password: ""
|
Loading…
Reference in a new issue