Skip to content

Commit

Permalink
[dag indexer] add dag indexer for vega
Browse files Browse the repository at this point in the history
  • Loading branch information
welbon committed Jul 2, 2024
1 parent b13b7e2 commit 6d86d28
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 2 deletions.
64 changes: 64 additions & 0 deletions kube/dag-indexer/starcoin-dga-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-dag-indexer-deployment
namespace: starcoin-vega
labels:
app: starcoin-dag-indexer
spec:
replicas: 1
selector:
matchLabels:
app: starcoin-dag-indexer
template:
metadata:
labels:
app: starcoin-dag-indexer
spec:
containers:
- name: starcoin-dag-indexer
image: starcoin/starcoin_indexer:dag_inspector_vega_6
ports:
- containerPort: 8300
env:
- name: HOSTS
value: "vega.seed.starcoin.org"
- name: NETWORK
value: "vega.0727"
- name: BG_TASK_JOBS
value: "dag_inspector"
- name: BULK_SIZE
value: "10"
- 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:
4 changes: 2 additions & 2 deletions kube/indexer/starcoin-indexer-vega-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:dag_inspector_vega_5
image: starcoin/starcoin_indexer:dag_inspector_vega_6
ports:
- containerPort: 8300
env:
Expand All @@ -26,7 +26,7 @@ spec:
- name: NETWORK
value: "vega.0727"
- name: BG_TASK_JOBS
value: "indexer,secondary,market_cap,txn_payload,swap_stats,txn_global_idx_update,dag_inspector"
value: "indexer,secondary,market_cap,txn_payload,swap_stats,txn_global_idx_update"
- name: BULK_SIZE
value: "80"
- name: STARCOIN_ES_PWD
Expand Down

0 comments on commit 6d86d28

Please sign in to comment.