Skip to content

RANGER-5775: update docker setup for low footprint of Ranger services, 256mb by default - #1198

Open
mneethiraj wants to merge 1 commit into
apache:masterfrom
mneethiraj:RANGER-5775
Open

RANGER-5775: update docker setup for low footprint of Ranger services, 256mb by default#1198
mneethiraj wants to merge 1 commit into
apache:masterfrom
mneethiraj:RANGER-5775

Conversation

@mneethiraj

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Reduced memory use for Ranger core Docker containers by standardizing on 256 MB JVM heap per service (configurable via .env).

  • added per-service RANGER_*_MAX_HEAP variables in .env (admin, usersync, tagsync, pdp, kms, audit ingestor/dispatcher).

    • RANGER_ADMIN_MAX_HEAP
    • RANGER_USERSYNC_MAX_HEAP
    • RANGER_TAGSYNC_MAX_HEAP
    • RANGER_PDP_MAX_HEAP_SIZE
    • RANGER_KMS_MAX_HEAP
    • RANGER_AUDIT_INGESTOR_MAX_HEAP
    • RANGER_AUDIT_DISPATCHER_MAX_HEAP
  • docker-compose passes these env vars into each container

  • updated service start scripts to read heap from env when set; otherwise keep existing defaults (1g for core services)

  • optional metaspace tuning via RANGER_JVM_METASPACE / RANGER_JVM_MAX_METASPACE

How was this patch tested?

Verified that all Ranger services startup successfully with 256mb max-heap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant