Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Configuring Cassandra compression

Updated on May 17, 2024

This content applies only to On-premises and Client-managed cloud environments

You can customize the compression settings for Cassandra SSTables to best suit your application's requirements. By using compression, you reduce the size of the data written to disk, and increase read and write throughput.

Important: The default compression settings ensure the highest performance.

You can configure two types of compression:

Client-to-server compression
Compresses the communication between Pega Platform and Cassandra.
Node-to-node compression (deprecated)
Compresses the contents of Cassandra SSTables.
Note:

Node-to-node compression is specific to configurations that use an internal Cassandra database.

Starting in Pega Platform version 8.6, the use of an internal Cassandra database is deprecated. On-premises and client-managed cloud systems that have been updated from earlier versions of Pega Platform can continue to use Cassandra in embedded mode. However, to ensure future compatibility, do not create any new environments using embedded Cassandra.

Configure Cassandra compression by editing the corresponding prconfig.xml settings.

For more information about specifying settings through the prconfig.xml file, see Changing node settings by modifying the prconfig.xml file.

  • Configure client-to-server compression:
    • If you want to use LZ4 compression, set the value of dnode/cassandra_client_compression to LZ4.

      Note: This is the default setting for client-to-server compression.
    • If you want to use Snappy compression, set the value of dnode/cassandra_client_compression to SNAPPY.

    • If you do not want to use client-to-server compression, set the value of dnode/cassandra_client_compression to NONE.

  • Configure node-to-node compression (deprecated):
    • If you want to compress all node-to-node compression (both inter-data center and intra-data center), set the value of the dnode/yaml/internode_compression property to ALL.

      Note: This is the default setting for node-to-node compression.
    • If you want to compress only inter-data center traffic, set the value of the dnode/yaml/internode_compression property to DC.

    • If you do not want to use node-to-node compression, set the value of the dnode/yaml/internode_compression property to NONE.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us