-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Running indexer and block_scout_web on different pods #2026
Comments
Why do you think so? This way, that you've run indexer and web application, is absolutely correct for separate launch. When you stop indexer, the web application should work and no news blocks should appear in the db. This is what I see in my test with this setup. |
Actually, the So the configuration above works to run both separately, just a small thing that I noticed is when running both separately (index and web interface) the web interface blocks didn't update automatically, looks like the WebSocket is inactivated |
Hey @vbaranov thanks for your answer, are you able to reproduce the issue above? |
@eduardonunesp yes, I can confirm that websocket doesn't work in a separate launch. I've created an issue. We will try to fix a websocket in this case. |
@vbaranov that's great thanks for the feedback |
The issue with websocket was fixed #2449. Now it is possible to divide indexer and web application. It is managed by env vars: To run web application without indexer:
To run indexer only (without web app):
Reference https://app.gitbook.com/@poa/s/blockscout/for-developers/information-and-settings/env-variables |
We're running the Dockerized image of the
blockscout
, however, we would like to run the indexer on a docker host and the web interface on another docker host, I wonder if is possible to run the web interface without call the indexer and run the indexer alone on a different host.I did a few experiments on the terminal, so in order to run the
indexer
only:# If run without the iex -S mix the indexer process will not hold the process mix cmd --app indexer iex -S mix
However when running a similar command for the web interface on another terminal like
Looks like the
indexer
is running twice, I would like to know how to run those process separately and running only one if necessary on different machines, thanks :)The text was updated successfully, but these errors were encountered: