scylladb / scylla-cluster-tests

Tests for Scylla Clusters
GNU Affero General Public License v3.0
57 stars 95 forks source link

multiple dc test is not supported in docker backend #9276

Open asias opened 3 hours ago

asias commented 3 hours ago

It is useful to support multiple dc test for developing sct test that runs multiple dc on aws.

fruch commented 3 hours ago

Well we might be able to support dummy DCs

But it's a bit different to configure.

@vponomaryov

Can you point to the configuration dummy DC is used ?

So we can create such example for docker backend ?

vponomaryov commented 1 hour ago

SCT has a feature to run simulated regions and racks:

n_db_nodes: '3 3'
n_loaders: '1 1'
simulated_regions: 2
simulated_racks: 3 # not required, if not specified, then single "rack" will be used

Above will create 6 DB nodes: dc1-rack1, dc1-rack2, dc1-rack3, dc2-rack1, dc2-rack2 and dc2-rack3. And 2 loaders - 1 per each simulated DC. Meaning load will use preferred dc.

I haven't tried it on docker. And I think no one have done it so far. So, there may be some obstacle at first attempt, but I don't expect some complex problems.

fruch commented 1 hour ago

SCT has a feature to run simulated regions and racks:

n_db_nodes: '3 3'
n_loaders: '1 1'
simulated_regions: 2
simulated_racks: 3 # not required, if not specified, then single "rack" will be used

Above will create 6 DB nodes: dc1-rack1, dc1-rack2, dc1-rack3, dc2-rack1, dc2-rack2 and dc2-rack3. And 2 loaders - 1 per each simulated DC. Meaning load will use preferred dc.

I haven't tried it on docker. And I think no one have done it so far. So, there may be some obstacle at first attempt, but I don't expect some complex problems.

there might one that I can think of, the way we configure docker backed, it spins right up, and we can pass along the rack/dc info, we need to mount it into place, and I don't think we have this option yet.