主权项 |
1. A method of accessing a service provided by a producer virtual machine in an overlay network, the method comprising:
by a consumer system host comprising one or more processors, the consumer system host configured to host one or more consumer virtual machines, wherein at least one of the consumer virtual machines is associated with a first overlay network:
receiving a request to access a service at a producer system from a consumer virtual machine, the consumer virtual machine hosted by the consumer system host, wherein the request includes an inner header, the inner header comprising a consumer virtual machine address associated with the consumer virtual machine and a target virtual address;accessing a lease pool associated with the consumer virtual machine, the lease pool comprising a set of leased producer virtual machines leased on behalf of the consumer virtual machine;selecting from the lease pool a leased producer virtual machine from which to access the service;replacing the target virtual address in the inner header with a producer virtual machine address associated with the leased producer virtual machine;identifying a producer system host associated with the leased producer virtual machine, the producer system host configured to host one or more producer virtual machines, wherein at least one of the producer virtual machines is associated with the first overlay network;encapsulating the request with an outer header comprising a producer system host address associated with the producer system host and a consumer system host address associated with the consumer system host; andproviding the request to the producer system host via a network, thereby enabling the producer system host to process the request. |