1. A method of performing a task in a computing system of the type that includes a plurality of processing units, a plurality of storage adapters, and a plurality of network adapters distributed within a plurality of nodes, the method comprising: in response to receiving the task: identifying a target storage resource and a target network resource corresponding to the task from among a plurality of storage resources and network resources; identifying one or more processing units among the plurality of processing units with sufficient capacity to perform the task, wherein each of the one or more identified processing units is connected to more than one storage adapter of the plurality of storage adapters, and each of the one or more identified processing units is connected to more than one network adapter of the plurality of network adapters; determining a storage affinity for each of the plurality of storage adapters with respect to each of the one or more identified processing units, each storage affinity indicating an affinity for a respective processing unit to use a respective storage adapter to connect to the target storage resource when performing the task; determining a network affinity for each of the plurality of network adapters with respect to each of the one or more identified processing units, each network affinity indicating an affinity for a respective processing unit to use a respective network adapter to connect to the target network resource when performing the task; determining a host affinity for each of the one or more identified processing units to perform the task with the target storage resource and the target network resource based upon a combination of the storage affinities and the network affinities; and selecting a particular processing unit from the one or more identified processing units to perform the task based at least in part on the host affinity determined for each of the identified processing units.