apiserver: Removed remaining ForModel calls #7781

Merged
merged 2 commits into from Aug 24, 2017

Conversation

Projects
None yet
3 participants
Contributor

mjs commented Aug 24, 2017

Description of change

Two apiserver facades were still using ForModel. ForModel is slow and
resource hungry. It is better to use the apiserver's StatePool.

The affected facades are apiserver/facades/client/controller and
apiserver/facades/controller/metricsmanager.

QA steps

This is a fairly safe change. Tested a model migration to be sure.

Documentation changes

N.A.

Bug reference

N.A.

mjs added some commits Aug 24, 2017

apiserver/facades/client/controller: Remove ForModel call
InitiateMigration was calling ForModel when it could easily use the
StatePool instead. ForModel is slow and resource hungry.
apiserver/facades/controller/metricsmanager: Removed ForModel calls
ForModel is slow and resource hungry. It is better to use the
apiserver's StatePool.

axw approved these changes Aug 24, 2017

Contributor

mjs commented Aug 24, 2017

$$merge$$

Contributor

jujubot commented Aug 24, 2017

Status: merge request accepted. Url: http://ci.jujucharms.com/job/github-merge-juju

@jujubot jujubot merged commit 7925396 into juju:develop Aug 24, 2017

1 check passed

continuous-integration/jenkins/pr-merge This commit looks good
Details

@mjs mjs deleted the mjs:apiserver-ForModel-removal branch Aug 24, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment