Cloud computing power node-based nearby distribution method and storage medium
By obtaining the user's geographical location and computer room resource configuration, and performing intelligent sorting and allocation based on network latency, it solves the problem of being unable to automatically match the lowest latency cluster in existing technology, and achieves more efficient and smooth cloud computing services.
Patent Information
- Application Number
- CN202411229219.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-03
- Publication Date
- 2024-10-15
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing cloud computing node allocation methods cannot accurately identify and automatically match the cluster nodes with the lowest latency, resulting in user experience affected by network latency, high bandwidth requirements and low resource utilization.
By obtaining the user's IP address, calculating its geographical location, and prioritizing it based on the resource configuration and network delay of all computer rooms, it determines whether the user and the computer room are in the same area, and performs intelligent computing resource allocation to ensure resource utilization and Delay in meeting user needs.
It improves user service quality, reduces unnecessary bandwidth and resource expenditures, and makes cloud computing services more efficient, smooth and economical.
Smart Images

Figure CN118784649A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network information processing technology, and in particular to a local allocation method and storage medium based on cloud computing power nodes. Background Art
[0002] The allocation method of cloud computing nodes refers to a strategy that uses intelligent algorithms to provide users with the nearest or optimal data processing nodes in the cloud service network. This method aims to shorten the user's access path, thereby reducing the delay in the transmission process. However, under existing technical conditions, there is a common problem: due to the inability to accurately identify and automatically match the cluster nodes that can provide the lowest latency, the user experience is often affected by network latency and is unsatisfactory, and higher bandwidth requirements may be required to ensure smooth use; on the other hand, this inaccurate allocation mechanism also leads to a certain degree of resource waste, because not all occupied nodes can efficiently use their resources to provide the required service level.
[0003] Therefore, it is necessary to design a new allocation method to solve the above technical problems. Summary of the invention
[0004] The present invention provides a method for local allocation based on cloud computing power nodes, which is used to solve the technical problems mentioned in the above background technology.
[0005] To solve the above problems, the present invention provides the following technical solution: comprising the following steps: Step S1: Obtain the user's IP address and calculate the user's location address through the geolocation database; Step S2: Query and obtain the location addresses and resource configurations of all computer rooms; Step S3: performing first priority sorting according to the resource configuration of the computer room; Step S4: performing a second priority sorting based on the network delay between the user and the computer room; Step S5: Determine whether the user's location address and the computer room's location address are in the same area. If they are in the same area, the priority is increased; Step S6: Allocate computing resources to users based on comprehensive priorities.
[0006] Further, step S1 includes: S1.1: Get the public IP address from the user request; S1.2: Query the latitude and longitude corresponding to the IP address through the geolocation database; S1.3: Verify the validity of the IP address; S1.4: Calculate the user's location address based on the latitude and longitude information.
[0007] Further, step S2 includes: S2.1: Query the location information and resource configuration data of all computer rooms recorded in the database; S2.2: convert the longitude and latitude of the location address of each computer room so as to compare it with the location address of the user; S2.3: Obtain resource status information of each computer room, including CPU usage, memory usage, and storage capacity; S2.4: Regularly update the location information and resource status of the computer room to ensure the real-time and accuracy of the allocation strategy.
[0008] Furthermore, the first priority sorting in step S3 includes: S3.1: Read the resource configuration information P of the CPU, memory and storage of each computer room; S3.2: Calculate the resource weight W of each computer room, W = α*P(CPU) + β*P(Mem) + γ*P(Sto), where α+β+γ=1; S3.3: Sort the computer rooms according to their resource weight from high to low.
[0009] Furthermore, when calculating resource weights, when a certain resource ratio is lower than a preset minimum value, the resource ratio is not included in the weight calculation.
[0010] Further, step S4 includes: S4.1: Select multiple fixed network test nodes as measurement reference points; S4.2: Use PING or Traceroute tools to measure the network latency of each computer room and calculate the average round-trip time (RTT); S4.3: Use the RTT value as a latency indicator, with low latency being the priority.
[0011] Furthermore, the area determination in step S5 includes: S5.1: Define the geographical area of each computer room on the GIS platform; S5.2: Calculate the distance between the user location and the boundary of the computer room. If the distance is within a preset threshold, they are considered to be in the same area.
[0012] Further, step S6 includes: S6.1: Select a computer room that meets the user's needs according to the sorting results to allocate computing power; S6.2: Make final resource allocation while meeting resource and delay requirements Furthermore, the resource allocation process in S6.2 includes real-time monitoring of the allocation results, and if it is detected that the delay exceeds the target value, the resources are reallocated.
[0013] The present invention also discloses a computer-readable storage medium, which stores a computer program. The program can be executed by a processor to implement the cloud computing node-based local allocation method as described above.
[0014] Compared with the prior art, the present invention has at least the following beneficial effects: The method of the present invention improves the user service quality while reducing unnecessary bandwidth and resource expenses by accurately managing the resource status and geographic positioning of the computer room and performing intelligent calculation analysis, making the cloud computing service more efficient, smooth and economical. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0016] Figure 1 The present invention is a flowchart of a method for nearby allocation based on cloud computing nodes. DETAILED DESCRIPTION
[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the protection scope of the present invention. It is understood that the drawings are only provided for reference and explanation, and are not used to limit the present invention.
[0018] The present invention discloses a method for nearby allocation based on cloud computing nodes. For details, please refer to Figure 1 , specifically discloses the following steps: Step S1: Obtain their public IP address through the user's request. For example, a player from China wants to access the cloud server to run his game account. The platform first needs to receive data packets from the user's device and parse out its public IP address. The subsequent operation is to call the geolocation database to determine the location information associated with this address, such as the longitude and latitude corresponding to the IP address, so as to derive the approximate geographical location. For example, this IP may point to a location in Hangzhou, Zhejiang Province, China. In order to ensure the validity of the location information, additional verification will be performed. For example, through information from other channels, confirm that the location corresponding to the IP is correct.
[0019] S2: After determining the user's current location, it is necessary to query the data records of all available data centers, which usually means reading a centralized or distributed database, where the location information of each data center and the current configuration and usage details are stored, including CPU usage, remaining storage capacity, and free memory ratio. For example, a computer room is located in Jinan City, Shandong Province and currently has a CPU utilization rate of 95%, while another computer room has a higher free space in other parts of the same city. The system will automatically convert this location address into longitude and latitude values, such as the specific geographic coordinates of a city in Shandong Province, so as to accurately match the user's location later. In addition, it is necessary to ensure that all computer room location data is synchronized in a timely manner, and generally maintain the real-time nature of the information through regular refresh updates.
[0020] Step S3: Based on the collected location and hardware parameters, a preliminary priority sorting is performed. For example, a computer room with higher configuration capabilities in Shandong Province will be given priority in the initial screening. The calculation method at this time can be flexibly set: For example, assuming that the calculation is based on the CPU usage accounting for 30%, the memory usage accounting for 50%, and the hard disk storage capacity accounting for 20%, the weight calculation formula here may be written as: Weight = W = 0.3*(1- CPU Usage)+0.5*(1-Memory Used)+0.2*(1-Disk Space Used). Among them, the CPU usage is 70%, the memory usage is 25GB and the total is 50GB, and the hard disk usage is 66%, then the W value is about 0.408, and this W value is sorted as the first priority.
[0021] Step S4: According to the first priority sorting, the average network response time (RTT) to each computer room node will be calculated based on the geographical location of each user to further optimize the computer room selection. For example, the distance from Hangzhou, Zhejiang Province to a server in Shandong Province may be around several hundred kilometers. Then, by sending specific detection data (such as PING command, Traceroute, etc.), the average round trip time can be measured to be about 70 ms, while the average response time of a computer room node in Jiangsu Province near Hangzhou is about 24 ms, so the latter scores higher in the network delay indicator.
[0022] Step S5: Define the geographic area of each computer room on the GIS platform, and explore whether it is possible to find computer room facilities as candidates in the same city or adjacent areas. As mentioned in the previous example, if the user in the urban area of Hangzhou, Zhejiang, has suitable nodes in the surrounding area, even if he is not absolutely leading in the initial sorting process, he can be taken into consideration due to the advantage of close distance to obtain a better position ranking. Calculate the distance between the user's location and the boundary of the computer room. If it is within the preset threshold range, it is considered to be in the same area. This step can be completed by marking the existing data centers in a specific area on the geographic information system, and using latitude and longitude distance measurement. For example, if two computer rooms in Hangzhou are close to each other, for users in Hangzhou, those computing power suppliers whose belonging ranges overlap will get extra points due to their close locations.
[0023] After the previous five steps, In step S6: At this stage, there is a list of candidate nodes generated after two rounds of screening and optimization. Based on this list, a group of configurations that best meet customer needs can be selected to provide service access. Specifically, the computer room nodes with higher comprehensive priorities will be given priority, while ensuring that resource utilization does not exceed the upper limit and can be maintained below the preset target RTT. In the case, when a user sends an application signal and there are several options in Hangzhou, Zhejiang Province, a server node with a higher priority and good performance may become the game service support provider for the player. For example, a facility in Jiangsu Province is not only powerful in hardware but also close in distance, so it is likely to be selected first; the resource allocation process includes real-time monitoring of the allocation results. If the cabinet is already under high load or the delay is abnormally increased due to network congestion, another solution must be selected.
[0024] Through the design and implementation of the above process, in actual application scenarios, this algorithm effectively avoids and solves the defects of existing allocation schemes, such as the difficulty of automatically matching the cluster with the lowest latency to the user in need, the poor quality of actual user experience, and the high pressure on network bandwidth. Through precise control of various conditions, it not only ensures the effective use of computing resources, but also significantly improves the efficiency of the entire system and user experience, realizing truly intelligent and automated resource allocation and management.
[0025] The "proximity allocation method based on cloud computing nodes" of the present invention includes a series of steps and technical means for dynamic and intelligent scheduling of cloud computing resources. Specifically, in order to solve the problem existing in the prior art - the inability to automatically allocate the server cluster with the lowest latency to the end user, resulting in an unsmooth user experience, high bandwidth requirements and low resource utilization, the present invention intelligently optimizes the resource allocation strategy by combining key factors such as the user's geographical location, the real-time load status of the cloud server cluster and network communication delay.
[0026] The present invention first obtains the user's location information in step S1 and confirms its validity; then in step S2, the relevant location and resource configuration information of all data centers or cloud computing rooms is collected and standardized; then, in step S3, the first priority sorting is achieved by quantifying the importance of resources; on this basis, step S4 completes the second sorting of data centers by evaluating network transmission performance. It is worth noting that an innovative design is also added in step S5, which gives a higher allocation priority to data centers in a specific area by judging whether the user and the data center are located in the same area, thereby reducing the high latency problem caused by cross-regional network access.
[0027] Finally, in step S6, cloud services are automatically matched and distributed according to the composite priority level formed above. In addition, after computing power allocation is executed, a real-time monitoring mechanism for resource allocation results is further set up to automatically adjust cloud resources when the monitoring system detects that the delay exceeds the expected threshold, which ensures both accurate allocation and continuous good access quality for users.
[0028] In summary, the inventive method improves user service quality while reducing unnecessary bandwidth and resource expenses by accurately managing the resource status and geographic location of the computer room and performing intelligent computing analysis, making cloud computing services more efficient, smooth and economical.
[0029] The present application also provides a computer-readable storage medium, which stores a computer program. The computer-readable storage medium stores computer execution instructions. When the processor executes the computer execution instructions, the above-mentioned method of local allocation based on cloud computing power nodes is implemented.
[0030] The computer-readable storage medium mentioned above can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.
[0031] In the specification and claims of the present application, the words "include / comprise" and the words "have / include" and their variations are used to specify the existence of stated features, values, steps or components, but do not exclude the existence or addition of one or more other features, values, steps, components or combinations thereof.
[0032] Some features of the present invention are described in different embodiments for clarity of description, however, these features may also be described in combination in a single embodiment. Conversely, some features of the present invention are described in only a single embodiment for brevity, however, these features may also be described in different embodiments alone or in any suitable combination.
[0033] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for nearby allocation based on cloud computing nodes, characterized in that: The following steps are involved: Step S1: Obtain the user's IP address and calculate the user's location address through the geolocation database; Step S2: Query and obtain the location addresses and resource configurations of all computer rooms; Step S3: performing first priority sorting according to the resource configuration of the computer room; Step S4: performing a second priority sorting based on the network delay between the user and the computer room; Step S5: Determine whether the user's location address and the computer room's location address are in the same area. If they are in the same area, the priority is increased; Step S6: Allocate computing resources to users based on comprehensive priorities.
2. The method for nearby allocation based on cloud computing nodes according to claim 1 is characterized in that: Step S1 includes: S1.1: Get the public IP address from the user request; S1.2: Query the latitude and longitude corresponding to the IP address through the geolocation database; S1.3: Verify the validity of the IP address; S1.4: Calculate the user's location address based on the latitude and longitude information.
3. The method for nearby allocation based on cloud computing nodes according to claim 1 is characterized in that: Step S2 includes: S2.1: Query the location information and resource configuration data of all computer rooms recorded in the database; S2.2: convert the longitude and latitude of the location address of each computer room so as to compare it with the location address of the user; S2.3: Obtain resource status information of each computer room, including CPU usage, memory usage, and storage capacity; S2.4: Regularly update the location information and resource status of the computer room to ensure the real-time and accuracy of the allocation strategy.
4. The method for nearby allocation based on cloud computing nodes according to claim 1 is characterized in that: The first priority sorting in step S3 includes: S3.1: Read the resource configuration information P of the CPU, memory and storage of each computer room; S3.2: Calculate the resource weight W of each computer room, W = α*P(CPU) + β*P(Mem) + γ*P(Sto), where α+β+γ=1; S3.3: Sort the computer rooms according to their resource weight from high to low.
5. The method for nearby allocation based on cloud computing nodes according to claim 3 is characterized in that: When calculating resource weights, if the proportion of a resource is lower than the preset minimum value, the resource proportion is not included in the weight calculation.
6. The method for nearby allocation based on cloud computing nodes according to claim 1 is characterized in that: Step S4 includes: S4.1: Select multiple fixed network test nodes as measurement reference points; S4.2: Use PING or Traceroute tools to measure the network latency of each computer room and calculate the average round-trip time (RTT); S4.3: Use the RTT value as a latency indicator, with low latency being the priority.
7. The method for nearby allocation based on cloud computing nodes according to claim 1 is characterized in that: The area determination in step S5 includes: S5.1: Define the geographical area of each computer room on the GIS platform; S5.2: Calculate the distance between the user location and the boundary of the computer room. If the distance is within a preset threshold, they are considered to be in the same area.
8. The method for nearby allocation based on cloud computing nodes according to claim 1 is characterized in that: Step S6 includes: S6.1: Select a computer room that meets the user's needs according to the sorting results to allocate computing power; S6.2: Perform final resource allocation while satisfying resource and delay requirements.
9. The method for nearby allocation based on cloud computing nodes according to claim 1 is characterized in that: The resource allocation process in S6.2 includes real-time monitoring of the allocation results, and reallocating resources if it is detected that the delay exceeds the target value.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the program can be executed by a processor to implement the cloud computing node-based proximity allocation method as described in any one of claims 1-9.
Citation Information
Patent Citations
Edge computing resource scheduling method and device, equipment and readable storage medium
CN112631758A
Node migration method and system
CN115915017A
Calculation network scheduling service method and system based on network performance comprehensive weight decision
CN116708446A
Cited By
Cloud application intelligent scheduling method and device
CN119363750A
