indexer icon indicating copy to clipboard operation
indexer copied to clipboard

Network Subgraph's latest indexed block () is higher than Network's latest block ()

Open ThomasBlock opened this issue 1 year ago • 1 comments

Hi. i dont really understand this message, what can i do? on discord the advice is to ignore it, but it's really spamming my logs is my arbitrum node too slow?

Network Subgraph's latest indexed block (226189029) is higher than Network's latest block (226189010) {
  latestIndexedBlock: 226189029,
  latestNetworkBlock: 226189010,
  blockDistance: -19,
  freshnessThreshold: 200,
  subgraph: 'Network Subgraph',
  retriesLeft: Infinity
}
Network Subgraph's latest indexed block (226189029) is higher than Network's latest block (226189010) {
  latestIndexedBlock: 226189029,
  latestNetworkBlock: 226189010,
  blockDistance: -19,
  freshnessThreshold: 200,
  subgraph: 'Network Subgraph',
  retriesLeft: Infinity
}
Network Subgraph's latest indexed block (226189029) is higher than Network's latest block (226189010) {
  latestIndexedBlock: 226189029,
  latestNetworkBlock: 226189010,
  blockDistance: -19,
  freshnessThreshold: 200,
  subgraph: 'Network Subgraph',
  retriesLeft: Infinity
}
Network Subgraph's latest indexed block (226189030) is higher than Network's latest block (226189010) {
  latestIndexedBlock: 226189030,
  latestNetworkBlock: 226189010,
  blockDistance: -20,
  freshnessThreshold: 200,
  subgraph: 'Network Subgraph',
  retriesLeft: Infinity
}

i found the following variables to make is less often.. but i would like to understand it..

Environment="INDEXER_AGENT_SUBGRAPH_MAX_BLOCK_DISTANCE=200"
Environment="DEFAULT_SUBGRAPH_FRESHNESS_SLEEP_MILLISECONDS=30000"

References: https://discord.com/channels/438038660412342282/737341252835737641/1240770568412860456 https://discord.com/channels/438038660412342282/737341252835737641/1247640502627467295

ThomasBlock avatar Jun 27 '24 07:06 ThomasBlock

my quick fix is: comment this log out: https://github.com/graphprotocol/indexer/blob/8f1071729fc12265191f7ab1d8323eb0ce530dea/packages/indexer-common/src/subgraphs.ts#L477-L481

ThomasBlock avatar Jun 27 '24 08:06 ThomasBlock