[PDB-2435] Only uses Postgres master when querying metrics Created: 2016/02/17  Updated: 2016/04/04  Resolved: 2016/02/22

Status: Closed
Project: PuppetDB
Component/s: None
Affects Version/s: PDB 3.2.3
Fix Version/s: PDB 3.2.4

Type: Bug Priority: Normal
Reporter: Daniele Sluijters Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Story Points: 1
Sprint: PuppetDB 2016-02-24

 Description   

In PuppetDB 3 the code that initialises the metrics endpoints is wired to always talk to the write db causing all those queries to be fired at the master instead of leveraging read replica's when available.

https://github.com/puppetlabs/puppetdb/blob/stable/src/puppetlabs/puppetdb/cli/services.clj#L245


Generated at Sun Aug 25 04:00:54 PDT 2019 using JIRA 7.7.1#77002-sha1:e75ca93d5574d9409c0630b81c894d9065296414.