Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Architecture for Database HA

(0) ShareShare
ReportReport
Posted on by 275

Hello guys,

I am running AX 2012 R2

At the moment, I am running 02 AOS servers as a cluster and 03 servers in AlwaysOn Cluster. I would like to ask if it is possible to build 01 more AOS server for batch jobs, reporting but it is only connected to 01 of my Database servers, not connect directly to Cluster's listener.

In each AOS server, I have 02 AOS instances: one is AOS instance itself and one is AOS cluster

Goals:

The AOS Database is running on database server 01 (primary node), backup is on database DB02, batch job should be connected Database server 03

Any suggestion would be highly appreciated

Regards,

Hoang Nguyen

  • hoang.nguyen83 Profile Picture
    275 on at
    RE: Architecture for Database HA

    Thank you very much Nikolaos

  • Verified answer
    nmaenpaa Profile Picture
    101,156 Moderator on at
    RE: Architecture for Database HA

    Hi,

    I think that SSAS processing and some use cases of SSRS are the only AX2012 related workload that you can move to the read-only replica.

    please check this blog: community.dynamics.com/.../high-availability-best-practices-for-dynamics-ax-2012

    Limitation: Secondary Replicas are Read only and therefore cannot be used for standard Dynamics AX 2012 Reporting Services. Change Tracking is not allowed on Secondary Replicas so Management Reporter Data Mart, Retail and Entity Store must still point to Primary Replicas databases. However, ad hoc SSRS reports not using the data provider class and standard Dynamics AX 2012 Business Intelligence objects support the Secondary Replicas: you need to create a Read Only Intent on the SQL Listener to route "read only" queries to the Secondary Replicas.

    (..)

     Analysis Services natively supports Windows Server Cluster Service (WSCS) so you also leverage the AlwaysOn Availability Group.

    Tips: you can have near real time data without impacting the operational database. Because processing and querying are read-only workloads you can configure the data source connection to use a readable secondary replica.

  • hoang.nguyen83 Profile Picture
    275 on at
    RE: Architecture for Database HA

    That clears my mind a lot Nikolaos. Thank you very much

    How about reporting? Let's say Management Reporter

    What I am trying here is utilize the resource of Database server as much as possible since there is no use on secondary Database server but a lot of workload on primary Database server

    Regards,

    Hoang Nguyen

  • Suggested answer
    nmaenpaa Profile Picture
    101,156 Moderator on at
    RE: Architecture for Database HA

    Batch jobs are not read only, they always write to the database - at least the batch job status (and batch job history, if enabled). And SysUserSessions.

    Anything that goes through the AOS must be considered as read/write so you can't point it to a secondary read only replica.

  • hoang.nguyen83 Profile Picture
    275 on at
    RE: Architecture for Database HA

    Thank you Nikolaos

    It is Always On availability group so each node has its own storage

    We have very high workload on the Database primary node. Sometime, it even caused some blocking process so we would like to transfer the batch job load on secondary Database server as it only read, no write

    Regards,

    Hoang Nguyen

  • nmaenpaa Profile Picture
    101,156 Moderator on at
    RE: Architecture for Database HA

    Perhaps this question is more suitable for SQL Server communities, since it's general for any application that uses a SQL Database. As far as I understand, you should always connect through the cluster listener address.

    What kind of AlwaysOn cluster is it? Do all the nodes share the same storage or not?

    May I also ask, what is the intention behind this kind of setup? What are you trying to achieve?

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,933 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,801 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans