Interface WorkloadProvisionProvider.ResizeFacet

Enclosing interface:
WorkloadProvisionProvider

public static interface WorkloadProvisionProvider.ResizeFacet
Allows the workload to be resized
Since:
0.15.3
  • Method Details

    • resizeWorkload

      ServiceResponse resizeWorkload(Instance instance, Workload workload, ResizeRequest resizeRequest, Map opts)
      Request to scale the size of the Workload. Most likely, the implementation will follow that of resizeServer as the Workload usually references a ComputeServer. It is up to implementations to create the volumes, set the memory, etc on the underlying ComputeServer in the cloud environment. In addition, implementations of this method should add, remove, and update the StorageVolumes, StorageControllers, ComputeServerInterface in the cloud environment with the requested attributes and then save these attributes on the models in Morpheus. This requires adding, removing, and saving the various models to the ComputeServer using the appropriate contexts. The ServicePlan, memory, cores, coresPerSocket, maxStorage values defined on ResizeRequest will be set on the Workload and ComputeServer upon return of a successful ServiceResponse
      Parameters:
      instance - to resize
      workload - to resize
      resizeRequest - the resize requested parameters
      opts - additional options
      Returns:
      Response from API