-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add trace classifier (#82) * Added golang API * Fixed dialect problem * Docker standalone setup update * Updated docker setup * Updated submodule * Updated readme --------- Co-authored-by: verdigos <chdm.ps@gmail.com>
- Loading branch information
1 parent
cff48db
commit f8df906
Showing
48 changed files
with
3,554 additions
and
209 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[submodule "ton-index-cpp"] | ||
path = ton-index-cpp | ||
url = https://github.com/toncenter/ton-index-worker | ||
[submodule "ton-index-go"] | ||
path = ton-index-go | ||
url = https://github.com/toncenter/ton-index-go |
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
version: '3.9' | ||
|
||
x-indexer-environment: &indexer-environment | ||
POSTGRES_DIALECT: | ||
POSTGRES_HOST: | ||
POSTGRES_PORT: | ||
POSTGRES_USER: | ||
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password | ||
POSTGRES_DBNAME: | ||
TON_INDEXER_API_ROOT_PATH: | ||
TON_INDEXER_API_TITLE: | ||
TON_INDEXER_TON_HTTP_API_ENDPOINT: | ||
TON_INDEXER_REDIS_DSN: redis://event-cache:6379 | ||
|
||
services: | ||
event-cache: | ||
image: redis:latest | ||
networks: | ||
- internal | ||
command: redis-server --maxclients 40000 | ||
deploy: | ||
mode: replicated | ||
replicas: 1 | ||
placement: | ||
constraints: | ||
- "node.labels.${TONCENTER_ENV:?}.indexer-cpp.events==true" | ||
event-classifier: | ||
image: ${DOCKER_REGISTRY:-localhost:5000}/ton-index-event-classfier:${IMAGE_TAG:?} | ||
build: | ||
context: indexer | ||
dockerfile: Dockerfile | ||
secrets: | ||
- postgres_password | ||
command: python3 /app/event_classifier.py --pool-size ${TON_INDEXER_WORKERS:-8} --fetch-size 64000 --batch-size 2000 | ||
environment: *indexer-environment | ||
deploy: | ||
mode: replicated | ||
replicas: 1 | ||
placement: | ||
constraints: | ||
- "node.labels.${TONCENTER_ENV:?}.indexer-cpp.events==true" | ||
networks: | ||
internal: | ||
|
||
networks: | ||
internal: | ||
attachable: true | ||
external: false | ||
driver_opts: | ||
com.docker.network.driver.mtu: 1350 | ||
toncenter-global: | ||
external: true | ||
|
||
secrets: | ||
postgres_password: | ||
file: private/postgres_password | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM python:3.10 | ||
|
||
# python requirements | ||
ADD requirements.txt /tmp/requirements.txt | ||
RUN python3 -m pip install --no-cache-dir -r /tmp/requirements.txt | ||
|
||
# app | ||
COPY . /app | ||
WORKDIR /app | ||
|
||
# entrypoint | ||
ENV C_FORCE_ROOT 1 | ||
ENTRYPOINT [ "/app/entrypoint.sh" ] |
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
Oops, something went wrong.