Configuring SoftLayer image flavors

Flavors represent the capacity of images, including memory, storage space, and processor capacity. You must configure a set of flavors for SoftLayer®.

Before you begin

Configure the cloud discovery service. See Configuring the cloud discovery service.

About this task

After you configure flavors, you can select a flavor at provisioning time to specify the size of the environment.

Procedure

  1. Open the cloud discovery service configuration file. If you do not have a cloud discovery service configuration file, see Configuring the cloud discovery service.
  2. In the section of this file that is labeled softlayer, add flavors. Each flavor has the following parameters:
    flavor
    The name of the flavor. This name appears in the list of flavors when you provision the environment.
    memory
    The amount of memory in megabytes.
    disk
    The size of the storage in gigabytes.
    vcpu
    The number of virtual CPUs.
    For example, the following code creates five flavors:
    "softlayer": {
        "flavors": [
            {
                "flavor": "m1.tiny",
                "memory": 1024,
                "disk": 20,
                "vcpu": 1
            },
            {
                "flavor": "m1.small",
                "memory": 2048,
                "disk": 20,
                "vcpu": 2
            },
            {
                "flavor": "m1.medium",
                "memory": 4096,
                "disk": 40,
                "vcpu": 2
            },
            {
                "flavor": "m1.large",
                "memory": 8192,
                "disk": 80,
                "vcpu": 4
            },
            {
                "flavor": "m1.xlarge",
                "memory": 16384,
                "disk": 100,
                "vcpu": 8
            }
        ]
    }
  3. Save the file and restart the cloud discovery service. To restart the cloud discovery service, see Stopping the blueprint designer, cloud discovery service, and engine and Stopping the blueprint designer, cloud discovery service, and engine.

Results

Now when you provision environments, the flavors are listed in the Flavor list, as shown in the following figure.
The Provision Blueprint to new Environment window, showing the list of flavors for the cloud

Feedback