Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Configuring AEM Standby Instance

Avatar

Level 2

I am working on configuring AEM Author Standby instance using AEM 6.2. The OS is RHEL 7.1

I am using Tark MK as storage and i plan to set up two Authors, one active and the other as a cold standby.

I am following instructions from the Adobe's documentation on this url.

  1. My first question here is : Do the Author Primary and Standby run on the same port (eg 4502) or should i configure the start up scripts for both of them on different ports like:
  • Primary Author -> Working on 4502
  • Standby Author -> Working on 4507

I also see in the adobe documentation that the primary author needs to be configured with an additional run mode (“primary”), which makes it LISTEN on TCP port 8023. Is the assumption correct that this is different from the 4502 http port on which the primary author is running?

Any help on this will be greatly appreciated.

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi Ankur,

yes you would have different ports for the two instances. The config file you have listed is not the same as the example file from the official documentation, you do not include the port number in the primary.host as the sync communication is done on port 8023, as specified in the file. The example from the docs is:

org.apache.jackrabbit.oak.plugins.segment.standby.store.StandbyStoreService.config

     
1
2
3
4
5
6
org.apache.sling.installer.configuration.persist=B"false"
mode="standby"
primary.host="127.0.0.1"
port=I"8023"
secure=B"false"
interval=I"5"

Regards,

Opkar

[1]https://docs.adobe.com/docs/en/aem/6-2/deploy/recommended-deploys/tarmk-cold-standby.html

View solution in original post

4 Replies

Avatar

Level 7

Answer to 1st question:-

Yes both of them can run on same port i.e 4502. How ever on standby very limited osgi services are running due to which you will be able to open only felix console.

Answer 2:-

Primary is basically a run mode, it has no relation with running aem instance port 4502. when to run your jar file by adding this run mode in felix console you can see TCP port 8023 is mapped to this service Apache Jackrabbit Oak TarMK Cold Standby service.

Where as you aem instance is running on 4502.

Hope is clears your all doubts for more info visit below link.

Read more at AEMCQ5Tutorials: Setup TarMK Cold Standby in AEM 6

Avatar

Level 2

Hi Ankur,

Thank you for your response. Your blog is also very informative.

For now, i am setting both Primary and Standby on the same physical machine (our dev server).

In this case, i assume that i will have to provide different http port numbers to my primary and standby right? For example

  • Primary author - http port 4502
  • Standby author - http port 4507

If so i wanted to know how i can deal with the org.apache.jackrabbit.oak.plugins.segment.standby.store.StandbyStoreService.config option. Will the following setting work:

org.apache.sling.installer.configuration.persist=B"false" mode="standby" primary.host="127.0.0.1:4502" port=I"8023" secure=B"false" interval=I"5"

Avatar

Correct answer by
Employee

Hi Ankur,

yes you would have different ports for the two instances. The config file you have listed is not the same as the example file from the official documentation, you do not include the port number in the primary.host as the sync communication is done on port 8023, as specified in the file. The example from the docs is:

org.apache.jackrabbit.oak.plugins.segment.standby.store.StandbyStoreService.config

     
1
2
3
4
5
6
org.apache.sling.installer.configuration.persist=B"false"
mode="standby"
primary.host="127.0.0.1"
port=I"8023"
secure=B"false"
interval=I"5"

Regards,

Opkar

[1]https://docs.adobe.com/docs/en/aem/6-2/deploy/recommended-deploys/tarmk-cold-standby.html

Avatar

Administrator

Hi

Can you please look at the answers posted and let us know if this worked for you or not.

If you have devised another way to resolve the issue, please post it in the community for communities benefit.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni