摘要 |
The present invention relates to the communications and information technology field, and in particular, to a method and an apparatus for configuring a redundancy data center in a cloud computing architecture, so as to solve a problem that overall management of a system is hindered due to poor flexibility of a manner of manually planning a redundancy DC. The method of the present invention includes: receiving a request for configuring a redundancy data center DC for a specified network service NS; acquiring, from an affinity relationship information base of application objects according to the request for configuring a redundancy DC, information about an affinity and/or anti-affinity relationship among application objects that support the specified network service, where application objects having an affinity relationship can be deployed in a same DC, and application objects having an anti-affinity relationship can be deployed in different DCs; and selecting, from deployed DCs, a redundancy DC for the specified network service according to redundancy resource information of the deployed DCs and the acquired information about an affinity and/or anti-affinity relationship. |