On Jun 15, 2010, at 12:43 AM, Masood Mortazavi wrote: > Is the clearer interpretation of this statement (in > conf/datacenters.properties) given anywhere else? > > # The sum of all the datacenter replication factor values should equal > # the replication factor of the keyspace (i.e. sum(dc_rf) = RF) > > # keyspace\:datacenter=replication factor > Keyspace1\:DC1=3 > Keyspace1\:DC2=2 > Keyspace1\:DC3=1 > > Does the above example configuration imply that Keyspace1 has a RF of 6, and > that of these 3 will go to DC1, 2 to DC2 and 1 to DC3? >
Yes, that's the idea. > What will happen if datacenters.properties and cassandra-rack.properties are > simply empty? > It will throw a configuration exception if the properties files are not there. There may be changes to how this is done before 0.7 is finalized though. For example the configuration files may be turned into simple thrift calls like what is being done with the dynamic keyspace configuration. > - m.