Skip to content

Commit

Permalink
docs: (#202)
Browse files Browse the repository at this point in the history
- add service placment doc
- remove the placement_lb.md and placment_rpc.md
  • Loading branch information
baabeetaa authored Oct 28, 2022
1 parent f229310 commit f074fcd
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 75 deletions.
73 changes: 0 additions & 73 deletions docs/placement_lb.md

This file was deleted.

91 changes: 89 additions & 2 deletions docs/placement_rpc.md → docs/service_placement.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
# RPC Service Placement
# Service Placement

To optimize resource usage including network/bandwidth, disk space and disk io; need to control service placements.


## Snapshot Service Placement

Snapshot for each chain is configured in the [chain-registry](../data/chain_registry.ini)

See more on [snapshot doc](snapshot.md).

---
## RPC Service Placement

https://github.com/notional-labs/cosmosia/issues/195

Expand Down Expand Up @@ -53,7 +65,7 @@ https://github.com/notional-labs/cosmosia/issues/195
| 47 | dig-archive | cosmosia11 | cosmosia12 | | | |


### Docker commands
#### Docker commands

To add label to a node:
```console
Expand All @@ -69,3 +81,78 @@ To list node with label:
```console
docker node ls -f node.label=cosmosia.rpc.osmosis=true
```

---
## Load-Balancer Service Placement

https://github.com/notional-labs/cosmosia/issues/197

Need at least 2 nodes in case one node down.

| No | Chain | Node1 | Node 2 |
|---:|:----------------------|:-----------:|:-----------:|
| 1 | osmosis | cosmosia1 | cosmosia2 |
| 2 | starname | cosmosia2 | cosmosia3 |
| 3 | regen | cosmosia3 | cosmosia4 |
| 4 | akash | cosmosia4 | cosmosia5 |
| 5 | cosmoshub | cosmosia5 | cosmosia6 |
| 6 | sentinel | cosmosia6 | cosmosia7 |
| 7 | emoney | cosmosia7 | cosmosia8 |
| 8 | ixo | cosmosia8 | cosmosia9 |
| 9 | juno | cosmosia9 | cosmosia10 |
| 10 | sifchain | cosmosia10 | cosmosia11 |
| 11 | likecoin | cosmosia11 | cosmosia12 |
| 12 | kichain | cosmosia12 | cosmosia13 |
| 13 | cyber | cosmosia13 | cosmosia14 |
| 14 | cheqd | cosmosia14 | cosmosia15 |
| 15 | stargaze | cosmosia15 | cosmosia16 |
| 16 | bandchain | cosmosia16 | cosmosia17 |
| 17 | chihuahua | cosmosia17 | cosmosia18 |
| 18 | kava | cosmosia18 | cosmosia1 |
| 19 | bitcanna | cosmosia1 | cosmosia2 |
| 20 | konstellation | cosmosia2 | cosmosia3 |
| 21 | omniflixhub | cosmosia3 | cosmosia4 |
| 22 | terra | cosmosia4 | cosmosia5 |
| 23 | vidulum | cosmosia5 | cosmosia6 |
| 24 | provenance | cosmosia6 | cosmosia7 |
| 25 | dig | cosmosia7 | cosmosia8 |
| 26 | gravitybridge | cosmosia8 | cosmosia9 |
| 27 | comdex | cosmosia9 | cosmosia10 |
| 28 | cerberus | cosmosia10 | cosmosia11 |
| 29 | bitsong | cosmosia11 | cosmosia12 |
| 30 | assetmantle | cosmosia12 | cosmosia13 |
| 31 | fetchhub | cosmosia13 | cosmosia14 |
| 32 | evmos | cosmosia14 | cosmosia15 |
| 33 | persistent | cosmosia15 | cosmosia16 |
| 34 | cryptoorgchain | cosmosia16 | cosmosia17 |
| 35 | irisnet | cosmosia17 | cosmosia18 |
| 36 | axelar | cosmosia18 | cosmosia1 |
| 37 | pylons | cosmosia1 | cosmosia2 |
| 38 | umee | cosmosia2 | cosmosia3 |
| 39 | sei | cosmosia3 | cosmosia4 |
| 40 | evmos-testnet-archive | cosmosia4 | cosmosia5 |
| 41 | injective | cosmosia5 | cosmosia6 |
| 42 | kujira | cosmosia6 | cosmosia7 |
| 43 | passage | cosmosia7 | cosmosia8 |
| 44 | osmosis-testnet | cosmosia8 | cosmosia9 |
| 45 | evmos-archive | cosmosia9 | cosmosia10 |
| 46 | stride | cosmosia10 | cosmosia11 |
| 47 | dig-archive | cosmosia11 | cosmosia12 |


#### Docker commands

To add label to a node:
```console
docker node update --label-add cosmosia.lb.osmosis=true cosmosia1
```

To remove label to a node:
```console
docker node update --label-rm cosmosia.lb.osmosis cosmosia1
```

To list node with label:
```console
docker node ls -f node.label=cosmosia.lb.osmosis=true
```

0 comments on commit f074fcd

Please sign in to comment.