A method for selecting a media processing unit (3, 3A, 3B, 3D; 4, 4A, 4B, 4D; 10, 11, 12) performed in a controller node of a distributed cloud, the distributed cloud comprising two or more media processing units (3, 3A, 3B, 3D; 4, 4A, 4B, 4D; 10, 11, 12) configurable to handle media processing required by a media service in respective media service instances, each media processing unit comprising a data center (4, 4A, 4B, 4D, 10, 11, 12), the method comprising: - receiving, from a communication device (6, 6A, 6B, 6C, 6D), a request for the media service, - obtaining, for each media processing unit (3, 3A, 3B, 3D; 4, 4A, 4B, 4D; 10, 11, 12), at least one configurable parameter value of a parameter relating to handling of the media service, and - selecting, based on the at least one parameter value, a media processing unit (3, 3A, 3B, 3D; 4, 4A, 4B, 4D; 10, 11, 12) for processing the requested media service for the communication device (6, 6A, 6B, 6C, 6D), wherein the selecting comprises: i. determining, for each media processing unit (3, 3A, 3B, 3D; 4, 4A, 4B, 4D; 10, 11, 12), a score by summing all parameter values for a respective media processing unit (3, 3A, 3B, 3D; 4, 4A, 4B, 4D; 10, 11, 12), the respective sum constituting a respective score for each media processing unit (3, 3A, 3B, 3D; 4, 4A, 4B, 4D; 10, 11, 12), ii. selecting a first data center (3, 3A, 3B, 3D; 4, 4A, 4B, 4D; 10, 11, 12) having the highest score, iii. determining that a maximum number of media server instances have been created in the selected first data center (4, 4A, 4B, 4D; 10, 11, 12) and that all said media server instances are fully loaded, iv. selecting a second data center (4, 4A, 4B, 4D; 10, 11, 12) having the next highest score, and v. connecting the communication device (6, 6A, 6B, 6C, 6D) to a media server instance of the selected second data center (4, 4A, 4B, 4D; 10, 11, 12), wherein the media server instance is configured to handle said media processing required by the media service. - receiving, from a communication device (6, 6A, 6B, 6C, 6D), a request for the media service, - obtaining, for each media processing unit (3, 3A, 3B, 3D; 4, 4A, 4B, 4D; 10, 11, 12), at least one configurable parameter value of a parameter relating to handling of the media service, and - selecting, based on the at least one parameter value, a media processing unit (3, 3A, 3B, 3D; 4, 4A, 4B, 4D; 10, 11, 12) for processing the requested media service for the communication device (6, 6A, 6B, 6C, 6D), wherein the selecting comprises: i. determining, for each media processing unit (3, 3A, 3B, 3D; 4, 4A, 4B, 4D; 10, 11, 12), a score by summing all parameter values for a respective media processing unit (3, 3A, 3B, 3D; 4, 4A, 4B, 4D; 10, 11, 12), the respective sum constituting a respective score for each media processing unit (3, 3A, 3B, 3D; 4, 4A, 4B, 4D; 10, 11, 12), ii. selecting a first data center (3, 3A, 3B, 3D; 4, 4A, 4B, 4D; 10, 11, 12) having the highest score, iii. determining that a maximum number of media server instances have been created in the selected first data center (4, 4A, 4B, 4D; 10, 11, 12) and that all said media server instances are fully loaded, iv. selecting a second data center (4, 4A, 4B, 4D; 10, 11, 12) having the next highest score, and v. connecting the communication device (6, 6A, 6B, 6C, 6D) to a media server instance of the selected second data center (4, 4A, 4B, 4D; 10, 11, 12), wherein the media server instance is configured to handle said media processing required by the media service. i. determining, for each media processing unit (3, 3A, 3B, 3D; 4, 4A, 4B, 4D; 10, 11, 12), a score by summing all parameter values for a respective media processing unit (3, 3A, 3B, 3D; 4, 4A, 4B, 4D; 10, 11, 12), the respective sum constituting a respective score for each media processing unit (3, 3A, 3B, 3D; 4, 4A, 4B, 4D; 10, 11, 12), ii. selecting a first data center (3, 3A, 3B, 3D; 4, 4A, 4B, 4D; 10, 11, 12) having the highest score, iii. determining that a maximum number of media server instances have been created in the selected first data center (4, 4A, 4B, 4D; 10, 11, 12) and that all said media server instances are fully loaded, iv. selecting a second data center (4, 4A, 4B, 4D; 10, 11, 12) having the next highest score, and v. connecting the communication device (6, 6A, 6B, 6C, 6D) to a media server instance of the selected second data center (4, 4A, 4B, 4D; 10, 11, 12), wherein the media server instance is configured to handle said media processing required by the media service.