Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-5482

Should a not found resource type be marked as such?

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 4.5.0
    • Component/s: Docs
    • Labels:
      None
    • Template:
    • Sub-team:
    • Story Points:
      3
    • Release Notes:
      New Feature
    • Release Notes Summary:
      Hide
      A new setting has been added called always_retry_plugins. It defaults to true, which is generally the correct behavior for the agent. Puppetserver will set it to false to take advantage of some additional caching for failures during loading of types. Users that are using passenger will want to set this in their config.ru by adding a line such as {code}Puppet[:always_retry_plugins] = false{code}.
      The always_retry_plugins setting also replaces the always_cache_features setting, which is now deprecated. If users are setting always_cache_features to true, they will want to replace that with 'always_retry_plugins=false'.
      Show
      A new setting has been added called always_retry_plugins. It defaults to true, which is generally the correct behavior for the agent. Puppetserver will set it to false to take advantage of some additional caching for failures during loading of types. Users that are using passenger will want to set this in their config.ru by adding a line such as {code}Puppet[:always_retry_plugins] = false{code}. The always_retry_plugins setting also replaces the always_cache_features setting, which is now deprecated. If users are setting always_cache_features to true, they will want to replace that with 'always_retry_plugins=false'.

      Description

      If a Ruby type is not available in the file system, every time it is found by the parser, the Autoloader will scan all over again the directories in search_directories for it. This generates tons of stat()s that could potentially be saved.

      I have a patch to propose already, please watch this space.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              matthaus Past Haus
              Reporter:
              nbarrientos Nacho Barrientos
              QA Contact:
              Eric Thompson
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support