Skip to content

Commit

Permalink
chore: infra updates (#898)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaladinlight authored Dec 5, 2023
1 parent f39c0e8 commit c0a17ca
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 26 deletions.
30 changes: 15 additions & 15 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ aliases:
service-cpu-limit-1: "2"
service-cpu-request-1: "1"
service-memory-limit-1: 32Gi
service-storage-size-1: 1000Gi
service-storage-size-1: 1250Gi
service-name-2: daemon-beacon
service-image-2: gcr.io/prysmaticlabs/prysm/beacon-chain:v4.1.1
service-cpu-limit-2: "2"
Expand Down Expand Up @@ -278,9 +278,9 @@ aliases:
stateful-service-replicas: 2
service-name-1: daemon
service-image-1: shapeshiftdao/cosmoshub:v13.0.2
service-cpu-limit-1: "2"
service-cpu-request-1: "1"
service-memory-limit-1: 42Gi
service-cpu-limit-1: "4"
service-cpu-request-1: "2"
service-memory-limit-1: 48Gi
service-storage-size-1: 4500Gi
service-storage-iops-1: "16000"
service-storage-throughput-1: "300"
Expand Down Expand Up @@ -315,10 +315,10 @@ aliases:
api-memory-request: 250Mi
stateful-service-replicas: 2
service-name-1: daemon
service-image-1: avaplatform/avalanchego:v1.10.16
service-image-1: avaplatform/avalanchego:v1.10.17
service-cpu-limit-1: "2"
service-cpu-request-1: "1"
service-memory-limit-1: 8Gi
service-memory-limit-1: 10Gi
service-storage-size-1: 5500Gi
service-storage-iops-1: "8000"
service-name-2: indexer
Expand Down Expand Up @@ -484,7 +484,7 @@ aliases:
service-cpu-limit-1: "2"
service-cpu-request-1: "1"
service-memory-limit-1: 12Gi
service-storage-size-1: 3000Gi
service-storage-size-1: 3250Gi
service-storage-iops-1: "4500"
service-name-2: timescaledb
service-image-2: timescale/timescaledb:2.2.0-pg13
Expand Down Expand Up @@ -575,7 +575,7 @@ aliases:
api-memory-request: 500Mi
stateful-service-replicas: 2
service-name-1: daemon
service-image-1: shapeshiftdao/bnb-smart-chain:v1.2.13
service-image-1: shapeshiftdao/bnb-smart-chain:v1.3.4
service-cpu-limit-1: "8"
service-cpu-request-1: "4"
service-memory-limit-1: 72Gi
Expand Down Expand Up @@ -620,11 +620,11 @@ aliases:
api-memory-request: 500Mi
stateful-service-replicas: 2
service-name-1: daemon
service-image-1: 0xpolygon/bor:1.1.0
service-cpu-limit-1: "8"
service-cpu-request-1: "4"
service-memory-request-1: 32Gi
service-memory-limit-1: 52Gi
service-image-1: 0xpolygon/bor:1.2.0
service-cpu-limit-1: "16"
service-cpu-request-1: "8"
service-memory-request-1: 48Gi
service-memory-limit-1: 72Gi
service-storage-size-1: 4000Gi
service-storage-iops-1: "16000"
service-storage-throughput-1: "300"
Expand Down Expand Up @@ -671,7 +671,7 @@ aliases:
api-memory-request: 250Mi
stateful-service-replicas: 2
service-name-1: daemon
service-image-1: nethermind/nethermind:1.22.0
service-image-1: nethermind/nethermind:1.23.0
service-cpu-limit-1: "2"
service-cpu-request-1: "1"
service-memory-limit-1: 6Gi
Expand All @@ -680,7 +680,7 @@ aliases:
service-image-2: sigp/lighthouse:v4.5.0
service-cpu-limit-2: "2"
service-cpu-request-2: "1"
service-memory-limit-2: 2Gi
service-memory-limit-2: 4Gi
service-storage-size-2: 500Gi
service-name-3: indexer
service-image-3: shapeshiftdao/unchained-blockbook:gnosis-f21acf1
Expand Down
1 change: 0 additions & 1 deletion node/coinstacks/bitcoin/pulumi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export = async (): Promise<Outputs> => {
return {
...service,
...defaultBlockbookServiceArgs,
command: [...defaultBlockbookServiceArgs.command, '-workers=1'],
configMapData: { 'indexer-config.json': readFileSync('../indexer/config.json').toString() },
}
default:
Expand Down
1 change: 0 additions & 1 deletion node/coinstacks/bitcoincash/pulumi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export = async (): Promise<Outputs> => {
return {
...service,
...defaultBlockbookServiceArgs,
command: [...defaultBlockbookServiceArgs.command, '-workers=1'],
configMapData: { 'indexer-config.json': readFileSync('../indexer/config.json').toString() },
}
default:
Expand Down
2 changes: 1 addition & 1 deletion node/coinstacks/bnbsmartchain/daemon/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ start() {
--maxpeers 200 \
--rpc.allow-unprotected-txs \
--txpool.pricelimit 1 \
--txlookuplimit 0 \
--history.transactions 0 \
--cache 8000 \
--nat none &
PID="$!"
Expand Down
1 change: 0 additions & 1 deletion node/coinstacks/dogecoin/pulumi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export = async (): Promise<Outputs> => {
return {
...service,
...defaultBlockbookServiceArgs,
command: [...defaultBlockbookServiceArgs.command, '-workers=1'],
configMapData: { 'indexer-config.json': readFileSync('../indexer/config.json').toString() },
}
default:
Expand Down
1 change: 0 additions & 1 deletion node/coinstacks/ethereum/pulumi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export = async (): Promise<Outputs> => {
return {
...service,
...defaultBlockbookServiceArgs,
command: [...defaultBlockbookServiceArgs.command, '-workers=1'],
configMapData: { 'indexer-config.json': readFileSync('../indexer/config.json').toString() },
}
default:
Expand Down
1 change: 0 additions & 1 deletion node/coinstacks/litecoin/pulumi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export = async (): Promise<Outputs> => {
return {
...service,
...defaultBlockbookServiceArgs,
command: [...defaultBlockbookServiceArgs.command, '-workers=1'],
configMapData: { 'indexer-config.json': readFileSync('../indexer/config.json').toString() },
}
default:
Expand Down
6 changes: 2 additions & 4 deletions node/coinstacks/polygon/daemon/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ if [ -n "$SNAPSHOT" ] && [ ! -d "$CHAINDATA_DIR" ]; then
curl -L $SNAPSHOT | bash -s -- --network mainnet --client bor --extract-dir $CHAINDATA_DIR --validate-checksum true
fi

if [ ! -f "$DATA_DIR/bor/genesis.json" ]; then
# copy genesis file
cp /var/lib/bor/genesis-mainnet-v1.json $DATA_DIR/bor/genesis.json
fi
# copy genesis file
cp /var/lib/bor/genesis-mainnet-v1.json $DATA_DIR/bor/genesis.json

start() {
bor server \
Expand Down
1 change: 0 additions & 1 deletion node/coinstacks/polygon/pulumi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ export = async (): Promise<Outputs> => {
return {
...service,
...defaultBlockbookServiceArgs,
command: [...defaultBlockbookServiceArgs.command, '-workers=1'],
configMapData: { 'indexer-config.json': readFileSync('../indexer/config.json').toString() },
}
default:
Expand Down
1 change: 1 addition & 0 deletions node/packages/blockbook/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const defaultBlockbookServiceArgs = {
'-public=:8001',
'-enablesubnewtx',
'-logtostderr',
'-dbcache=268435456',
],
ports: { public: { port: 8001 } },
volumeMounts: [{ name: 'config-map', mountPath: '/config.json', subPath: 'indexer-config.json' }],
Expand Down

0 comments on commit c0a17ca

Please sign in to comment.