摘要 |
An invention is provided for creating logical network abstractions of physical networks, and deploying computer services to physical networks based on a specified logical network. In an embodiment, a physical network is divided into one or more logical networks. Upon receiving an indication to deploy a computer service to a logical network, a mapping from that logical network to a sub-network of the physical network is determined, the service is configured to execute on the sub-network of the physical network, and an indication of this configuration of the service is stored. |
主权项 |
1. A method, comprising:
receiving, by one or more computers, across a plurality of sites, an indication of a first and second logical network for a computer service, the computer service to communicate via a first or second physical network; determining, at a first one of the plurality of sites, by the one or more computers, a first sub-network of the first physical network and a first host of the first sub-network based on determining a virtual local area network identifier (VLAN ID) of the first logical network, and determining that the first host of the first sub-network is configured to communicate with the VLAN ID of the first logical network; determining, at a second one of the plurality of sites, by the one or more computers, a second sub-network of the second physical network and a second host of the second sub-network based on determining a VLAN ID of the second logical network, and determining that the second host of the second sub-network is configured to communicate with the VLAN ID of the second logical network; configuring, by the one or more computers, the computer service to execute on the first or second host and to communicate via the first or second sub-network based on determining movement of the computer service to the first or second site; and saving, by the one or more computers, an indication of the configured computer service in a memory. |