keyspace-cycling
ALTER KEYSPACE cycling
WITH REPLICATION = {
'class' : 'NetworkTopologyStrategy',
'SearchAnalytics' : 1
};
ALTER KEYSPACE cycling
WITH REPLICATION = {
'class' : 'NetworkTopologyStrategy',
'DC1' : 3,
'DC2' : 2
};
CREATE KEYSPACE "Cycling"
WITH REPLICATION = {
'class' : 'NetworkTopologyStrategy',
'boston' : 3 , // Datacenter 1
'seattle' : 2 , // Datacenter 2
'tokyo' : 2 // Datacenter 3
};
CREATE KEYSPACE IF NOT EXISTS cycling
WITH REPLICATION = {
'class' : 'NetworkTopologyStrategy',
'datacenter1': '3',
'datacenter2': '3'
};
CREATE KEYSPACE cycling
WITH REPLICATION = {
'class' : 'NetworkTopologyStrategy',
'datacenter1' : 1
};
CREATE KEYSPACE cycling
WITH REPLICATION = {
'class' : 'NetworkTopologyStrategy',
'datacenter1' : 3
}
AND DURABLE_WRITES = false;
CREATE KEYSPACE IF NOT EXISTS cycling
WITH REPLICATION = {
'class' : 'SimpleStrategy',
'replication_factor' : 1
};
DESCRIBE KEYSPACES;
DESCRIBE KEYSPACE cycling;
DESCRIBE KEYSPACE cycling;
DESCRIBE KEYSPACE cycling;
DESCRIBE KEYSPACE cycling;
DESCRIBE KEYSPACE cycling;
DESCRIBE KEYSPACE cycling;
DESCRIBE KEYSPACE cycling;
DROP KEYSPACE cycling;
DROP KEYSPACE IF EXISTS cycling;
USE cycling;