Moe
05/11/2026, 10:45 AMapply_prep($targets)
$kickstart_files = [
'/root/anaconda-ks.cfg',
'/root/dnf-install.log',
'/root/install-callhome.post.log',
'/root/install.post.log',
'/root/install.postnochroot.log',
'/root/original-ks.cfg',
]
$result = apply($targets, '_catch_errors' => true) {
file { $kickstart_files:
ensure => absent,
}
}
my targets are fetched via a pql query in the plan.
I want to run this plan on all our nodes attached to this PE instance. It works for PQL queries which return < 50 nodes. But as soon as I try to run this plan on all our nodes > 400 I just get a generic error saying
{
"msg": "Aborted due to orchestrator shutdown",
"kind": "puppetlabs.orchestrator/job-aborted",
"details": {}
}
I was under the impression that the puppet apply runs are batched according to the normal max limit of nodes, or is this really at the same time and I need to manually create batch groups of nodes and then iterate over them?bastelfreak
05/11/2026, 11:28 AMMoe
05/11/2026, 11:39 AMtail -f /var/log/puppetlabs/orchestration-services/*.log | tee plan.logMoe
05/11/2026, 11:43 AMMoe
05/11/2026, 11:44 AMorchestration-services[2513182]: Aborting due to java.lang.OutOfMemoryError: Java heap space
orchestration-services[2513182]: #
orchestration-services[2513182]: # A fatal error has been detected by the Java Runtime Environment:
orchestration-services[2513182]: #
orchestration-services[2513182]: # Internal Error (debug.cpp:362), pid=2513182, tid=2517982
orchestration-services[2513182]: # fatal error: OutOfMemory encountered: Java heap space
orchestration-services[2513182]: #
orchestration-services[2513182]: # JRE version: OpenJDK Runtime Environment (17.0.18+8) (build 17.0.18-internal+8-adhoc..jdk17u-jdk-17.0.18-8)
orchestration-services[2513182]: # Java VM: OpenJDK 64-Bit Server VM (17.0.18-internal+8-adhoc..jdk17u-jdk-17.0.18-8, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
orchestration-services[2513182]: # Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h %d %F" (or dumping to //core.2513182)
orchestration-services[2513182]: #
orchestration-services[2513182]: # An error report file with more information is saved as:
orchestration-services[2513182]: # /var/log/puppetlabs/orchestration-services/orchestration-services_err_pid2513182.logMoe
05/11/2026, 11:44 AMbastelfreak
05/11/2026, 11:46 AMMoe
05/11/2026, 11:46 AMMoe
05/11/2026, 11:53 AMpuppet_enterprise::profile::orchestrator::java_args: '{"Xmx": "2G", "Xms": "2G"}'
in hiera?!Moe
05/11/2026, 11:54 AMbastelfreak
05/11/2026, 11:55 AMMoe
05/11/2026, 11:56 AMpuppet_enterprise::profile::orchestrator::java_args:
Xmx: '2G'
Xms: '2G'Moe
05/11/2026, 11:56 AMbastelfreak
05/11/2026, 11:56 AMMoe
05/11/2026, 11:59 AMMoe
05/11/2026, 12:16 PMMoe
05/11/2026, 12:18 PMbastelfreak
05/11/2026, 12:22 PMMoe
05/11/2026, 12:26 PMbastelfreak
05/11/2026, 12:32 PMbastelfreak
05/11/2026, 12:33 PMMoe
05/11/2026, 12:35 PMMarty Ewings
05/11/2026, 12:43 PMMoe
05/11/2026, 12:49 PMMarty Ewings
05/11/2026, 12:50 PMCVQuesty
05/11/2026, 12:50 PMpuppet infra tune or some such? (I havenβt worked with PE in quite some time)Marty Ewings
05/11/2026, 12:51 PMCVQuesty
05/11/2026, 12:51 PMCVQuesty
05/11/2026, 12:51 PMMarty Ewings
05/11/2026, 12:52 PMMarty Ewings
05/11/2026, 12:56 PMMoe
05/11/2026, 12:56 PMMoe
05/11/2026, 12:56 PMpuppet_enterprise::profile::database::shared_buffers: 6760MB
puppet_enterprise::puppetdb::command_processing_threads: 3
puppet_enterprise::profile::puppetdb::java_args:
Xms: 3380m
Xmx: 3380m
puppet_enterprise::profile::orchestrator::jruby_max_active_instances: 3
puppet_enterprise::profile::orchestrator::java_args:
Xms: 3380m
Xmx: 3380m
puppet_enterprise::profile::console::java_args:
Xms: 1024m
Xmx: 1024m
puppet_enterprise::master::host_action_collector::java_args:
Xms: 512m
Xmx: 512m
puppet_enterprise::master::puppetserver::jruby_max_active_instances: 8
puppet_enterprise::profile::master::java_args:
Xms: 8192m
Xmx: 8192m
puppet_enterprise::master::puppetserver::reserved_code_cache: 768m
puppet_infrastructure_tune::metadata:
pe_version: 2025.10.0
tune_date: '2026-05-11'
looks promisingMoe
05/11/2026, 12:57 PMsame search is also here https://portal.perforce.com/s/product/a3g4X000009wMFBQA2/puppetThat link doesn't lead anywhere to me even though I am logged in
Marty Ewings
05/11/2026, 12:58 PMMarty Ewings
05/11/2026, 12:58 PMMoe
05/11/2026, 1:08 PMMoe
05/11/2026, 1:18 PMSharpie
05/11/2026, 3:58 PMcertname that the Orchestrator needs to target activity. E.g: nodes[certname] {...}Moe
05/11/2026, 3:58 PMMoe
05/11/2026, 3:59 PMMoe
05/13/2026, 8:47 AM# Puppet infrastructure tune
puppet_enterprise::profile::database::shared_buffers: 4096MB
puppet_enterprise::puppetdb::command_processing_threads: 3
puppet_enterprise::profile::puppetdb::java_args:
Xms: 3380m
Xmx: 3380m
puppet_enterprise::profile::orchestrator::jruby_max_active_instances: 3
puppet_enterprise::profile::orchestrator::java_args:
'Xms': 6144m
'Xmx': 6144m
puppet_enterprise::profile::console::java_args:
Xms: 1024m
Xmx: 1024m
puppet_enterprise::master::host_action_collector::java_args:
Xms: 512m
Xmx: 512m
puppet_enterprise::master::puppetserver::jruby_max_active_instances: 4
puppet_enterprise::profile::master::java_args:
'Xms': 6144m
'Xmx': 6144m
puppet_enterprise::master::puppetserver::reserved_code_cache: 768m
puppet_infrastructure_tune::metadata:
pe_version: 2025.10.0
tune_date: '2026-05-11'
ran the plan a couple times and it worked. Obviously it takes a looooong time if I run it on all nodes rather than a subset with a different query. For example if I run it on half the nodes it's sub 5min and on all it took 23min π
Thank's all for chiming in and trying to troubleshoot this with me π°