I'm editing the Crate.yml
file in order to start a new node, my file is:
cluster.name: name
node.name: "name"
node.master: true
node.data: true
CRATE_HEAP_SIZE: 4g
When setting up Crate
heap with 4g of RAM, it doesn't work when creating the default first node (when Crate
starts) it creates the node with 1gb.
How should I define the heap size in the config file?
Thanks a lot
edit the config file /etc/default/crate and put this code
CRATE_HEAP_SIZE=4g
MAX_OPEN_FILES=65535
MAX_LOCKED_MEMORY=unlimited
edit /etc/security/limits.conf and put this params
crate - nofile 65535
crate - memlock unlimited
finally activate this parameter in the configuration file config.yml
bootstrap.mlockall: true