web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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

I have the same question (0)
  • nmaenpaa Profile Picture
    101,166 Moderator on at

    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?

  • hoang.nguyen83 Profile Picture
    275 on at

    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

  • Suggested answer
    nmaenpaa Profile Picture
    101,166 Moderator on at

    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

    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

  • Verified answer
    nmaenpaa Profile Picture
    101,166 Moderator on at

    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

    Thank you very much Nikolaos

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 679 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 421 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 282 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans