Monitoring Maintenance Tasks in AlwaysOn ClustersAvailability Group configuration & licencingAlwaysOn AG,...

Venezuelan girlfriend wants to travel the USA to be with me. What is the process?

What does “the session was packed” mean in this context?

How much of data wrangling is a data scientist's job?

Why didn't Boeing produce its own regional jet?

How badly should I try to prevent a user from XSSing themselves?

Can I run a new neutral wire to repair a broken circuit?

I would say: "You are another teacher", but she is a woman and I am a man

Cursor Replacement for Newbies

Could the museum Saturn V's be refitted for one more flight?

How to show a landlord what we have in savings?

How do conventional missiles fly?

Is there an expression that means doing something right before you will need it rather than doing it in case you might need it?

What are some good books on Machine Learning and AI like Krugman, Wells and Graddy's "Essentials of Economics"

Forgetting the musical notes while performing in concert

If human space travel is limited by the G force vulnerability, is there a way to counter G forces?

Ambiguity in the definition of entropy

What about the virus in 12 Monkeys?

iPad being using in wall mount battery swollen

What exploit Are these user agents trying to use?

Which is the best way to check return result?

What mechanic is there to disable a threat instead of killing it?

Expand and Contract

Do scales need to be in alphabetical order?

Are there any examples of a variable being normally distributed that is *not* due to the Central Limit Theorem?



Monitoring Maintenance Tasks in AlwaysOn Clusters


Availability Group configuration & licencingAlwaysOn AG, DTC with failoverDoes failed task considered to be run to completion in SQL Server maintenance plan terminology?Failover Cluster and AlwaysOn Availability Groups across Data CentersManual Failover with AlwaysOn availability groupScheduling index rebuild jobsAlways On Listener Behavior - DBs removed from groupAlwaysOn - Running SQL Agent Jobs on Secondary read-only node writing audit information to databaseBackups with Split Availability GroupsLoad balancing Availability groups with SQL Server Standard













0















I have an environment with multiple AGs on a single server and they encounter a split situation in which some end up on one node and some end up on the other node (in a failover event, perhaps). When maintenance tasks (the basic gamut of reindexing, update, etc.) execute on these nodes, they will only effectively perform operations on databases which are read_write on the primary side of their respective AGs. This causes the job to fail since the databases are read_only on the secondaries. Therefore, in a split AG situation, both nodes will always show failed maintenance in the job history.



Needless to say, it is difficult to monitor these clusters. I have proposed two possible solutions to management. We either script the maintenance tasks using DBCC commands for the individual databases based on their updateability properties, or we simply limit ourselves to one AG per server. They don't like either solution. Does anyone know of a way I can keep the built-in SQL Server maintenance tasks and have them target only the primary databases?









share



























    0















    I have an environment with multiple AGs on a single server and they encounter a split situation in which some end up on one node and some end up on the other node (in a failover event, perhaps). When maintenance tasks (the basic gamut of reindexing, update, etc.) execute on these nodes, they will only effectively perform operations on databases which are read_write on the primary side of their respective AGs. This causes the job to fail since the databases are read_only on the secondaries. Therefore, in a split AG situation, both nodes will always show failed maintenance in the job history.



    Needless to say, it is difficult to monitor these clusters. I have proposed two possible solutions to management. We either script the maintenance tasks using DBCC commands for the individual databases based on their updateability properties, or we simply limit ourselves to one AG per server. They don't like either solution. Does anyone know of a way I can keep the built-in SQL Server maintenance tasks and have them target only the primary databases?









    share

























      0












      0








      0








      I have an environment with multiple AGs on a single server and they encounter a split situation in which some end up on one node and some end up on the other node (in a failover event, perhaps). When maintenance tasks (the basic gamut of reindexing, update, etc.) execute on these nodes, they will only effectively perform operations on databases which are read_write on the primary side of their respective AGs. This causes the job to fail since the databases are read_only on the secondaries. Therefore, in a split AG situation, both nodes will always show failed maintenance in the job history.



      Needless to say, it is difficult to monitor these clusters. I have proposed two possible solutions to management. We either script the maintenance tasks using DBCC commands for the individual databases based on their updateability properties, or we simply limit ourselves to one AG per server. They don't like either solution. Does anyone know of a way I can keep the built-in SQL Server maintenance tasks and have them target only the primary databases?









      share














      I have an environment with multiple AGs on a single server and they encounter a split situation in which some end up on one node and some end up on the other node (in a failover event, perhaps). When maintenance tasks (the basic gamut of reindexing, update, etc.) execute on these nodes, they will only effectively perform operations on databases which are read_write on the primary side of their respective AGs. This causes the job to fail since the databases are read_only on the secondaries. Therefore, in a split AG situation, both nodes will always show failed maintenance in the job history.



      Needless to say, it is difficult to monitor these clusters. I have proposed two possible solutions to management. We either script the maintenance tasks using DBCC commands for the individual databases based on their updateability properties, or we simply limit ourselves to one AG per server. They don't like either solution. Does anyone know of a way I can keep the built-in SQL Server maintenance tasks and have them target only the primary databases?







      availability-groups maintenance monitoring





      share












      share










      share



      share










      asked 5 mins ago









      Aaron RheamsAaron Rheams

      514




      514






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "182"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f233902%2fmonitoring-maintenance-tasks-in-alwayson-clusters%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Database Administrators Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f233902%2fmonitoring-maintenance-tasks-in-alwayson-clusters%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Anexo:Material bélico de la Fuerza Aérea de Chile Índice Aeronaves Defensa...

          Always On Availability groups resolving state after failover - Remote harden of transaction...

          update json value to null Announcing the arrival of Valued Associate #679: Cesar Manara ...