The invention provides a container cloud elastic scaling method and device. The device comprises a micro-service, a
cluster node resource, an automatic scaling controller, a node controller and a node
resource pool. The method comprises the following steps: judging whether the
resource utilization rate of the micro service meets a preset capacity expansion condition or not, if so, calculating resources required by capacity expansion, judging whether residual nodes in
cluster node resources meet the resources required by capacity expansion or not, and if not, calculating a minimum specification required by capacity expansion according to the resources required by capacity expansion; and selecting a node meeting the minimum specification from the node
resource pool as a new node according to a minimum specification request required by capacity expansion, and adding the new node into
cluster node resources. The node expansion is realized in advance by automatically monitoring the
cluster state and the current
resource utilization rate of the micro-service, the two-stage elastic capacity expansion and shrinkage are realized, the rapid capacity expansion is realized, the
business requirements are better met, the capacity is automatically reduced after the
service flow is reduced, and the cost is saved.