Method and device for realizing cluster dynamic scaling in distributed framework
A distributed and distributed computing technology, applied in the network field, can solve the problems of waste of cluster resources, high cost of cluster scaling, and low degree of intelligence, so as to achieve targeted adjustment, avoid cluster resource shortage, and improve flexibility Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0033] Embodiment 1. A method for implementing cluster dynamic scaling in a distributed framework.
[0034] figure 1 It is a flowchart of a method for realizing cluster dynamic scaling in the distributed framework of this embodiment, and figure 1 The shown method mainly includes: step S100 and step S110. The method described in this embodiment is usually executed in a computer device. Preferably, the method described in this embodiment can be executed in a server, a desktop computer, and other network devices. For example, the method is remotely connected to a cluster Executed in servers, desktop computers, and other network devices. next to figure 1 Each step in is explained separately.
[0035] S100. Determine that there is a cluster dynamic scaling requirement.
[0036] The cluster in this embodiment may be a Hadoop cluster, or a cluster based on other distributed frameworks. The cluster in this embodiment includes: multiple slave nodes, that is, Slave nodes. The slave...
Embodiment 2
[0074] Embodiment 2, a method for realizing cluster dynamic scaling in a Hadoop cluster.
[0075] The Hadoop cluster in this embodiment is built through a virtual machine. A specific process of using a virtual machine to build a Hadoop cluster through remote control is as follows: figure 2 shown, and figure 2 The illustrated method includes the following steps:
[0076] S200. Create a corresponding number of virtual machines based on the number of slave nodes included in the preset Hadoop cluster. In the process of creating each virtual machine, the basic information allocated for the virtual machine usually includes: LAN IP address (such as 192.168.0.62 ), the login account of the virtual machine (such as root) and the login password of the virtual machine;
[0077] S210. After successfully creating each virtual machine, continuously try to log in to each virtual machine through remote login to confirm that the network of each virtual machine is connected and available; ...
Embodiment 3
[0090] Embodiment 3, a method for realizing dynamic expansion and contraction of a cluster in a distributed framework.
[0091] The method for realizing cluster dynamic scaling in the distributed framework of this embodiment is executed by a remote control node that remotely communicates with the cluster, and the process of the method in this embodiment is as follows Figure 5 shown.
[0092] Figure 5 In S500, the remote control node receives the computing resource A1 occupied by all computing tasks in the current cluster and the storage space A2 occupied by the data stored by all the slave nodes in the current cluster reported by the master node of the cluster.
[0093] S510. The remote control node acquires the total computing resources Z1 that all slave nodes in the current cluster can provide and the total storage resources that all slave nodes in the current cluster can provide from the locally maintained computing resource group information and storage resource group i...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com