Skip to content

Commit

Permalink
Akash updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Feb 22, 2023
1 parent c8dfbc0 commit 521876c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 19 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,8 @@ python3 rpc.py

## Running in Production

- [Create The Systemd files for the REST and RPC](./docs/SYSTEMD_FILES.md)

---
- [Systemd Files](./docs/SYSTEMD_FILES.md)
- [Akash](./docs/AKASH.md)

## Documentation

Expand Down
38 changes: 22 additions & 16 deletions akash/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
---
version: "2.0"

services:
# Juno Mainnet Example using public providers.

services:
# By default, anyone can access this with the URL & port.
redis:
image: redis:latest
env:
Expand All @@ -19,23 +22,24 @@ services:
- redis
env:
# NOTE - most up to date will be in the docker-compose.yml file
- REMOTE_CONFIG_TIME_FILE=https://raw.githubusercontent.com/Reecepbcups/cosmos-endpoint-cache/main/configs/cache_times.json
- REMOTE_CONFIG_TIME_FILE=https://raw.githubusercontent.com/Reecepbcups/cosmos-endpoint-cache/main/configs/cache_times.json
- REDIS_URL=redis://akash.provider.domain.here:30830/0
- REDIS_RPC_PREFIX=unirpc
- REDIS_RPC_PREFIX=junorpc_1
- ENABLE_COUNTER=false
- USE_BACKUP_AS_PRIMARY=false
- RPC_URL=http://5.161.80.115:26657
- BACKUP_RPC_URL=https://juno-testnet-rpc.polkachu.com
- RPC_WEBSOCKET=ws://5.161.80.115:26657/websocket
- RPC_LISTEN_ADDRESS=HIDDEN
# Use your own node IPs here as http://
- RPC_URL=https://rpc.juno.strange.love:443
- BACKUP_RPC_URL=https://juno-rpc.polkachu.com
- RPC_WEBSOCKET=ws://15.204.143.232:26657/websocket
- NODE_MONIKER=reecepbcups
- RPC_LISTEN_ADDRESS=HIDDEN
- NODE_TM_VERSION=HIDDEN
- COINGECKO_ENABLED=true
# - COINGECKO_API_KEY=HERE
- COINGECKO_CACHE_SECONDS=6 # do not change if you do not have an API key.
- COINGECKO_IDS=cosmos,juno-network,osmosis,canto
- COINGECKO_FIAT=usd,eur,gbp
- RPC_TITLE=Docker RPC cache
- RPC_TITLE=Juno Docker RPC
- RPC_CUSTOM_TEXT=<a href="https://twitter.com/Reecepbcups_/status/1617396571188133888?s=20&t=OKi00IkStINFqYVweZXlaw">Custom caching solution active</a><br><a href="https://juno-api.reece.sh">My Juno REST API</a><br>
expose:
- port: 5001
Expand All @@ -53,13 +57,14 @@ services:
# NOTE - most up to date will be in the docker-compose.yml file
- REMOTE_CONFIG_TIME_FILE=https://raw.githubusercontent.com/Reecepbcups/cosmos-endpoint-cache/main/configs/cache_times.json
- REDIS_URL=redis://akash.provider.domain.here:30830/0
- REDIS_REST_PREFIX=unirest
- REDIS_REST_PREFIX=junoapi
- USE_BACKUP_AS_PRIMARY=false
- REST_URL=http://15.204.143.232:1317
- BACKUP_REST_URL=https://juno-testnet-api.polkachu.com
- ENABLE_COUNTER=false
# Use your own node IPs here as http://
- REST_URL=https://api.juno.strange.love:443
- BACKUP_REST_URL=https://juno-api.polkachu.com
- NODE_MONIKER=reecepbcups
- API_TITLE=Docker REST
- ENABLE_COUNTER=false
- API_TITLE=Juno Docker API
- DISABLE_SWAGGER_UI=false
expose:
- port: 5000
Expand All @@ -71,23 +76,24 @@ profiles:
redis:
resources:
cpu:
units: 0.25
units: 0.5
memory:
size: 1Gi
storage:
size: 1Gi
rpc-cache:
resources:
cpu:
units: 1.0
# Must use 2+ CPU (1 for websocket, one for processing requests)
units: 2.0
memory:
size: 1Gi
storage:
size: 1Gi
api-cache:
resources:
cpu:
units: 1.0
units: 1.25
memory:
size: 1Gi
storage:
Expand Down
File renamed without changes.

0 comments on commit 521876c

Please sign in to comment.