You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the XL with HA architecture, the puppetdb.conf on the compilers in PE Compiler Group B has the certname, master, and replica in the server_list. Since command_broadcast is enabled, the commands will be sent to two PuppetDB instances using the same PostgreSQL instance, increasing load and potentially causing contention without any benefit.
The puppetdb.conf should only have the certname, and master in the server_list for compilers in PE Compiler Group B.
Steps to Reproduce
Provision PE 2019.2.0+ PE XL with HA
Log into a compiler in PE Compiler Group B
Observe the /etc/puppetlabs/puppet/puppetdb.conf has three entries in the server_list.
Environment
Version: 2.1.1
Platform: Any. Tested in EL 7
Additional Context
This happens because $puppet_enterprise::ha_enabled_replicas is automatically merged with the puppetdb_host in puppet_enterprise::profile::master::puppetdb due to PE-27165.
The proposed workaround is to set the following in the enterprise/conf.d/nodes/*.conf, hiera, or console data only for the compilers.
Set ha_enabled_replicas to an empty array for compilers only. We are
already supplying the specific certnames that compilers' PuppetDB
terminus configuration should use.
Describe the Bug
Using the XL with HA architecture, the
puppetdb.conf
on the compilers inPE Compiler Group B
has thecertname
,master
, andreplica
in theserver_list
. Sincecommand_broadcast
is enabled, the commands will be sent to two PuppetDB instances using the same PostgreSQL instance, increasing load and potentially causing contention without any benefit.Example:
Expected Behavior
The
puppetdb.conf
should only have thecertname
, andmaster
in theserver_list
for compilers inPE Compiler Group B
.Steps to Reproduce
PE Compiler Group B
/etc/puppetlabs/puppet/puppetdb.conf
has three entries in theserver_list
.Environment
Additional Context
This happens because
$puppet_enterprise::ha_enabled_replicas
is automatically merged with thepuppetdb_host
inpuppet_enterprise::profile::master::puppetdb
due to PE-27165.The proposed workaround is to set the following in the
enterprise/conf.d/nodes/*.conf
, hiera, or console data only for the compilers.The text was updated successfully, but these errors were encountered: