Support aarch64 builders for jemalloc usage

Change-Id: I0af7a221c02615aa81eb5c90bbafdd36b37d25e2
This commit is contained in:
David Shrewsbury 2019-05-06 13:29:05 -04:00
parent 56f8af9a88
commit bb0f56209d
2 changed files with 6 additions and 0 deletions

View File

@ -37,8 +37,10 @@ class nodepool::builder(
# This requires custom packages which aren't build for arm64; if we
# ever have a need we can re-evaluate this.
if ($::architecture == 'aarch64') {
$aarch64 = true
$support_vhd = false
} else {
$aarch64 = false
$support_vhd = true
}

View File

@ -9,4 +9,8 @@ export <%= key %>='<%= @environment[key] %>'
PIDFILE=/var/run/nodepool/nodepool-builder.pid
<% end -%>
DAEMON_ARGS="-c /etc/nodepool/nodepool.yaml -l /etc/nodepool/builder-logging.conf --build-workers <%= @build_workers %> --upload-workers <%= @upload_workers %>"
<% if @aarch64 -%>
export LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libjemalloc.so.1
<% else %>
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.1
<% end -%>