Planning resource capacity with resource capacity planning constraints
About this task
Unless you specify otherwise, capacity constraints are not additive. For example, if a server has 2 gigabytes of memory, it can host any number of applications as long as none of the individual applications requires more than 2GB. The total memory requirements of the applications may be more than 2GB, but this sum does not invalidate the constraint.
If you want the capacity constraints to be additive, you can specify that the application components each require exclusive access to a certain amount of system resources. For example, if an application requires access to 2GB of memory for its own use at all times, you can specify its need for exclusive access to that memory.
When you create a resource capacity planning constraint on a unit, you identify a capability that provides the resource that the application component needs. In the prior example, an application component required a certain amount of memory. On a piece of hardware, the memorySize attribute on the server.Server capability specifies the amount of memory that is available the system. In this way, the topology editor compares the memory specified in the resource capacity planning constraint on the application component with the amount of memory specified on the server's memorySize attribute.

Similarly, you can specify that an application component requires a certain amount of processing capacity on the server by specifying the CPU Speed attribute on the server.Server capability.

As another example, you can specify the disk space that an application requires. However, you must use units that have capabilities with attributes that specify disk space. For example, you can add an os.DataFileUnit unit to represent a particular file or group of files, and host that unit on a os.FileSystemUnit unit. You can add a resource capacity planning constraint to the os.DataFileUnit that specifies a certain amount of free disk space on the freeSpace attribute of the os.fileSystemUnit unit.

Procedure
The following steps illustrate one way to create a resource capacity planning constraint:






