Skip to content

Commit

Permalink
Update tests to provision 3 nodes cluster tests with a replicated log…
Browse files Browse the repository at this point in the history
…let with replication property 2

This fixes #26.
  • Loading branch information
tillrohrmann committed Jan 14, 2025
1 parent 2cd408b commit 7edd9e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class RestateContainer(
.build()))
.withStartupTimeout(120.seconds.toJavaDuration())

fun bootstrapRestateCluster(
fun createRestateContainers(
config: RestateDeployerConfig,
network: Network,
envs: Map<String, String>,
Expand All @@ -79,14 +79,17 @@ class RestateContainer(
val leaderEnvs =
mapOf<String, String>(
"RESTATE_CLUSTER_NAME" to clusterId,
"RESTATE_BIFROST__DEFAULT_PROVIDER" to "replicated",
"RESTATE_ALLOW_BOOTSTRAP" to "true",
"RESTATE_BIFROST__DEFAULT_PROVIDER" to "replicated",
"RESTATE_BIFROST__REPLICATED_LOGLET__DEFAULT_REPLICATION_PROPERTY" to "2",
"RESTATE_ROLES" to "[worker,log-server,admin,metadata-store]",
)
val followerEnvs =
mapOf<String, String>(
"RESTATE_CLUSTER_NAME" to clusterId,
"RESTATE_ALLOW_BOOTSTRAP" to "false",
"RESTATE_BIFROST__DEFAULT_PROVIDER" to "replicated",
"RESTATE_BIFROST__REPLICATED_LOGLET__DEFAULT_REPLICATION_PROPERTY" to "2",
"RESTATE_ROLES" to "[worker,admin,log-server]",
"RESTATE_METADATA_STORE_CLIENT__ADDRESS" to
"http://$RESTATE_RUNTIME:$RUNTIME_NODE_PORT")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ private constructor(
}
.associate { it.second.first to (it.first to it.second.second) }
private val runtimeContainers: List<RestateContainer> =
RestateContainer.bootstrapRestateCluster(
RestateContainer.createRestateContainers(
config, network, runtimeContainerEnvs, configSchema, copyToContainer, config.restateNodes)

private val deployedContainers: Map<String, ContainerHandle> =
Expand Down

0 comments on commit 7edd9e8

Please sign in to comment.