vService
vService
Bases: VirtualEntity
, ABC
Source code in PyCloudSim\entity\v_service.py
ip_address
property
The ip address of the vService.
ms
property
The associated vMicroservice.
ms_id
property
The id of the associated vMicroservice.
__init__(ms, ports=[], at=simulation.now, after=None, label=None)
Base class for virtual services.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ms |
vMicroservice
|
the associated vMicroservice. |
required |
ports |
List[int]
|
the exposed ports for vContainers. Defaults to []. |
[]
|
at |
int | float | Callable[..., Any]
|
same as entity. Defaults to simulation.now. |
now
|
after |
Entity | List[Entity] | None
|
same as entity. Defaults to None. |
None
|
label |
str | None
|
same as entity. Defaults to None. |
None
|
Source code in PyCloudSim\entity\v_service.py
creation()
loadbalancer()
abstractmethod
vServiceBestFit
Bases: vService
vService with best fit loadbalancer.
Source code in PyCloudSim\entity\v_service.py
vServiceRandom
Bases: vService
vService with random loadbalancer.
Source code in PyCloudSim\entity\v_service.py
vServiceRoundRobin
Bases: vService
vService with round robin loadbalancer.
Source code in PyCloudSim\entity\v_service.py
vServiceWorstFit
Bases: vService
vService with worst fit loadbalancer.