as we all know, before the start of a new application project in the real world, we should configure the basic environment according to the requirements of the application environment, such as network, hardware architecture, etc. So in the Windows Azure environment, before we start an application project, we need to configure the virtual network and affinity group according to the requirements of the application environment. This blog post will be a detailed introduction to the virtual network, the affinity group.
Virtual network
In the cloud, a variety of cloud services and virtual machines still need to communicate with each other, in order to complete the delivery and processing of information
virtual Networks carry the role of communication between the various services on Azure. In addition, users can extend services deployed within the enterprise network to the Azure cloud through a virtual network that provides encrypted data transfer and is secure, allowing you to build a hybrid cloud environment where legacy on-premises business applications can use the resources of the cloud.
Let's look at how to create a virtual network
Select the "Network" option in the Azure Portal and click "Create Virtual Network" on the right.
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/7E/F2/wKioL1cN53LRQD_pAACTUGGWRSI943.png "title=" 1.png " alt= "Wkiol1cn53lrqd_paactuggwrsi943.png"/>
Enter a name for the virtual network and select a network location
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7E/F2/wKioL1cN54Ggt3RNAABHSlCLmvY697.png "title=" 2.png " alt= "Wkiol1cn54ggt3rnaabhslclmvy697.png"/>
Optional whether to add DNS server, which is not filled out by default, uses the name resolution feature provided by Azure. If name resolution is required between the virtual network and the local network, you need to specify the local DNS server, which requires a point-to- point VPN connection, and the configuration of the site-to-site VPN connection will be introduced in subsequent blog post
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/7E/F2/wKioL1cN55KBnoFMAAB2SQcNWWg716.png "title=" 3.png " alt= "Wkiol1cn55kbnofmaab2sqcnwwg716.png"/>
Configure virtual network access space to add different address spaces
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7E/F2/wKioL1cN56DCjwAoAADpOajWOQs305.png "title=" 4.png " alt= "Wkiol1cn56dcjwaoaadpoajwoqs305.png"/>
Complete the creation of the virtual network
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/7E/F4/wKiom1cN5vWgw_o6AACp714azzc994.png "title=" 5.png " alt= "Wkiom1cn5vwgw_o6aacp714azzc994.png"/>
Affinity Group
you can improve performance by allowing for lower network latency between the resources of the same affinity group, for example: currently Azure offers two regions of "North China", "East China", which can be simply understood as having two data centers (but the real meaning may be more than two)
We are deploying a new application that includes the front end A and database b, we choose both a and B are deployed in "East China" then these two a and b virtual machines may be in one of the data centers, But the scope of the data center can span several provinces and cities. Then the communication between a and B may have to be done across several provinces and cities, which undoubtedly increases the network latency, with the concept of an affinity group, set a and B to belong to the same affinity group, so that a or B in the same location, for example, on different physical machines in the same computer room, or simply they are all on the same physical machine, greatly reducing the network communication overhead between them.
New Affinity Group
Select Settings, affinity groups tab
Click "Add affinity Group"
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7E/F4/wKiom1cN5wHyST69AACoYJuYPWE904.png "title=" 6.png " alt= "Wkiom1cn5whyst69aacoyjuypwe904.png"/>
Enter the affinity group name and description
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7E/F2/wKioL1cN58ah3GYUAADYWQpWLEo652.png "title=" 7.png " alt= "Wkiol1cn58ah3gyuaadywqpwleo652.png"/>
To complete the creation of an affinity group
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/7E/F2/wKioL1cN59iBy-yQAACcULEpQjg383.png "title=" 8.png " alt= "Wkiol1cn59iby-yqaacculepqjg383.png"/>
This article is from the "Shentaohuang" blog, make sure to keep this source http://1392814.blog.51cto.com/1382814/1763406
Introduction to Windows Azure Virtual networking and affinity groups