Open tomasz-sobczyk-wttech opened 1 year ago
thanks for reporting, will be implemented within this month ;)
when deploying a package that is changing some configuration of ResourceResolverFactory
then AEM may restart many bundles and become unstable for a longer time. but... this usually is a one-time situation for the first package deployment. maybe config activation could be smart that activates depending on the first or next package deployment?
thinking about sth like that:
then such foo
pkg settings will be automatically in-use basing on path pattern and the fact if package was deployed before or not, AEM_INSTANCE_CHECK_PACKAGE=foo sh aemw pkg deploy --url ...
will activate the settings explicitly
@tomasz-sobczyk-wttech , @maciej-majchrzak-wttech WDYT?
or maybe just there should be 2 different done_thresholds
done_threshold:
first: 5
next: 2
This first
config is very confusing for me. Why it's even needed? Ideally, I'd like to specify three types of checks:
aemw instance await
aemw instance await
. Additionally, in case of problematic packages they could use the third types of check, which is...done_threshold
configuration is fine here.regarding second point - will be addressed by #159 generic check will have a form of current configuration/options that AEMC gives currently; third point is a thing to address here / missing feature that we are planning to implement. I guess within next weeks I will find some time to have it done.
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:
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.