org.apache.jackrabbit.oak.plugins.segment.standby.store.StandbyStoreService.config
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.
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.
Solved! Go to Solution.
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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
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"
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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
Views
Replies
Total Likes