Skip to content
This repository was archived by the owner on Jan 9, 2024. It is now read-only.
This repository was archived by the owner on Jan 9, 2024. It is now read-only.

Add full state replica activated by dedicated option #418

Description

@canepat

Add implementation of full state replica (i.e. loading all plain state in state cache at the startup, so that applying state changes will keep the full state local to Silkrpc) and lookup for state values just on such local state that must be coherent. If it is not coherent, it is an error and should be treated as such w/o falling back to accessing remote state.

This is required in order to support one specific scenario, which is very relevant for node operators:

  • Silkrpc gets deployed on a data center machine having much fast RAM (200/300 GB) even with slow HDD
  • only eth_call on LATEST block are forwarded to such instance by the load balancer
  • all the state lookups happen on local state in memory and hence are fast

This feature should be made available under a command-line option called --state_replica or something.

This feature does in fact also benefit from implementation of erigon_cacheCheck API.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions