subnode

command module
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

subnode

aggregated proxy for sub-archive-nodes of tendermint/cosmos chains

Subnode Architecture

Archive node data is big, major chains could grow 5TB/year and will stop working at some point.

This project is to make archive node could scale forever by breaking data into multiple smaller nodes (called sub-node). Each subnode stores data of 5 millions blocks or 5 TB. Old subnodes are read-only.

As data is spreaded over multiple sub-nodes, its required to have a proxy which aggreates data from sub-nodes and provides compatible rpc/api.

Supported Protocols

Public enndpoints of subnode with the config below:

https://rpc-osmosis-sub.cosmosia.notional.ventures/
https://api-osmosis-sub.cosmosia.notional.ventures/
grpc-osmosis-sub.cosmosia.notional.ventures:443
Configuration

See sample config subnode.yaml. This sample includes 1 pruned-node and 2 sub-nodes.

upstream:
  - rpc: "https://rpc-osmosis-ia.cosmosia.notional.ventures:443"
    api: "https://api-osmosis-ia.cosmosia.notional.ventures:443"
    grpc: "grpc-osmosis-ia.cosmosia.notional.ventures:443"
    blocks: [362880]
  - rpc: "https://rpc-osmosis-archive-sub-ia.cosmosia.notional.ventures:443"
    api: "https://api-osmosis-archive-sub-ia.cosmosia.notional.ventures:443"
    grpc: "grpc-osmosis-archive-sub-ia.cosmosia.notional.ventures:443"
    blocks: [5599641,0]
  - rpc: "https://rpc-osmosis-archive-sub1-ia.cosmosia.notional.ventures:443"
    api: "https://api-osmosis-archive-sub1-ia.cosmosia.notional.ventures:443"
    grpc: "grpc-osmosis-archive-sub1-ia.cosmosia.notional.ventures:443"
    blocks: [0,5599640]

blocks config example:

  • [1, 100] => from block 1 to block 100 (subnode). In case its last subnode, set to-block to 0 to indicate newest block [101, 0]
  • [10] => last 10 recent blocks (for pruned node)
  • [] => for archive node

Node on the top of the list has higher priority when selecting.

Usage

install:

make install

start:

subnode start --conf=/path/to/config/file

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL