Skip to content

Commit

Permalink
Update JMX exporter to 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hammerhead committed May 3, 2024
1 parent fe1cae4 commit 319287d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions aws/scripts/cloud-init-cratedb-rpm.tftpl
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ write_files:
# Heap Size (defaults to 256m min, 1g max)
CRATE_HEAP_SIZE=${crate_heap_size}g

# Additional Java OPTS
CRATE_JAVA_OPTS="-javaagent:/usr/share/crate/crate-jmx-exporter-1.0.0.jar=8080"
# Additional Java options
CRATE_JAVA_OPTS="-javaagent:/usr/share/crate/crate-jmx-exporter-1.1.0.jar=8080"
owner: root:root
path: /etc/default/crate
permissions: "0755"
Expand All @@ -105,7 +105,7 @@ runcmd:
- dnf install -y crate
- chown -R crate:crate /opt/data /etc/crate
- chmod 700 /opt/data
- curl --output-dir /usr/share/crate -O https://repo1.maven.org/maven2/io/crate/crate-jmx-exporter/1.0.0/crate-jmx-exporter-1.0.0.jar
- curl --output-dir /usr/share/crate -O https://repo1.maven.org/maven2/io/crate/crate-jmx-exporter/1.1.0/crate-jmx-exporter-1.1.0.jar
- systemctl enable crate
- systemctl start crate
- bash /opt/deployment/user_provisioning.sh "${crate_protocol}" "${crate_user}" "${crate_pass}" && rm -f /opt/deployment/user_provisioning.sh
Expand Down
6 changes: 3 additions & 3 deletions aws/scripts/cloud-init-cratedb-tar.tftpl
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ write_files:
# Heap Size (defaults to 256m min, 1g max)
CRATE_HEAP_SIZE=${crate_heap_size}g

# Additional Java OPTS
CRATE_JAVA_OPTS="-javaagent:/opt/crate/crate-jmx-exporter-1.0.0.jar=8080"
# Additional Java options
CRATE_JAVA_OPTS="-javaagent:/opt/crate/crate-jmx-exporter-1.1.0.jar=8080"
owner: root:root
path: /etc/default/crate
permissions: "0755"
Expand Down Expand Up @@ -157,7 +157,7 @@ runcmd:
- tar -xf crate-*.tar.gz
- mv -n crate-*/* /opt/crate
- 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.0.0/crate-jmx-exporter-1.0.0.jar
- 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
Expand Down

0 comments on commit 319287d

Please sign in to comment.