Skip to content

Commit

Permalink
[dag inspector] Merge from branch main_fix_db
Browse files Browse the repository at this point in the history
  • Loading branch information
welbon committed Jun 26, 2024
2 parents ce6c784 + 0ccccbe commit d568d08
Show file tree
Hide file tree
Showing 10 changed files with 339 additions and 232 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,7 @@ jobs:
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
restore-keys: ${{ runner.os }}-m2
- name: Maven Compile
run: |
mvn compile --quiet
7 changes: 3 additions & 4 deletions kube/indexer/starcoin-indexer-halley-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
spec:
containers:
- name: starcoin-indexer
image: starcoin/starcoin_indexer:sha-1223fc3
image: starcoin/starcoin_indexer:halley_fix_db_1
ports:
- containerPort: 8300
env:
Expand All @@ -37,7 +37,7 @@ spec:
- name: STARCOIN_ES_URL
value: "search-starcoin-es2-47avtmhexhbg7qtynzebcnnu64.ap-northeast-1.es.amazonaws.com"
- name: TXN_OFFSET
value: "451993"
value: "0"
- name: STARCOIN_ES_PROTOCOL
value: "https"
- name: STARCOIN_ES_PORT
Expand All @@ -61,5 +61,4 @@ spec:
value: "halley"
- name: PROGRAM_ARGS
value: ""
valume:

#valume:
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ spec:
- name: DB_SCHEMA
value: "barnard"
- name: PROGRAM_ARGS
value: "auto_repair 4040020"
value: "auto_repair 16057420"
64 changes: 64 additions & 0 deletions kube/indexer/starcoin-indexer-repair-halley-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: starcoin-indexer-repair-deployment
namespace: starcoin-halley
labels:
app: starcoin-indexer-repair
spec:
replicas: 1
selector:
matchLabels:
app: starcoin-indexer-repair
template:
metadata:
labels:
app: starcoin-indexer-repair
spec:
containers:
- name: starcoin-indexer-repair
image: starcoin/starcoin_indexer:halley_fix_db_1
ports:
- containerPort: 8300
env:
- name: HOSTS
value: "halley.seed.starcoin.org"
- name: NETWORK
value: "halley.0727"
- name: BG_TASK_JOBS
value: "indexer,secondary,market_cap,txn_payload"
- name: BULK_SIZE
value: "80"
- name: STARCOIN_ES_PWD
valueFrom:
secretKeyRef:
name: elasticsearch-pw-elastic
key: password
- name: STARCOIN_ES_URL
value: "search-starcoin-es2-47avtmhexhbg7qtynzebcnnu64.ap-northeast-1.es.amazonaws.com"
- name: TXN_OFFSET
value: "0"
- name: STARCOIN_ES_PROTOCOL
value: "https"
- name: STARCOIN_ES_PORT
value: "443"
- name: STARCOIN_ES_USER
value: elastic
- name: SWAP_API_URL
value: "https://swap-api.starswap.xyz"
- name: SWAP_CONTRACT_ADDR
value: "0xbd7e8be8fae9f60f2f5136433e36a091"
- name: DS_URL
value: "jdbc:postgresql://database-1.c0bz9kehdvnb.ap-northeast-1.rds.amazonaws.com/starcoin"
- name: DB_USER_NAME
value: "starcoin"
- name: DB_PWD
valueFrom:
secretKeyRef:
name: postgresql-starcoin-yu
key: password
- name: DB_SCHEMA
value: "halley"
- name: PROGRAM_ARGS
value: "auto_repair 1"
#valume:
64 changes: 64 additions & 0 deletions kube/indexer/starcoin-indexer-vega-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: starcoin-indexer-deployment
namespace: starcoin-vega
labels:
app: starcoin-indexer
spec:
replicas: 1
selector:
matchLabels:
app: starcoin-indexer
template:
metadata:
labels:
app: starcoin-indexer
spec:
containers:
- name: starcoin-indexer
image: starcoin/starcoin_indexer:halley_fix_db_2
ports:
- containerPort: 8300
env:
- name: HOSTS
value: "vega.seed.starcoin.org"
- name: NETWORK
value: "vega.0727"
- name: BG_TASK_JOBS
value: "indexer,secondary,market_cap,txn_payload,swap_stats,txn_global_idx_update"
- name: BULK_SIZE
value: "80"
- name: STARCOIN_ES_PWD
valueFrom:
secretKeyRef:
name: elasticsearch-pw-elastic
key: password
- name: STARCOIN_ES_URL
value: "search-starcoin-es2-47avtmhexhbg7qtynzebcnnu64.ap-northeast-1.es.amazonaws.com"
- name: TXN_OFFSET
value: "0"
- name: STARCOIN_ES_PROTOCOL
value: "https"
- name: STARCOIN_ES_PORT
value: "443"
- name: STARCOIN_ES_USER
value: elastic
- name: SWAP_API_URL
value: "https://swap-api.starswap.xyz"
- name: SWAP_CONTRACT_ADDR
value: "0xbd7e8be8fae9f60f2f5136433e36a091"
- name: DS_URL
value: "jdbc:postgresql://database-1.c0bz9kehdvnb.ap-northeast-1.rds.amazonaws.com/starcoin"
- name: DB_USER_NAME
value: "starcoin"
- name: DB_PWD
valueFrom:
secretKeyRef:
name: postgresql-starcoin-yu
key: password
- name: DB_SCHEMA
value: "vega"
- name: PROGRAM_ARGS
value: ""
#valume:
2 changes: 1 addition & 1 deletion kube/indexer/starswap-info-main-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ spec:
- name: SWAP_CONTRACT_ADDR
value: "0x8c109349c6bd91411d6bc962e080c4a3"
- name: DS_URL
value: "jdbc:postgresql://database-swap.czftx6muneg7.ap-northeast-1.rds.amazonaws.com/starcoin"
value: "jdbc:postgresql://database-1.c0bz9kehdvnb.ap-northeast-1.rds.amazonaws.com/starcoin"
- name: DB_USER_NAME
value: "starcoin"
- name: DB_PWD
Expand Down
Loading

0 comments on commit d568d08

Please sign in to comment.