#NEWLINE# @ staticmethod #NEWLINE# def allocate( resource_desc ) : #NEWLINE# #INDENT# '\n        Determine best resource for `resource_desc` and deploy.\n        In the case of a tie, the first allocator in the allocators list wins.\n        Returns ``(proxy-object, server-dict)``.\n\n        resource_desc: dict\n            Description of required resources.\n        ' #NEWLINE# ResourceAllocationManager . validate_resources ( ram ) #NEWLINE# ram = ResourceAllocationManager . _get_instance ( ) #NEWLINE# with ResourceAllocationManager . _lock : #NEWLINE# #INDENT# return ram . _allocate ( resource_desc )