Cluster capacity expansion and contraction method and device, storage medium and electronic device
The embodiment of the invention provides a capacity expansion and shrinkage method and device of a cluster, a storage medium and an electronic device.The capacity expansion and shrinkage method of the cluster comprises the steps that the current number of current working nodes in the current cluster...
Gespeichert in:
Hauptverfasser: | , , , , , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The embodiment of the invention provides a capacity expansion and shrinkage method and device of a cluster, a storage medium and an electronic device.The capacity expansion and shrinkage method of the cluster comprises the steps that the current number of current working nodes in the current cluster is obtained; according to the current number and current parameters of the current cluster, i is larger than 1, and the current parameters comprise the number of the fragments which are not processed in the current cluster and the current memory utilization rate of the current cluster. Through the method and the device, the problem that the execution efficiency of the application task is influenced or resources are wasted due to unreasonable resource allocation when the application task is executed in the prior art is solved.
本发明实施例提供了一种集群的扩缩容方法、装置、存储介质及电子装置,其中,该集群的扩缩容方法包括:获取当前集群内当前工作节点的当前数量;根据当前数量、当前集群的当前参数,对当前集群进行第i次扩缩容,其中,i大于1,当前参数包括:当前集群中未处理完的分片的数量、当前集群的当前内存利用率。通过本发明,解决了相关技术中存在的在执行应用任务时,由于资源分配不合理会影响应用任务的执行效率或造 |
---|