It depends on the replication strategy.
SimpleStrategy is very basic and will simply place the following two replicas on the next two nodes in the token ring.
For example if you had a token ring of 6 with 1 token per node and 6 nodes (tokens 1 - 6), and a primary replica for some data X that landed on token 5, X would have copies on node 5, 6, and 1. You should always avoid using SimpleStrategy in production (or just always).
NetworkTopologyStrategy allows you to specify the number of replicas per datacenter and also respects racks, such that a primary replica will be chosen via the partitioner, however copies will be placed based on the allocation of replicas to datacenters and within a datacenter on alternating racks.
For example, with a 2 DC cluster, 6 nodes in each DC, 1 token per node, token ring of 1-6, RF=3 in each DC, and 3 racks per DC:
X primary replica = 5
node | token | rack | DC
1 1 a north - X
2 2 b north
3 3 c north - X
4 4 a north
5 5 b north - X
6 6 c north
7 1 a south - X
8 2 b south
9 3 c south - X
10 4 a south
11 5 b south - X
12 6 c south
Worth noting that this is the simple case with #racks == RF and racks are alternating (which you should aim for), and as long as your number of racks is at least the same as your RF (for the DC) you will have one entire copy of the data on that rack.
raft.so - ScyllaDB consulting, support, and managed services.