[Bug] graph-node doesn't follow deployment.rule for index-node assignments
Bug report
Looks like graph-node doesn't use indexers variable from config.toml deployment.rule to assign matching deployments to a particular node.
Rule itself:
[[deployment.rule]]
match = { network = "mainnet" }
indexers = [ "index_node_1" ]
shards = [ "shardA" ]
Set rule decisionBasis and during every reallocation we have to reassign subgraphs to designated index-nodes everytime.
Relevant log output
No response
IPFS hash
No response
Subgraph name or link to explorer
No response
Some information to help us out
- [ ] Tick this box if this bug is caused by a regression found in the latest release.
- [ ] Tick this box if this bug is specific to the hosted service.
- [X] I have searched the issue tracker to make sure this issue is not a duplicate.
OS information
Linux
This is expected current behavior, not a bug. Indexer-agent takes an array of index-nodes and sends new assignments to the node from that list with the least amount of deployments assigned.
The plan though, is to remove that process from indexer-agent and rely purely on graph-node for assignment decisions; this would allow you to leverage the deployment rules in the .toml config for graph-node.
Closing this as the work will primarily be in indexer-agent and tracked by https://github.com/graphprotocol/indexer/issues/853