-
Notifications
You must be signed in to change notification settings - Fork 499
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
exp/lighthorizon/build/index-batch: carry over map/reduce updates to …
…latest docker layout on feature branch (#4543)
- Loading branch information
Showing
10 changed files
with
129 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# `stellar/horizon-indexer` | ||
|
||
This docker image contains the ledger/checkpoint indexing executables. It allows running multiple instances of `map`/`reduce` on a single machine or running it in [AWS Batch](https://aws.amazon.com/batch/). | ||
|
||
## Env variables | ||
|
||
See the [package documentation](../../index/cmd/batch/doc.go) for more details |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: 'batch-map-job' | ||
spec: | ||
completions: 52 | ||
parallelism: 10 | ||
completionMode: Indexed | ||
template: | ||
spec: | ||
restartPolicy: Never | ||
containers: | ||
- name: 'worker' | ||
image: 'stellar/lighthorizon-index-batch' | ||
imagePullPolicy: Always | ||
envFrom: | ||
- secretRef: | ||
name: <reference to secret name here if needed for source/target> | ||
env: | ||
- name: RUN_MODE | ||
value: "map" | ||
- name: BATCH_SIZE | ||
value: "10048" | ||
- name: FIRST_CHECKPOINT | ||
value: "41426080" | ||
- name: WORKER_COUNT | ||
value: "8" | ||
- name: TXMETA_SOURCE | ||
value: "<url of txmeta source>" | ||
- name: JOB_INDEX_ENV | ||
value: "JOB_COMPLETION_INDEX" | ||
- name: NETWORK_PASSPHRASE | ||
value: "pubnet" | ||
- name: INDEX_TARGET | ||
value: "url of target index" | ||
resources: | ||
limits: | ||
cpu: 4 | ||
memory: 5Gi | ||
requests: | ||
cpu: 500m | ||
memory: 500Mi | ||
|
42 changes: 42 additions & 0 deletions
42
exp/lighthorizon/build/k8s/lighthorizon_batch_reduce_job copy.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: 'batch-reduce-job' | ||
spec: | ||
completions: 52 | ||
parallelism: 10 | ||
completionMode: Indexed | ||
template: | ||
spec: | ||
restartPolicy: Never | ||
containers: | ||
- name: 'worker' | ||
image: 'stellar/lighthorizon-index-batch' | ||
imagePullPolicy: Always | ||
envFrom: | ||
- secretRef: | ||
name: <reference to secret name here if needed for source/target> | ||
env: | ||
- name: RUN_MODE | ||
value: "reduce" | ||
- name: MAP_JOB_COUNT | ||
value: 52 | ||
- name: REDUCE_JOB_COUNT | ||
value: 52 | ||
- name: WORKER_COUNT | ||
value: 8 | ||
- name: INDEX_SOURCE_ROOT | ||
value: "<url of index location>" | ||
- name: JOB_INDEX_ENV | ||
value: JOB_COMPLETION_INDEX | ||
- name: INDEX_TARGET | ||
value: "<url of index location>" | ||
resources: | ||
limits: | ||
cpu: 4 | ||
memory: 5Gi | ||
requests: | ||
cpu: 500m | ||
memory: 500Mi | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters