摘要 |
The present application provides a method and device for growing or shrinking a computer cluster. The present application comprises: acquiring real-time performance parameters of respective servers in a computer cluster; and increasing or decreasing, according to a current total service demand of the computer cluster and the real-time performance parameters of all of the servers in the computer cluster, the number of servers responding to the current total service demand in the computer cluster. The present invention can acquire a performance change condition of respective servers in a computer cluster in real-time, then learn, according to the performance change condition, an operating condition of the computer cluster, and automatically increase or decrease, according to the operating condition of the computer cluster and in the computer cluster, the number of servers responding to a current total service demand, thus realizing automatic and efficient growing or shrinking of the computer cluster. The present embodiment is particularly suitable for a computer cluster having a huge access traffic. |