Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

How to keep 2 AOS in Sync?

(0) ShareShare
ReportReport
Posted on by 1,180

We have 2 Production AOS servers.  When we promote code, how should we make sure it gets onto both servers?

They both point to the same application file system.

The problem is that we will promote code to one AOS, and compile the project, but not all of the changes get into the secondary AOS.  For instance today a Table had 5 fields with UNKNOWN as the name in the secondary AOS, but the correct name in the primary AOS.

We are getting alot of conflicting answers:

Compile the project you are importing?, or full compile?, or full SQL sync? or restart AOS and delete .aoi file.???

*This post is locked for comments

  • Chris R Tilley Profile Picture
    Chris R Tilley 339 on at
    Re: Re: How to keep 2 AOS in Sync?

    An option to consider (if you have the available server resource) is to create another separate environment in which you replicate your Production environment (application, Database and patch versions) and import the projects and run a full compile there.

    If you then copy your live  app to this environment you can import projects to the preproduction environment and check that they compile OK.  You can then run a full compile on this preprod environment and then at a convenient time copy this entire app into your Live environment (you will need to stop both AOS servers).

     There are at least two benefits to this: if you have moved a project which depends on updated objects in your Dev environment which are not moving to production in that release you could have compile errors which might require a rollback (you may have good dev processes to avoid this though), also it takes the full compile offline and thus minimizes downtime.

     Cheerio,

    Chris

     ps. I'd agree with definitely delete the aoi file too, and I'd always suggest only having one AOS up if you were to keep importing projects directly into Live. You'll at least have label issues if you don't do this, and it may be possible to end up running different versions of the same objects at worst.  I'm not sure about that, but best not to risk it I think!

  • Martin Dráb Profile Picture
    Martin Dráb 230,503 Most Valuable Professional on at
    Re: How to keep 2 AOS in Sync?

    It should work if you compile your objects on each AOS separately, but it is higly recommended to restart the cluster completely. Don't also forget that the project compilation doesn't have to be enough (sometimes you have to compile also parent/child classes and so on), therefore it is very dangerous not to compile the whole application.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: How to keep 2 AOS in Sync?

     Stop the service, delete the .aoi file, restart the service then do a full SQL synch on both boxes.

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,503 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans