Skip to navigation Skip to main content

Utilities

  • Subscriptions
  • Downloads
  • Containers
  • Support Cases
Red Hat Customer Portal
  • Subscriptions
  • Downloads
  • Containers
  • Support Cases
  • Products & Services

    Products

    Support

    • Production Support
    • Development Support
    • Product Life Cycles

    Services

    • Consulting
    • Technical Account Management
    • Training & Certifications

    Documentation

    • Red Hat Enterprise Linux
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenStack Platform
    • Red Hat OpenShift Container Platform
    All Documentation

    Ecosystem Catalog

    • Red Hat Partner Ecosystem
    • Partner Resources
  • Tools

    Tools

    • Troubleshoot a product issue
    • Packages
    • Errata

    Customer Portal Labs

    • Configuration
    • Deployment
    • Security
    • Troubleshoot
    All labs

    Red Hat Insights

    Increase visibility into IT operations to detect and resolve technical issues before they impact your business.

    Learn More
    Go to Insights
  • Security

    Red Hat Product Security Center

    Engage with our Red Hat Product Security team, access security updates, and ensure your environments are not exposed to any known security vulnerabilities.

    Product Security Center

    Security Updates

    • Security Advisories
    • Red Hat CVE Database
    • Security Labs

    Keep your systems secure with Red Hat's specialized responses to security vulnerabilities.

    View Responses

    Resources

    • Security Blog
    • Security Measurement
    • Severity Ratings
    • Backporting Policies
    • Product Signing (GPG) Keys
  • Community

    Customer Portal Community

    • Discussions
    • Private Groups
    Community Activity

    Customer Events

    • Red Hat Convergence
    • Red Hat Summit

    Stories

    • Red Hat Subscription Value
    • You Asked. We Acted.
    • Open Source Communities
Or troubleshoot an issue.

Select Your Language

  • English
  • 한국어
  • 日本語
  • 中文 (中国)

Infrastructure and Management

  • Red Hat Enterprise Linux
  • Red Hat Satellite
  • Red Hat Subscription Management
  • Red Hat Insights
  • Red Hat Ansible Automation Platform

Cloud Computing

  • Red Hat OpenShift
  • Red Hat OpenStack Platform
  • Red Hat OpenShift Container Platform
  • Red Hat OpenShift Data Science
  • Red Hat OpenShift Dedicated
  • Red Hat Advanced Cluster Security for Kubernetes
  • Red Hat Advanced Cluster Management for Kubernetes
  • Red Hat Quay
  • OpenShift Dev Spaces
  • Red Hat OpenShift Service on AWS

Storage

  • Red Hat Gluster Storage
  • Red Hat Hyperconverged Infrastructure
  • Red Hat Ceph Storage
  • Red Hat OpenShift Data Foundation

Runtimes

  • Red Hat Runtimes
  • Red Hat JBoss Enterprise Application Platform
  • Red Hat Data Grid
  • Red Hat JBoss Web Server
  • Red Hat Single Sign On
  • Red Hat support for Spring Boot
  • Red Hat build of Node.js
  • Red Hat build of Quarkus

Integration and Automation

  • Red Hat Application Foundations
  • Red Hat Fuse
  • Red Hat AMQ
  • Red Hat 3scale API Management
All Products

Table of contents

  1. Configuring Data Grid Caches
  2. Red Hat Data Grid
    1. Data Grid documentation
    2. Data Grid downloads
    3. Making open source more inclusive
    4. Providing feedback on Red Hat documentation
  3. 1. Data Grid caches
    1. 1.1. Cache API
    2. 1.2. Cache managers
    3. 1.3. Cache modes
      1. 1.3.1. Comparison of cache modes
    4. 1.4. Local caches
      1. 1.4.1. Simple caches
  4. 2. Clustered caches
    1. 2.1. Replicated caches
    2. 2.2. Distributed caches
      1. 2.2.1. Read consistency
      2. 2.2.2. Key ownership
      3. 2.2.3. Capacity factors
        1. 2.2.3.1. Zero capacity nodes
      4. 2.2.4. Level one (L1) caches
      5. 2.2.5. Server hinting
      6. 2.2.6. Key affinity service
      7. 2.2.7. Grouping API
    3. 2.3. Invalidation caches
    4. 2.4. Scattered caches
    5. 2.5. Asynchronous replication
      1. 2.5.1. Return values with asynchronous replication
    6. 2.6. Configuring initial cluster size
  5. 3. Data Grid cache configuration
    1. 3.1. Declarative cache configuration
      1. 3.1.1. Cache configuration
    2. 3.2. Adding cache templates
      1. 3.2.1. Creating caches from templates
      2. 3.2.2. Cache template inheritance
      3. 3.2.3. Cache template wildcards
      4. 3.2.4. Cache templates from multiple XML files
    3. 3.3. Creating remote caches
      1. 3.3.1. Default Cache Manager
      2. 3.3.2. Creating caches with Data Grid Console
      3. 3.3.3. Creating remote caches with the Data Grid CLI
      4. 3.3.4. Creating remote caches from Hot Rod clients
      5. 3.3.5. Creating remote caches with the REST API
    4. 3.4. Creating embedded caches
      1. 3.4.1. Adding Data Grid to your project
      2. 3.4.2. Configuring embedded caches
  6. 4. Enabling and configuring Data Grid statistics and JMX monitoring
    1. 4.1. Configuring Data Grid metrics
    2. 4.2. Registering JMX MBeans
      1. 4.2.1. Enabling JMX remote ports
      2. 4.2.2. Data Grid MBeans
      3. 4.2.3. Registering MBeans in custom MBean servers
  7. 5. Configuring JVM memory usage
    1. 5.1. Default memory configuration
    2. 5.2. Eviction and expiration
    3. 5.3. Eviction with Data Grid caches
      1. 5.3.1. Eviction strategies
      2. 5.3.2. Configuring maximum count eviction
      3. 5.3.3. Configuring maximum size eviction
      4. 5.3.4. Manual eviction
      5. 5.3.5. Passivation with eviction
    4. 5.4. Expiration with lifespan and maximum idle
      1. 5.4.1. How expiration works
      2. 5.4.2. Expiration reaper
      3. 5.4.3. Maximum idle and clustered caches
      4. 5.4.4. Configuring lifespan and maximum idle times for caches
      5. 5.4.5. Configuring lifespan and maximum idle times per entry
    5. 5.5. JVM heap and off-heap memory
      1. 5.5.1. Off-heap data storage
      2. 5.5.2. Configuring off-heap memory
  8. 6. Configuring persistent storage
    1. 6.1. Passivation
      1. 6.1.1. How passivation works
    2. 6.2. Write-through cache stores
    3. 6.3. Write-behind cache stores
    4. 6.4. Segmented cache stores
    5. 6.5. Shared cache stores
    6. 6.6. Transactions with persistent cache stores
    7. 6.7. Global persistent location
      1. 6.7.1. Configuring the global persistent location
    8. 6.8. File-based cache stores
      1. 6.8.1. Configuring file-based cache stores
      2. 6.8.2. Configuring single file cache stores
    9. 6.9. JDBC connection factories
      1. 6.9.1. Configuring managed datasources
        1. 6.9.1.1. Configuring caches with JNDI names
        2. 6.9.1.2. Connection pool tuning properties
      2. 6.9.2. Configuring JDBC connection pools with Agroal properties
    10. 6.10. SQL cache stores
      1. 6.10.1. Data types for keys and values
        1. 6.10.1.1. Composite keys and values
        2. 6.10.1.2. Embedded keys
        3. 6.10.1.3. SQL types to Protobuf types
      2. 6.10.2. Loading Data Grid caches from database tables
      3. 6.10.3. Using SQL queries to load data and perform operations
        1. 6.10.3.1. SQL query store configuration
      4. 6.10.4. SQL cache store troubleshooting
    11. 6.11. JDBC string-based cache stores
      1. 6.11.1. Configuring JDBC string-based cache stores
    12. 6.12. RocksDB cache stores
    13. 6.13. Remote cache stores
    14. 6.14. JPA cache stores
      1. 6.14.1. JPA cache store example
    15. 6.15. Cluster cache loaders
    16. 6.16. Creating custom cache store implementations
      1. 6.16.1. Data Grid Persistence SPI
      2. 6.16.2. Creating cache stores
      3. 6.16.3. Examples of custom cache store configuration
      4. 6.16.4. Deploying custom cache stores
    17. 6.17. Migrating data between cache stores
      1. 6.17.1. Cache store migrator
      2. 6.17.2. Getting the cache store migrator
      3. 6.17.3. Configuring the cache store migrator
        1. 6.17.3.1. Configuration properties for the cache store migrator
      4. 6.17.4. Migrating Data Grid cache stores
  9. 7. Configuring Data Grid to handle network partitions
    1. 7.1. Split clusters and network partitions
      1. 7.1.1. Data consistency in a split cluster
    2. 7.2. Cache availability and degraded mode
      1. 7.2.1. Degraded cache recovery example
      2. 7.2.2. Verifying cache availability during network partitions
      3. 7.2.3. Making caches available
    3. 7.3. Configuring partition handling
    4. 7.4. Partition handling strategies
    5. 7.5. Merge policies
    6. 7.6. Configuring custom merge policies
    7. 7.7. Manually merging partitions in embedded caches
  10. 8. Configuring user roles and permissions
    1. 8.1. Security authorization
      1. 8.1.1. User roles and permissions
      2. 8.1.2. Permissions
        1. 8.1.2.1. Cache Manager permissions
        2. 8.1.2.2. Cache permissions
      3. 8.1.3. Role mappers
        1. 8.1.3.1. Cluster role mappers
        2. 8.1.3.2. Identity role mappers
        3. 8.1.3.3. CommonName role mappers
        4. 8.1.3.4. Custom role mappers
    2. 8.2. Access control list (ACL) cache
    3. 8.3. Customizing roles and permissions
    4. 8.4. Configuring caches with security authorization
    5. 8.5. Disabling security authorization
  11. Legal Notice

Data Grid documentation

Documentation for Data Grid is available on the Red Hat customer portal.

  • Data Grid 8.3 Documentation
  • Data Grid 8.3 Component Details
  • Supported Configurations for Data Grid 8.3
  • Data Grid 8 Feature Support
  • Data Grid Deprecated Features and Functionality
  1. Previous
  2. Next
Red Hat

Quick Links

  • Downloads
  • Subscriptions
  • Support Cases
  • Customer Service
  • Product Documentation

Help

  • Contact Us
  • Customer Portal FAQ
  • Log-in Assistance

Site Info

  • Trust Red Hat
  • Browser Support Policy
  • Accessibility
  • Awards and Recognition
  • Colophon

Related Sites

  • redhat.com
  • developers.redhat.com
  • connect.redhat.com
  • cloud.redhat.com

About

  • Red Hat Subscription Value
  • About Red Hat
  • Red Hat Jobs
Copyright © 2023 Red Hat, Inc.
  • Privacy Statement
  • Terms of Use
  • All Policies and Guidelines
We've updated our Privacy Policy effective July 1st, 2023.
Red Hat Summit Red Hat Summit
Twitter