Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Set up batch to run on aos A and/or B

Posted on by 1,189

Hi Martin,

I have two AOS instances, and batch group linked to both AOS, how can I make a batch to run on both AOS's, whenever AOS1 is down to run on AOS2 and vice versa, because it is only working on AOS2 despite that batch group is linked to both AOS.

*This post is locked for comments

  • MDeeb Profile Picture
    MDeeb 1,189 on at
    RE: Set up batch to run on aos A and/or B

    Thanks a lot again Nikolaos for clarifying the CIL, yes we were only generating CIL on one instance without turning off the other instance.

    Regards,

  • Verified answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Set up batch to run on aos A and/or B

    That's true, the batches won't work if you don't have any CIL generated. I wonder how you could have failed CIL in your prod environment but still were using it for actual operations. Definetely asking for trouble.

    Seems your environment maintenance process has some flaws if your one AOS didn't have functional CIL and the other did.

    When you deliver code to prod, you must shut down all AOSes. Assuming you use modelstore delivery (MS recommendation) all AOSes get the CIL from model database when they start. If you use some other delivery process, you must run full CIL generation on one AOS, and all other AOS instances must be switched off. After succesful CIL generation, you start other AOSes and they fetch the CIL from the model database.

    If you fail to do this, you face issues like the one you had. Or some AOSes run different CIL version than others.

  • MDeeb Profile Picture
    MDeeb 1,189 on at
    RE: Set up batch to run on aos A and/or B

    Thanks a lot Nikolaos, we had to do full CIL on AOS1 in order to run batch jobs on it, it was not running batches before of previous failed CIL.

    Regards,

  • Verified answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Set up batch to run on aos A and/or B

    All AOS servers that are configured as batch AOS will look for Waiting batch jobs that have such batch group that is configured for processing for that AOS.

    So nothing is routed from the first AOS to the second AOS. Both AOSes just look for batch jobs that they could start processing.

  • MDeeb Profile Picture
    MDeeb 1,189 on at
    RE: Set up batch to run on aos A and/or B

    Does it by default routes the batch job to second AOS incase the first is stopped and vice versa ?

    Thank you,

  • MDeeb Profile Picture
    MDeeb 1,189 on at
    RE: Set up batch to run on aos A and/or B

    Thanks a lot Nikolaos for your reply and for separating my thread, yes both instances are selected as batch servers.

    Regards,

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: AOS as Load Balancer and AOS dedicated for Batch process

    It seems you posted in a very old discussion and your question was not directly related to that discussion. I separated your question into it's own thread.

    Do you have batch processing enabled for both AOSes in Server Configuration form in System Administration module?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans