Function forest_filecoin::health::endpoints::readyz

source ยท
pub(crate) async fn readyz(
    __arg0: State<Arc<ForestState>>,
    __arg1: Query<HashMap<String, String>>,
) -> Result<String, AppError>
Expand description

Readiness probes determine whether or not a container is ready to serve requests. The goal is to determine if the application is fully prepared to accept traffic. In our case, we require:

  • The node is in sync with the network
  • The current epoch of the node is not too far behind the network
  • The RPC server is running
  • The Ethereum mapping is up to date

If any of these conditions are not met, the nod is not ready to serve requests.