Module cluster

Source

Structs§

Cluster
ExecutorCluster
NetworkCluster
RetentionConfig
Represents the default retention policy and overrides for prunable tables. Instantiated only if PruningOptions is provided on indexer start.
SnapshotLagConfig

Functions§

prep_executor_cluster
serve_executor
Takes in a simulated instantiation of a Sui blockchain and builds a cluster around it. This cluster is typically used in e2e tests to emulate and test behaviors.
start_cluster
Starts a validator, fullnode, indexer, and graphql service for testing.
start_graphql_server
start_graphql_server_with_fn_rpc
start_network_cluster
Starts a validator, fullnode, indexer (using data ingestion). Re-using GraphQL’s ConnectionConfig for convenience. This does not start any GraphQL services, only the network cluster. You can start a GraphQL service calling start_graphql_server.
wait_for_graphql_checkpoint_catchup
Ping the GraphQL server until its background task has updated the checkpoint watermark to the desired checkpoint.
wait_for_graphql_checkpoint_pruned
Ping the GraphQL server for a checkpoint until an empty response is returned, indicating that the checkpoint has been pruned.
wait_for_graphql_epoch_catchup
Ping the GraphQL server until its background task has updated the checkpoint watermark to the desired checkpoint.
wait_for_graphql_server
Repeatedly ping the GraphQL server for 60s, until it responds