(Reuters) - Apollo Global Management LLC said on Friday it would buy cloud services provider Rackspace Hosting Inc in a deal valued at $4.3 billion, as the private-equity firm increases its investments in the technology sector.