The PI Analysis Service and PI Notifications Service work in the same way as any service configured with Windows Failover Cluster. This is purely Microsoft's technology.
I personally really liked this Youtube video when I was researching how Windows Failover Clustering works:
The video gives a high level explanation of how clustering works and walks through the configuration.
There is also a tone of documentation on the microsoft website: Windows Clustering (Windows)
Hope this helps,