question

Atasha-4036 avatar image
0 Votes"
Atasha-4036 asked YuhanDeng-MSFT commented

Cluster API to Detect Failover Events

I want to create an application that will listen or detect failover events like when a cluster has failed over to another node (Event ID 1641). Is there any cluster API to catch this event like GetClusterNotify?

windows-server-clustering
· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,
I would like to check if the issue has been fixed? If yes, please help accept answer. If you need any additional assistance, please feel free to feedback.
Best Regards,
Danny

0 Votes 0 ·

Hi,

Sorry, no. I used GetClusterNotify and GetClusterNotifyV2 to detect the failover. However, I want to know the meaning or value of the buffer used in GetClusterNotifyV2. Do you have any idea on this? Thank you

0 Votes 0 ·

Hi,
I would like to check if the issue has been fixed? If yes, please help accept answer. If you need any additional assistance, please feel free to feedback.
Best Regards,
Danny

0 Votes 0 ·

Hi,

Yes but we used different approach. Thanks for all the help

0 Votes 0 ·

Hi,
Thank you for your reply.
Best regards,
Danny

0 Votes 0 ·
YuhanDeng-MSFT avatar image
0 Votes"
YuhanDeng-MSFT answered

Hi,
Hope this will help:
https://docs.microsoft.com/en-us/azure/databricks/dev-tools/api/latest/clusters

Thanks for your time.
Best regards,
Danny


If the Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

YuhanDeng-MSFT avatar image
0 Votes"
YuhanDeng-MSFT answered Atasha-4036 commented

Hi,
About the other question, you can refer to this article:
https://docs.microsoft.com/en-us/windows/win32/api/clusapi/nf-clusapi-getclusternotifyv2

Thanks for your time.
Best regards,
Danny


If the Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

Yes, I am referring to that article, however I don't understand the use of the buffer parameter. Does it have structure?

0 Votes 0 ·

Hi,
Hope this will help explain the use and value of buffers:
https://docs.microsoft.com/en-us/sql/odbc/reference/develop-app/buffers?view=sql-server-ver15
94451-image.png
94360-image.png

For parameters, I didn’t find any official documents, you might need to turn to some third party links.

Thanks for your understanding.
Best regards,
Danny


If the Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 Votes 0 ·
image.png (19.4 KiB)
image.png (30.1 KiB)

Hi,

Thank you so much for the information. However, what I want to know is the value of the buffer used when GetClusterNotify is called. In my case, the value of the buffer I got is 0100000003000400240000053007400610074007500730049006E0066006F0072006D006100740069006F006E0000000600010008000000010000000000000000000000F078C4A0. The filterFlag is CLUSTER_CHANGE_CLUSTER_STATE_V2

0 Votes 0 ·
YuhanDeng-MSFT avatar image
0 Votes"
YuhanDeng-MSFT answered

Hi Atasha,
This might help:
https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-cmrp/d529b7a9-9f5b-4191-b093-dbb38ffa4277

Thanks for your time.
Best regards,
Danny


If the Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.