notional-labs / cosmosia

Cosmos Infrastructure Automation
54 stars 26 forks source link

rpc: store chain data on mount volume #573

Closed baabeetaa closed 5 months ago

baabeetaa commented 5 months ago

similar to https://github.com/notional-labs/cosmosia/issues/572 for rpc service

baabeetaa commented 5 months ago

each rpc service has multiple instances (as docker swarm tasks). To store chain data on mount volume. Each task now has to be a docker service.

Example, rpc_akash_181 (181 is version) => rpc_akash_181_1 rpc_akash_181_2

181 is version; 1,2 is slot or node index. In this case there are 2 rpc nodes for akash rpc service version 181.


And the load balancer could not use dnsrr anymore.

baabeetaa commented 5 months ago

remove data version to make it simpler => rpc service name will be: rpc_akash_1 rpc_akash_2

baabeetaa commented 5 months ago

config for rpc, example: cosmosia.rpc.dig

node_1 = "cosmosia52"
node_2 = "cosmosia54"