0

我计划将 Keyspace Strategy 从 SimpleStrategy 更改为 NetworkTopologyStrategy 以使其具有网络意识。我已经更改了我创建的 app1、app2 和 app3 的键空间策略。我是否需要将下面提到的密钥空间的密钥空间策略更改为网络感知?

dse_leases,dse_system,system_schema,dse_security,system_auth,system_distributed,系统,system_traces,solr_admin,dse_perf

更新:我发现我不必更改键空间系统和 system_schema 的策略,因为它不是用户可修改的。上面提到的其他键空间是否需要更改

4

1 回答 1

0

系统和 system_schema :

Don't have to change strategy of keyspace system and system_schema because
its not user modifiable

dse_leases:

1) A replication factor of 1 is suitable for development and testing on a   
   single node only, but never in a production environment.
2) For production clusters, increase the replication factor to at least 3 
   for each logical datacenter that is running analytics.

dse_system:

DSE uses a default replication strategy of "EverywhereStrategy" for the 
dse_system keyspace.The best approach is to keep the DSE node in the  
cluster and then alter the replication strategy for the dse_system  
keyspace to one that is understood by all nodes
   (a) ALTER KEYSPACE dse_system WITH replication = {'class': 'NetworkTopologyStrategy', 'DC1':1 ,'DC2':1};

dse_perf:

DataStax Enterprise uses the dse_perf keyspace for storing performance  
metrics data.By default DataStax Enterprise writes performance  metrics  
data with consistency level ONE and writes are performed asynchronously. 
Set the replication factor based depending on your environment:
 (a) ALTER KEYSPACE "dse_perf" WITH REPLICATION = {'class' : 'NetworkTopologyStrategy', 'dc1' : 3, 'dc2' : 2};

system_auth 和 dse_security :

Cassandra uses the system_auth and dse_security keyspaces for storing  
security authentication and authorization  information. DataStax  
Enterprise uses the system_auth keyspace when you enable any kind of  
authentication. DataStax Enterprise uses the dse_security keyspace only on 
analytics nodes (CFS, Hadoop, Spark) when you enable Kerberos  
authentication  
  (a)ALTER KEYSPACE "system_auth" WITH REPLICATION = {'class' : 'NetworkTopologyStrategy', 'dc1' : 3, 'dc2' : 2};
  (b)ALTER KEYSPACE "dse_security" WITH REPLICATION = {'class' : 'NetworkTopologyStrategy', 'dc1' : 3, 'dc2' : 2};
于 2017-08-24T06:17:39.573 回答