Cloud Computing Patterns, Mechanisms > Virtual Server and Hypervisor Connectivity and Management Patterns > Virtual Server-to-Virtual Server Affinity
Virtual Server-to-Virtual Server Affinity (Erl, Naserpour)
How can a group of virtual servers and or a bundled workload be guaranteed to be hosted by the same hypervisor?
![Virtual Server-to-Virtual Server Affinity Virtual Server-to-Virtual Server Affinity](https://patterns.arcitura.com/wp-content/uploads/2018/08/virtual_server_to_virtual_server_affinity.png)
Problem
A group of virtual servers or bundled workload needs to be hosted together on a particular host.
Solution
Affinity rules are used to ensure that the virtual server group or bundled workload is always hosted by and moved to the same destination host.
Application
Affinity rules are applied and configured via the application of the Virtual Server-to-Virtual Server Affinity pattern, and controlled and dedicated by the VIM server.
Mechanisms
Hypervisor, Live VM Migration, Virtual Infrastructure Manager
Compound Patterns
Burst In, Burst Out to Private Cloud, Burst Out to Public Cloud, Cloud Authentication, Cloud Balancing, Elastic Environment, Infrastructure-as-a-Service (IaaS), Isolated Trust Boundary, Multitenant Environment, Platform-as-a-Service (PaaS), Private Cloud, Public Cloud, Resilient Environment, Resource Workload Management, Secure Burst Out to Private Cloud/Public Cloud, Software-as-a-Service (SaaS)
![Virtual Server-to-Virtual Server Affinity: Virtual Servers A and B are powered on at Hypervisor A, which abruptly fails. Virtual Server-to-Virtual Server Affinity: Virtual Servers A and B are powered on at Hypervisor A, which abruptly fails.](https://patterns.arcitura.com/wp-content/uploads/2018/08/fig3-47.png)
Virtual Servers A and B are powered on at Hypervisor A, which abruptly fails.
![Virtual Server-to-Virtual Server Affinity: After Hypervisor A experiences failure, both virtual servers are powered on at Hypervisor B. Virtual Server-to-Virtual Server Affinity: After Hypervisor A experiences failure, both virtual servers are powered on at Hypervisor B.](https://patterns.arcitura.com/wp-content/uploads/2018/08/fig4-20.png)
After Hypervisor A experiences failure, both virtual servers are powered on at Hypervisor B.
This pattern is covered in CCP Module 17: Advanced Cloud Virtualization.
For more information regarding the Cloud Certified Professional (CCP) curriculum, visit www.arcitura.com/ccp.