Questo contenuto non è disponibile nella lingua selezionata.

Chapter 5. Adjusting Container Specifications


You can allocate CPU and memory resources, specify JVM options, and configure storage for Data Grid nodes.

5.1. JVM, CPU, and Memory Resources

spec:
  ...
  container:
    extraJvmOpts: "-XX:NativeMemoryTracking=summary" 
1

    cpu: "1000m" 
2

    memory: 1Gi 
3
Copy to Clipboard Toggle word wrap
1
Specifies JVM options.
2
Allocates host CPU resources to node, measured in CPU units.
3
Allocates host memory resources to nodes, measured in bytes.

When Data Grid Operator creates Data Grid clusters, it uses spec.container.cpu and spec.container.memory to:

  • Ensure that OpenShift has sufficient capacity to run the Data Grid node. By default Data Grid Operator requests 512Mi of memory and 0.5 cpu from the OpenShift scheduler.
  • Constrain node resource usage. Data Grid Operator sets the values of cpu and memory as resource limits.

Garbage collection logging

By default, Data Grid Operator does not log garbage collection (GC) messages. You can optionally add the following JVM options to direct GC messages to stdout:

extraJvmOpts: "-Xlog:gc*:stdout:time,level,tags"
Copy to Clipboard Toggle word wrap

5.2. Storage Resources

spec:
  ...
  service:
    type: DataGrid
    container:
      storage: 2Gi 
1
Copy to Clipboard Toggle word wrap
1
Configures the storage size for Data Grid service nodes.

By default, Data Grid Operator allocates 1Gi for storage for both Cache service and Data Grid service nodes. You can configure storage size only for Data Grid service nodes.

Persistence

Data Grid service lets you configure Single File cache stores for data persistence:

<persistence>
    <file-store />
</persistence>
Copy to Clipboard Toggle word wrap

5.2.1. Persistent Volume Claims

Data Grid Operator mounts persistent volumes at:
/opt/datagrid/server/data

Note

Persistent volume claims use the ReadWriteOnce (RWO) access mode.

Torna in cima
Red Hat logoGithubredditYoutubeTwitter

Formazione

Prova, acquista e vendi

Community

Informazioni sulla documentazione di Red Hat

Aiutiamo gli utenti Red Hat a innovarsi e raggiungere i propri obiettivi con i nostri prodotti e servizi grazie a contenuti di cui possono fidarsi. Esplora i nostri ultimi aggiornamenti.

Rendiamo l’open source più inclusivo

Red Hat si impegna a sostituire il linguaggio problematico nel codice, nella documentazione e nelle proprietà web. Per maggiori dettagli, visita il Blog di Red Hat.

Informazioni su Red Hat

Forniamo soluzioni consolidate che rendono più semplice per le aziende lavorare su piattaforme e ambienti diversi, dal datacenter centrale all'edge della rete.

Theme

© 2025 Red Hat