Class ContainerResourceConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • vcpusLimit

        public ContainerResourceConfig.Builder vcpusLimit​(Float vcpusLimit)
        The maximum amount of CPUs that can be consumed by the container’s process.

        If you do not set a value, then the process may use all available CPU resources on the container instance.

        CPU usage is defined in terms of logical CPUs. This means that the maximum possible value on an E3 ContainerInstance with 1 OCPU is 2.0.

        Parameters:
        vcpusLimit - the value to set
        Returns:
        this builder
      • memoryLimitInGBs

        public ContainerResourceConfig.Builder memoryLimitInGBs​(Float memoryLimitInGBs)
        The maximum amount of memory that can be consumed by the container’s process.

        If you do not set a value, then the process may use all available memory on the instance.

        Parameters:
        memoryLimitInGBs - the value to set
        Returns:
        this builder