Support aarch64 builders for jemalloc usage
Change-Id: I0af7a221c02615aa81eb5c90bbafdd36b37d25e2
This commit is contained in:
parent
56f8af9a88
commit
bb0f56209d
@ -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
|
||||
}
|
||||
|
||||
|
@ -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 -%>
|
||||
|
Loading…
x
Reference in New Issue
Block a user