Project

General

Profile

Actions

Bug #6856

closed

Importing single environments not faster than importing all

Added by Florian Sachs over 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Importers
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

I am building our new production environment based on Foreman 1.4, puppet 2.6 on a RHEL6 machine. Right now, there are 11 environments on the puppet machine (smart_proxy 1) Based on what we have now in our production (Foreman 1.1, puppet 3.0) systems, I expect us to have about 40 environments.

On the old system, a "Import all environments" runs for about 8 (!!!) minutes. I was very happy, when I discovered the new possibility to import only a specfific environment via the API, which could speed up our development turn around time significally.

The problem is, that importing a single environment takes as long as importing all environments:

Import the Environment Number 22 takes 1:22 ::

Started POST "/api/smart_proxies/1/environments/22/import_puppetclasses" for 10.x.x.x at 2014-07-31 10:18:33 +0200
Processing by Api::V2::EnvironmentsController#import_puppetclasses as JSON
  Parameters: {"apiv"=>"v2", "smart_proxy_id"=>"1", "id"=>"22", "environment"=>{}}

Import all environments take 1:18 ::

Started POST "/api/smart_proxies/1/import_puppetclasses" for 10.x.x.x at 2014-07-31 10:20:20 +0200
Processing by Api::V2::SmartProxiesController#import_puppetclasses as JSON
  Parameters: {"apiv"=>"v2", "id"=>"1", "smart_proxy"=>{}}

Shouldn't importing only one environment be significally faster than importing all environments?

regards,
florian

Actions

Also available in: Atom PDF