Improving read performance

You can increase DSE Search read performance by increasing the number of replicas. You define a strategy class, the names of datacenters, and the number of replicas. For example, you can add replicas using the NetworkToplogyStrategy replica placement strategy.

Procedure

  1. For example, if you are using a PropertyFileSnitch, perform these steps:

  2. Examine your datacenter and nodes. The following example shows two datacenters with one node in each datacenter, which is a suboptimal configuration.

    nodetool -h localhost ring
    Datacenter: DC1
    ==========
    Address          Rack        Status State   Load            Owns                Token
    
    145.101.134.121  rack1       Up     Normal  160.54 KiB      100.00%             -9223372036854775808
    
    Datacenter: DC2
    ==========
    Address          Rack        Status State   Load            Owns                Token
    
    145.101.134.122  rack1       Up     Normal  160.54 KiB      100.00%             -9223372036854775808

    The datacenter names, DC1 and DC2 in this example, must match the datacenter name configured for your snitch.

  3. Start CQL on the command line and create a keyspace that specifies the number of replicas.

    To improve read performance, increase the number of replicas in the datacenters. For example, at least three replicas in DC1 and three in DC2.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com