Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

is there options/config to at least limit jetstream RAM usage on server #21

Closed
tpihl opened this issue Dec 31, 2019 · 2 comments
Closed
Assignees

Comments

@tpihl
Copy link

tpihl commented Dec 31, 2019

I would like to set some arbirtary max RAM for nats-server while allow unlimited disk space.

This would also be useful/needed for kubernetes resource limits and allocations.

@derekcollison
Copy link
Member

This already exists internally but has not been surfaced as a config endpoint, etc for a server. We will surface something soon for sure, and its implemented that way already under the covers.

@ripienaar
Copy link
Collaborator

// enables jetstream, an empty block will enable and use defaults
jetstream {
    // jetstream data will be in /data/nats-server/jetstream
    store_dir: "/data/nats-server"

    // 1GB
    max_memory_store: 1073741824

    // 10GB
    max_file_store: 10737418240
}

note these are limits of the storage, not of all the various go routines and memory structures that support the operations of jetstream

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants