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

INDEXER_AGENT_NETWORK_SUBGRAPH_ENDPOINT #45

Open
ThomasBlock opened this issue Oct 25, 2024 · 8 comments
Open

INDEXER_AGENT_NETWORK_SUBGRAPH_ENDPOINT #45

ThomasBlock opened this issue Oct 25, 2024 · 8 comments

Comments

@ThomasBlock
Copy link

ThomasBlock commented Oct 25, 2024

Thank you for this project. Setting up a node is very easy.

just one undocumented change: in the .env file we need now to enter a custom
INDEXER_AGENT_NETWORK_SUBGRAPH_ENDPOINT

As described here
https://github.com/graphprotocol/indexer/blob/main/docs/networks/arbitrum-one.md

this needs an api key from
https://thegraph.com/studio/apikeys/

@trader-payne
Copy link
Member

Hi @ThomasBlock, yeah, I'm yet to update the mainnet repo to be on par with the Testnet repo, aiming for this weekend 🫡
Gonna close this issue after I'm done with all the changes.

@ThomasBlock
Copy link
Author

great. one more warning to my solution:
maybe its because i used a dummy operator seed phrase.. but the agent fired 100.000 api calls in the first day. this would be quite expensive. so the quick fix for me is
docker-compose -f compose-indexer.yml stop indexer-agent

and only start it when neccessay.

@trader-payne
Copy link
Member

It's totally normal. You won't be able to use the free tier with the agent/service connected to the network subgraph and ebo. Your $200 cost per month seems a good ballpark, but could be higher.
One way around this would be to disable the indexer-agent every time you are done reallocating.

@ThomasBlock
Copy link
Author

okay.. but automatic reallocations can be handy sometimes.. is there a way to reduce the requests, like check only every 6 hours?

@trader-payne
Copy link
Member

As far as I'm aware, there's no way to rate limit it.

@ThomasBlock
Copy link
Author

Querys cant be completed, the following is also missing in the .env
INDEXER_SERVICE_NETWORK_SUBGRAPH_ENDPOINT="$INDEXER_AGENT_NETWORK_SUBGRAPH_ENDPOINT"

@trader-payne
Copy link
Member

Like I said, the mainnet repo is not updated yet. I'm working on it.
It will come with super cool updates.
The testnet repo is almost ready.

@ThomasBlock
Copy link
Author

no worries, this is not a request, i just write down documentation before i forget it.
certainly looking foreward to cool updates :) i will be the first to test it

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