Powered by Zoomin Software. For more details please contactZoomin

MarkLogic® Server on Kubernetes

Set huge pages for MarkLogic StatefulSet

  • Last Updated: April 14, 2026
  • 1 minute read
    • MarkLogic Server
    • Documentation

The use of huge pages in a namespace is controlled with ResourceQuota similar to other compute resources like cpu or memory using the hugepages-<size> token.

Note:

Huge pages do not support overcommit.

In the values.yaml file for Helm Charts and sample.yaml file for Operator, huge pages can be set:

## Manage HugePages 
## ref: https://v1-23.docs.kubernetes.io/docs/tasks/manage-hugepages/scheduling-hugepages/
hugepages:
  enabled: true
  mountPath: /dev/hugepages


resources:
# Marklogic pods' resource requests and limits
# ref: https://kubernetes.io/docs/user-guide/compute-resources/
  limits:
    hugepages-2Mi: 1Gi
    memory: 8Gi
  requests:
    memory: 8Gi

Check the error log

After setting the huge pages, check the error log to verify that the huge pages are detected. You should see an entry in the log indicating the number of huge pages detected:

2023-02-06 16:01:40.190 Info: Linux Huge Pages: detected 1280, using 1280, recommend 1280 to 1820

Check resource usage at the node level

To verify huge pages are working as expected, check the resource usage:

To verify huge pages are working as expected, check the resource usage:

TitleResults for “How to create a CRG?”Also Available inAlert