Skip to content

Commit

Permalink
Align settings
Browse files Browse the repository at this point in the history
  • Loading branch information
hammerhead committed May 3, 2024
1 parent 319287d commit 0a5435c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
7 changes: 2 additions & 5 deletions aws/scripts/cloud-init-cratedb-rpm.tftpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ yum_repos:
enabled: true
gpgcheck: true
gpgkey: https://cdn.crate.io/downloads/yum/RPM-GPG-KEY-crate
type: rpm-md
autorefresh: true
name: CrateDB stable releases

packages:
Expand Down Expand Up @@ -81,11 +83,6 @@ write_files:
path: /etc/crate/crate.yml
permissions: "0755"
- content: |
# Maximum locked memory size. Set to "unlimited" if you use the
# bootstrap.mlockall option in crate.yml. You must also set
# CRATE_HEAP_SIZE.
MAX_LOCKED_MEMORY=unlimited

# Recommended memory settings for production:
# - assign half of the OS memory to CrateDB
# (e.g. 26g, stay below ~30G to benefit from CompressedOops)
Expand Down
6 changes: 0 additions & 6 deletions aws/scripts/cloud-init-cratedb-tar.tftpl
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,6 @@ write_files:
path: /etc/sysctl.d/crate.conf
permissions: "0755"
- content: |
# Maximum locked memory size. Set to "unlimited" if you use the
# bootstrap.mlockall option in crate.yml. You must also set
# CRATE_HEAP_SIZE.
MAX_LOCKED_MEMORY=unlimited

# Recommended memory settings for production:
# - assign half of the OS memory to CrateDB
# (e.g. 26g, stay below ~30G to benefit from CompressedOops)
Expand Down Expand Up @@ -159,7 +154,6 @@ runcmd:
- mv crate-*/config/log4j2.properties /opt/crate/config
- curl --output-dir /opt/crate -O https://repo1.maven.org/maven2/io/crate/crate-jmx-exporter/1.1.0/crate-jmx-exporter-1.1.0.jar
- chown -R crate:crate /opt/crate
- sysctl -w vm.max_map_count=262144
- systemctl daemon-reload
- systemctl enable crate
- systemctl start crate
Expand Down

0 comments on commit 0a5435c

Please sign in to comment.