Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clickhouse indexer #64

Open
MakarovSg opened this issue Jul 4, 2024 · 1 comment
Open

Clickhouse indexer #64

MakarovSg opened this issue Jul 4, 2024 · 1 comment

Comments

@MakarovSg
Copy link

Is there any way to run clickhouse version of indexer? I see some artifacts, but there is nothing in docs/envs.

@dungeon-master-666
Copy link
Collaborator

Hello,

There's an index worker executable that inserts to clickhouse. Follow these steps to deploy it:

  • Run clickhouse instance
  • Run TON node on the machine where index worker will be be deployed
  • Build target ton-index-clickhouse of ton-index-worker
  • Increase number of open files ulimit -n 65536 and run ./ton-index-clickhouse --db /var/ton-work/db --host CH_IP --port CH_PORT --user USER --password PASSWORD --dbname DB_NAME --from START_SEQNO. You can see full list of parameters here. The worker will create the necessary database and tables itself.

Note that the DB schema might change in future. We don't provide migrations for clickhouse, so you will need to reindex data in that case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants