How does AEM determine with config is applied (config using runmodes)?

Avatar

Avatar
Validate 25
Level 4
jayv25585659
Level 4

Likes

46 likes

Total Posts

131 posts

Correct reply

0 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Validate 25
Level 4
jayv25585659
Level 4

Likes

46 likes

Total Posts

131 posts

Correct reply

0 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Contributor 2
Ignite 5
View profile
jayv25585659
Level 4

16-06-2021

example:

- config.author

  - com.myhost.my-config-here.xml

- config.author.prod

  - com.myhost.my-config-here.xml

 

My AEM instance has the following runmodes (via /system/console/status-slingsettings):

Run Modes = [crx3tar-nofds, prod, s7connect, crx3, nosamplecontent, author]

 Which of my om.myhost.my-config-here.xml config is applied to the instance? thank you.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Applaud 25
Level 10
asutosh_jena
Level 10

Likes

593 likes

Total Posts

705 posts

Correct reply

207 solutions
Top badges earned
Applaud 25
Give Back 100
Boost 500
Affirm 100
Ignite 1
View profile

Avatar
Applaud 25
Level 10
asutosh_jena
Level 10

Likes

593 likes

Total Posts

705 posts

Correct reply

207 solutions
Top badges earned
Applaud 25
Give Back 100
Boost 500
Affirm 100
Ignite 1
View profile
asutosh_jena
Level 10

16-06-2021

Hi @jayv25585659 

 

In AEM, every run mode tries to find out the best possible match available for a configuration.
If multiple configurations for the same PID are applicable like in your case here, the configuration with the highest number of matching run modes is applied. i.e. prod and author here.
So configuration from config.author.prod will be picked.
 
Reference:
 
Thanks!

Answers (1)

Answers (1)

Avatar

Avatar
Boost 100
Level 6
Dipti_Chauhan
Level 6

Likes

114 likes

Total Posts

136 posts

Correct reply

40 solutions
Top badges earned
Boost 100
Give Back 10
Affirm 25
Boost 50
Boost 25
View profile

Avatar
Boost 100
Level 6
Dipti_Chauhan
Level 6

Likes

114 likes

Total Posts

136 posts

Correct reply

40 solutions
Top badges earned
Boost 100
Give Back 10
Affirm 25
Boost 50
Boost 25
View profile
Dipti_Chauhan
Level 6

16-06-2021

Hi @jayv25585659 

  In you case 

- config.author.prod

  - com.myhost.my-config-here.xml  will be applied. AEM will look for maximum match.