We have mongo cluster of 2 author instances and the sling jobs distribution is random.
Adobe says, in author cluster by default sling jobs will be distributed to all nodes in the cluster. But in our case sling jobs are randomly distributing i.e. sometimes jobA is getting distributed two author instances and sometimes same jobA with different payload map is executing in only author1 instance but not in author2. Any suggestions for this random behaviour?
Thanks,
Ramesh.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @arunpatidar @giuseppebag ,
I have debugged the issue further and found that the jobs were distributing to other instance because of load. A job with same topic was running on author1 hence job2 was distributed to author2.
To know or if someone is looking for execution of jobs in same instance where they are created then they can create a job queue for the topic and enable queue.preferRunOnCreationInstance=B"true" then it will ensure job running in same instance instead of load distributing.
Not sure if this can help or not.
The client sending an event has to mark an event to be distributed in a cluster by setting the event.distribute in the event properties
Consider also the following steps:
Hi @arunpatidar @giuseppebag ,
I have debugged the issue further and found that the jobs were distributing to other instance because of load. A job with same topic was running on author1 hence job2 was distributed to author2.
To know or if someone is looking for execution of jobs in same instance where they are created then they can create a job queue for the topic and enable queue.preferRunOnCreationInstance=B"true" then it will ensure job running in same instance instead of load distributing.
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies