Allocate memory to Data Engine

Data Engine uses the following memory types:

  • Maximum cumulative memory – To start theData Engine process.

    The maximum cumulative memory cannot be less than the sum of heap limit, Java direct memory, and code cache size.

  • Heap limit – To run the server.

  • Java direct memory – To execute queries.

  • Code cache size – To cache data.

    The value for this parameter is auto-computed based on the heap size and cannot exceed 1 GB. The cache size cannot be configured.

Configuring memory for the Data Engine pod

Important: If you scale Data Engine to more pods, each of them will have the same memory limits. For example, if you have two pods with the limit of 16 GB, the platform will set 32 GB as the limit (16 GB x 2).

You can choose one of the following approaches to memory configuration:

Method 1: Use default values

You can leave default values if at least 14 GB of system memory is available:

  • Java direct memory = 8 GB

  • Heap limit = 4 GB

  • Maximum cumulative memory = 13 GB (to cover heap & direct plus 1 GB for cache)

Method 2: Set all memory options manually

You can define all the memory limits manually. For example, you can use the following values if at least 22 GB of memory is available:

  • Java direct memory = 16 GB

  • Heap limit = 4 GB

  • Maximum cumulative memory = 21 GB (to cover heap & direct plus 1 GB for cache)

Method 3: Set only the cumulative memory

You can specify the maximum memory only to autocalculate other values:

  • Maximum cumulative memory = 24 GB

  • Autoconfigure heap & direct = On

    In this case, the system automatically allocates the best values for heap limit and Java direct memory.

Check the Data Engine memory allocations in the log

You can check the Data Engine memory allocations by using the log for the respective pod.

  1. Navigate to Kubernetes Dashboard.

  2. Go to Workloads > Pods.

  3. Click the data engine pod.

  4. In the upper-right corner of the toolbar, click View logs.

  5. Navigate the log file to the beginning and view the memory allocations.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.