Skip to content

Speed up installation of a large number of packages #155

@tomasz-sobczyk-wttech

Description

@tomasz-sobczyk-wttech

Overview
Today every package installation has it's own health checks - there is a param called done_threshold that defines how many times we check if system is stable before announcing package is installed.

Reducing the value of this parameter to sth like 2 is a good idea to speed things up. But!
There are cases where you might want to double-triple-quadruple check the stability - example is when your package contaings Sling Maping changes. Such a change can cause an asynchronously invoked (event driven) restart of most-if-not-all AEM bundles.

How to eat the cake and have the cake? A.k.a. potential solution:
Introduce (apart from existing global configuration for done_threshold) a new configuration where I will be able to:

  1. Define package name (regular expression)
  2. Define done_threshold for that particular package
    This should be an array type of data (multiple configurations allowed)
    Code should verify the package being installed against the list provided, first matched configuration should be picked up.
    If not matching configuration is found - it should pick up the value from global config.

This configuration can be still overwritten from the command line (CLI direct params should always take precedense)

Regexp?
Why regexp for package name: Package names have versions in them often etc - let's keep it open ended.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions