Cloud server management method and system, medium and equipment
Through multi-dimensional status monitoring and system type classification of Internet of Vehicles data links, resource allocation is dynamically adjusted, which solves the problems of untimely resource allocation and high cost in the existing technology, and achieves high-quality operation and cost saving of cloud services.
Patent Information
- Application Number
- CN202410515296.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-26
- Publication Date
- 2024-08-23
AI Technical Summary
Existing cloud computing technology is not responsive and accurate in resource allocation, resulting in high operation and maintenance costs, and it is difficult to cope with traffic fluctuations in the Internet of Vehicles data links.
Through multi-dimensional status monitoring of multiple systems in the Internet of Vehicles data link, system types are divided and corresponding management strategies are formulated, and capacity is dynamically expanded or reduced based on the number of vehicles traveling, system load rate and middleware data backlog.
It achieves high-quality operation and cost savings of cloud services and ensures reasonable planning of cloud service resources and traffic processing capabilities.
Smart Images

Figure CN118540226A
Abstract
Description
Technical Field
[0001] The present application relates to the field of cloud resource configuration, and in particular to a cloud server management method, system, medium and device. Background Art
[0002] Cloud computing is the product of the integration of traditional computer technologies and network technologies, including network computing, distributed computing, parallel computing, utility computing, network storage, virtualization, and load balancing. Cloud computing concentrates computing from user terminals to the "cloud" and is an Internet-based computing model. According to the cloud computing operation model, users only need to care about the functions of the application, not the implementation method of the application. In other words, they can customize their own applications according to their needs.
[0003] With the rapid development of cloud computing technology, major manufacturers have also launched their own cloud services, such as Alibaba Cloud, Huawei Cloud, Tencent Cloud, etc. More and more companies are deploying their services on cloud platforms. The same is true in the Internet of Vehicles industry, and as the concept of car-cloud integration continues to deepen, major car companies have a higher demand for cloud services.
[0004] For cloud service providers, how to manage application services, how to reasonably allocate resources to cope with the surge in access traffic, how to reduce human operation and maintenance costs, etc., are all issues that need to be urgently addressed. In existing technologies, when allocating resources, some set resources by estimating the traffic to be handled, and some expand / contract capacity according to the real-time load of the system, but there are still problems such as untimely and inaccurate responses and high operation and maintenance costs. Summary of the invention
[0005] The present application provides a cloud server management method, system, medium and device, which can adaptively and reasonably plan the system resources in the cloud, which can not only ensure the higher quality operation of cloud services, but also save cloud service costs.
[0006] A first aspect of an embodiment of the present application provides a cloud server management method, the method comprising:
[0007] Performing status monitoring on multiple systems in a vehicle networking data link to obtain multi-dimensional status data of the vehicle networking data link; the multi-dimensional status data includes the number of vehicles traveling, the system load rate, and the backlog of middleware data;
[0008] Determine the system type to which each of the multiple systems belongs and the management policy corresponding to each of the system types;
[0009] According to the management policy corresponding to each of the system types, and based on one or more of the multi-dimensional status data, at least one system under each of the system types is expanded or reduced.
[0010] Optionally, the system type includes a first type, a second type and a third type, the first type of system refers to a system located upstream of the vehicle networking data link, the second type of system refers to a system located midstream of the vehicle networking data link, and the third type of system refers to a system located downstream of the vehicle networking data link;
[0011] Determining system types corresponding to the multiple systems and management policies corresponding to each of the system types includes:
[0012] In a case where the system type to which the system belongs is the first type, determining that the management policy of the system is a first management policy; the first management policy is a management policy for systems of the first type;
[0013] In a case where the system type to which the system belongs is the second type, determining that the management policy of the system is a second management policy; the second management policy is a management policy for systems of the second type;
[0014] In a case where the system type to which the system belongs is the third type, the management policy of the system is determined to be a third management policy; the third management policy is a management policy for systems of the third type.
[0015] Optionally, according to the management policy corresponding to each of the system types, based on one or more of the multi-dimensional status data, at least one system under each of the system types is expanded or reduced in capacity, including:
[0016] According to the first management strategy, based on the number of vehicles traveling, at least one system of the first type is expanded or reduced in capacity;
[0017] and / or, in accordance with the second management strategy, expanding or reducing the capacity of at least one system of the second type based on the system load rate and / or the backlog of middleware data;
[0018] And / or, according to the third management strategy, based on the system load rate, the capacity of at least one system of the third type is expanded or reduced.
[0019] Optionally, according to the first management strategy, based on the number of vehicles traveling, expanding or reducing the capacity of at least one system of the first type includes:
[0020] For any system of the first type, obtaining a target flow interval corresponding to the current number of nodes of the system; wherein different numbers of nodes correspond to different target flow intervals;
[0021] When the current number of vehicles traveling is greater than or equal to the target upper limit value of the target flow interval, the system is expanded; or, when the current number of vehicles traveling is less than the target lower limit value of the target flow interval, the system is reduced.
[0022] Optionally, at least one system under the second type comprises a middleware data system;
[0023] According to the second management strategy, based on the backlog of the middleware data, the capacity of at least one system of the second type is expanded, including:
[0024] For the middleware data system, when the backlog quantity of the middleware data of any data type is greater than or equal to a preset backlog upper limit, the middleware data system is expanded.
[0025] Optionally, at least one system under the second type comprises a consumer system;
[0026] According to the second management strategy, based on the system load rate, expanding the capacity of at least one system of the second type includes:
[0027] For any of the consumer systems, when the system load rate of the consumer system is greater than or equal to a preset first load upper limit value, the capacity of the consumer system is expanded.
[0028] Optionally, the at least one system under the second type includes: a middleware data system and at least one consumer system, the consumer system being located downstream of the middleware data system;
[0029] According to the second management strategy, based on the system load rate and the amount of backlog of middleware data, the capacity of at least one system of the second type is expanded, including:
[0030] When the backlog of middleware data of any data type is greater than or equal to a preset backlog upper limit, the middleware data system and the consumer system are linked and expanded based on the expansion strategy corresponding to the data type; different data types correspond to different expansion strategies.
[0031] Optionally, the expansion strategy corresponding to the data type includes: an expansion ratio relationship between the middleware data system and the consumer system, and an expansion quantity of the middleware data system under the data type;
[0032] Based on the expansion strategy corresponding to the data type, the middleware data system and the consumption system are linked to expand, including:
[0033] Determine the capacity expansion quantity of the consumer system based on the capacity expansion quantity of the middleware data system under the data type and the capacity expansion ratio relationship between the middleware data system and the consumer system;
[0034] The middleware data system and the consumer system are linked to expand capacity according to their respective expansion quantities.
[0035] Optionally, the at least one system under the second type includes: a middleware data system and at least one consumer system, the consumer system being located downstream of the middleware data system;
[0036] According to the second management strategy, based on the system load rate, scaling down at least one system of the second type includes:
[0037] For any of the consumer systems, when the system load rate of the consumer system is less than or equal to a preset first load lower limit value, scaling down the consumer system;
[0038] And / or, when the system load rates of the plurality of consumer systems meet a preset reduction condition, the middleware data system is reduced in capacity.
[0039] Optionally, the at least one system under the second type includes: a middleware data system and at least one consumer system, the consumer system being located downstream of the middleware data system;
[0040] Expanding or reducing the capacity of at least one system of the second type includes:
[0041] Based on the position of the second type of system in the IoV data link, the middleware data system and at least one of the consumer systems are expanded in order from downstream to upstream; or,
[0042] Based on the position of the second type of system in the Internet of Vehicles data link, the middleware data system and at least one of the consumer systems are scaled down in order from upstream to downstream.
[0043] Optionally, according to the third management strategy, based on the system load rate, expanding or reducing the capacity of at least one system of the third type includes:
[0044] For any of the third type of systems, when the system load rate of the system is greater than or equal to a preset second load upper limit value, the system is expanded; or,
[0045] When the system load rate of the system is less than or equal to a preset second load lower limit value, the system is reduced in capacity.
[0046] Optionally, the method further comprises:
[0047] For any system of the third type, obtaining a target number of connections of a target database connected to the system;
[0048] When the number of connections between the system and the target database reaches the target number of connections, the capacity expansion of the system is stopped.
[0049] Optionally, the method further comprises:
[0050] Determining the target capacity expansion quantity of all systems in the Internet of Vehicles data link according to the capacity expansion history of the target period;
[0051] Before the target time period, the system is expanded in advance based on the target expansion amount.
[0052] Optionally, expanding the capacity of at least one system under each of the system types includes:
[0053] When the current time is within a preset date, at least one system of each system type is expanded according to a preset first expansion range.
[0054] Based on the same inventive concept, a second aspect of an embodiment of the present application provides a cloud server management system, the system comprising:
[0055] A multi-dimensional monitoring module is used to monitor the status of multiple systems in the Internet of Vehicles data link to obtain multi-dimensional status data of the Internet of Vehicles data link; the multi-dimensional status data includes the number of vehicles traveling, the system load rate and the backlog of middleware data;
[0056] A management policy determination module, used to determine the system type to which each of the multiple systems belongs and the management policy corresponding to each of the system types;
[0057] The classification management module is used to expand or reduce the capacity of at least one system under each of the system types according to the management strategy corresponding to each of the system types and based on one or more of the multi-dimensional status data.
[0058] Based on the same inventive concept, the third aspect of an embodiment of the present application provides a storage medium, in which machine executable instructions are stored. When the machine executable instructions are executed by a processor, the cloud server management method proposed in the first aspect of the present application is implemented.
[0059] A fourth aspect of an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes, the cloud server management method proposed in the first aspect of the present application is implemented.
[0060] Compared with the prior art, this application has the following advantages:
[0061] A cloud server management method provided in an embodiment of the present application obtains multi-dimensional status data of the Internet of Vehicles data link by monitoring the status of multiple systems in the Internet of Vehicles data link; the multi-dimensional status data includes the number of vehicles traveling, the system load rate and the backlog of middleware data, so as to provide a management basis for the subsequent system configuration management. Then, by determining the system type to which each of the multiple systems belongs and the management strategy corresponding to each system type; according to the management strategy corresponding to each system type, based on one or more of the multi-dimensional status data, at least one system under each system type is expanded or reduced. Thus, by dividing the system into multiple different types, and managing different types of systems according to different management strategies and one or more multi-dimensional status data, the related systems in the entire Internet of Vehicles data link are orderly expanded or reduced, and adaptive and reasonable planning of system resources is realized, which can not only ensure higher quality operation of cloud services, but also save cloud service costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] Figure 1 It is a schematic diagram of the data link in the Internet of Vehicles environment;
[0063] Figure 2 is a flow chart of a cloud server management method in one embodiment of the present application;
[0064] Figure 3 is a schematic diagram of capacity expansion of a second type of system in one embodiment of the present application;
[0065] Figure 4 is a schematic diagram of capacity expansion of the third type of system in one embodiment of the present application;
[0066] Figure 5 This is a functional module diagram of a cloud server management system in one embodiment of the present application;
[0067] Figure 6 It is a schematic diagram of functional modules of an electronic device in one embodiment of the present application. DETAILED DESCRIPTION
[0068] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0069] Please refer to Figure 1 , Figure 1 It is a schematic diagram of the data link in the Internet of Vehicles environment.
[0070] like Figure 1 As shown in the figure, first, the driving data of many vehicles is forwarded from the vehicle end to the device access end through EMQ (Event-driven MessageQueue, an event-driven message queue system). It should be noted that the EMQ system does not store the data information of the vehicle, but only transfers the data information as a middleware and pushes it to the device access end. Then, the device access end converts and diverts the data format and pushes it to KAFKA (a high-throughput distributed publish-subscribe message system). As a middleware, the KAFKA system can partition and temporarily store data according to the data type. After that, the cloud TSP (Telematics Service Provider, automotive remote service provider) system can pull data from the KAFKA system for business processing and enrichment. At the same time, some data will be pushed to one or more other business systems for related processing, and some data will also be pushed to the big data system for big data analysis.
[0071] Among them, the entire link traffic is affected by factors such as the number of vehicles traveling and the number of partitions set by KAFKA. For example, if there are too many vehicles traveling, the device access end will bear a lot of data pressure, and then the data will be transmitted to the KAFKA system. The rate at which subsequent systems (such as TSP systems) starting from the KAFKA system consume KAFKA's middleware data is affected by the number of KAFKA partitions and the number and time interval of each pull by the system (such as 5,000 middleware data per partition per second). As the number of vehicle accesses increases, the backlog of middleware data will become more and more serious. In order to avoid system crashes, the relevant server systems in the link need to be expanded.
[0072] In the prior art, common server system configuration and expansion methods include:
[0073] 1. Some servers allocate resources based on an estimated traffic volume. For example, to carry 1 million vehicles at the same time, the TSP platform needs to deploy 10 system nodes (each node has the same function and is a mirror image of each other), and the big data platform needs to deploy 20 system nodes. Other business systems and middleware systems will also refer to this configuration. With this configuration, cloud service resources are fully configured regardless of whether it is during peak or low traffic periods. During low traffic periods, there will be an over-allocation of resources and unnecessary cloud service fees.
[0074] 2. Some servers expand / contract according to the real-time system load. For example, if the system CPU usage exceeds 80%, the system nodes will be expanded according to the specific expansion strategy. For example, if there is only one system node at the initialization, one node will be expanded after the CPU usage reaches 80%, and the number will become 2 nodes. If the load rates of both nodes reach 80%, two more nodes will be expanded, and the number will become 4 nodes.
[0075] This conventional capacity expansion method can usually only expand the number of nodes, but the actual Internet of Vehicles environment is often very complex. If only nodes are expanded for a single system, it may lead to an unbalanced resource allocation between upstream and downstream systems in the Internet of Vehicles data link, resulting in untimely and inaccurate responses, as well as high operation and maintenance costs.
[0076] In view of this, the present application proposes a cloud server management method. On the one hand, by real-time monitoring of the operation of multiple systems in the Internet of Vehicles data link, the multi-dimensional status data of the Internet of Vehicles data link is obtained, including the number of vehicles traveling, the system load rate, and the backlog of middleware data, etc., to provide a management basis for the subsequent system configuration management. On the other hand, considering the position of various systems in the Internet of Vehicles data link and the operating characteristics of various systems themselves, the system is divided into multiple different types, and different types of systems are managed according to different management strategies, so as to orderly manage the relevant systems in the entire Internet of Vehicles data link (expansion and reduction), and realize adaptive and reasonable planning of system resources.
[0077] Please refer to Figure 2 , Figure 2 is a flow chart of a cloud server management method in one embodiment of the present application, the cloud server management method is used to Figure 1 Manage the system resources in the vehicle network data link. Figure 2 As shown, a cloud server management method proposed in this application mainly includes the following steps:
[0078] S101: Monitor the status of multiple systems in the Internet of Vehicles data link to obtain multi-dimensional status data of the Internet of Vehicles data link; the multi-dimensional status data includes the number of vehicles traveling, the system load rate, and the backlog of middleware data.
[0079] In this embodiment, the vehicle networking data link is as follows Figure 1 As shown. By monitoring the status of multiple systems in the Internet of Vehicles data link, multi-dimensional status data of the Internet of Vehicles data link can be obtained for judging and analyzing the expansion or reduction of the system. When managing the system resources in the Internet of Vehicles data link, the EMQ system, KAFKA system, TSP system, multiple business systems (mainly including some business systems associated and interacted with the TSP system and some relatively independent business systems) and big data systems are reasonably expanded or reduced, so that cloud resources are kept in a sufficient but not excessive state, while ensuring that the cloud can smoothly process the data uploaded by the vehicle and provide timely feedback, it can also save cloud service fees and reduce the application costs of enterprises.
[0080] In this embodiment, the multi-dimensional status data at least includes the number of vehicles traveling, the system load rate and the backlog of middleware data, which are three monitoring indicators. Among them, the number of vehicles traveling refers to the number of vehicles in the process of driving. For these vehicles, it is necessary to continuously collect data on the driving status of the vehicle for analysis. It is easy to understand that the more vehicles driving on the road at the same time, that is, the more vehicles driving, the greater the flow pressure will be on the flow entrance (EMQ system), which will affect other systems on the subsequent data link. However, vehicle driving does not necessarily fully reflect the data flow, because some users will not report vehicle data for privacy reasons, and although the vehicle is in a driving state, it is not in the driving process. For example, the user is just resting, listening to music, and watching movies in the car. Although the vehicle is also working, it will not generate the analysis data required by the business system. Therefore, the number of vehicles traveling in this embodiment specifically refers to the number of vehicles in the process of driving.
[0081] The system load rate refers to the degree to which the system is executing tasks, usually expressed as the utilization rate of system resources within a certain period of time. The load rate can reflect the load on the system and will also affect the normal operation of the system. The higher the load rate, the greater the workload the system is bearing. The system load rate can be detected based on the system's built-in probes, including CPU usage, memory usage, network traffic, etc.
[0082] Specifically, according to the characteristics of the system's tasks, the system can be divided into I / O intensive and compute intensive. I / O intensive refers to computing tasks that mainly rely on input and output operations. In this case, the computing tasks usually require a large number of data reading and writing operations. Typical I / O intensive tasks include file operations and database queries. Computation intensive refers to computing tasks that mainly rely on computing operations. In this case, the computing tasks require a large amount of CPU computing resources to perform complex computing operations, while I / O operations are relatively few. Typical compute intensive tasks include scientific computing, image processing, cryptography, etc.
[0083] For example, an OTA (Over-the-Air Technology) system can be simply classified as I / O intensive, so when detecting the system load rate of the OTA system, the main focus is on memory usage; a big data system can be simply classified as compute intensive, so when detecting the system load rate of the big data system, the main focus is on CPU usage.
[0084] The amount of backlog in the middleware data refers to the amount of data accumulated in the KAFKA system in the data link. The KAFKA system has the function of short-term data storage. If the data flow is very large at once, and the consumption efficiency of the subsequent system is not fast enough, it will cause data backlog. For example, if 10,000 new data are generated per second and pushed to the TOPIC (message topic) partition of the KAFKA system, and the subsequent system consumes only 9,000 data per second, then a backlog of 1,000 data will be generated per second. Over time, for example, the data backlog generated after 1 hour will reach 3.6 million, which will cause great delays in subsequent data analysis and business processing. Therefore, the amount of backlog in the middleware data is also an important factor affecting cloud system management.
[0085] In the prior art, when managing system resources, usually only a single monitoring indicator is considered, such as the size of the vehicle traffic or the system load rate. However, the present application performs multi-dimensional status data monitoring of the Internet of Vehicles data link based on multiple monitoring indicators, which can obtain more comprehensive analysis data and promote the rational allocation of system resources.
[0086] S102: Determine the system types to which the multiple systems belong and the management policies corresponding to each system type.
[0087] In this embodiment, by classifying (i.e., grouping) the systems in the link, multiple categories of system sets can be obtained. Among them, each category of system set can include one or more systems, and each system can be set with one or more nodes. At the same time, different categories of system sets correspond to different management strategies. For example, if system A belongs to the first type, the number of nodes of system A is managed according to the management strategy corresponding to the first type. Therefore, through the method of classified management, one or more systems under each type are managed using the corresponding management strategy to achieve reasonable planning of system resources.
[0088] S103: According to the management policy corresponding to each system type, based on one or more of the multi-dimensional status data, at least one system under each system type is expanded or reduced.
[0089] In this embodiment, for any system in the data link, after determining the management strategy corresponding to the system according to the category to which the system belongs, it will be determined whether the system should be expanded or reduced in capacity, and the corresponding expansion amount or reduction amount based on the monitoring indicators required by the management strategy (i.e., one or more of the multi-dimensional status data), so as to achieve the management of system resources in the data link. Among them, the monitoring indicators required by different management strategies may be different, or they may be partially the same. For example, the first management strategy needs to be analyzed based on two types of status data: the system load rate and the backlog of middleware data, while the second management strategy only needs to be analyzed based on the system load rate.
[0090] It should be noted that the management process is a long-term process. By real-time monitoring of the number of vehicles, system load rate, and the backlog of middleware data, and timely expansion or reduction of the system in the data link according to the corresponding management strategy, the cloud can smoothly process the data uploaded by the vehicle and provide timely feedback. For example, in a day, the system in the data link will go through a cycle of continuous expansion-stable operation-continuous reduction-stable operation.
[0091] This embodiment can obtain multi-dimensional status data of the Internet of Vehicles data link by real-time monitoring of the operation of multiple systems in the Internet of Vehicles data link, obtain more comprehensive monitoring indicators, and provide a management basis for subsequent system configuration management. At the same time, by dividing the system into multiple different types and managing the systems of different types accordingly according to different management strategies, the relevant systems in the entire Internet of Vehicles data link can be expanded or reduced in an orderly manner, realizing adaptive and reasonable planning of system resources.
[0092] Optionally, the system types include a first type, a second type and a third type, the first type of system refers to a system located upstream of the Internet of Vehicles data link, the second type of system refers to a system located midstream of the Internet of Vehicles data link, and the third type of system refers to a system located downstream of the Internet of Vehicles data link.
[0093] In this implementation, the systems in the data link are divided into three categories, and a system set of the first type, the second type and the third type is obtained. Among them, the system belonging to the first type is at the upstream of the Internet of Vehicles data link, and is mainly responsible for receiving and forwarding the data uploaded by the vehicle end, for example Figure 1 The EMQ system in the data link shown. The second type of system is in the middle of the vehicle network data link and is mainly responsible for temporary storage and processing of data, such as Figure 1 The KAFKA system, TSP system, and business systems that frequently interact with the TSP system in the data link shown belong to the second type. The third type of system is located downstream of the Internet of Vehicles data link and is mainly responsible for calculating and storing data, such as Figure 1 Some independent business systems and big data systems in the data link shown belong to the third type. Therefore, by classifying the systems according to their positions in the data link of the Internet of Vehicles and the operating characteristics of each system itself, the systems can be better managed.
[0094] Furthermore, the system types corresponding to the multiple systems and the management strategies corresponding to each system type are determined, including:
[0095] When the system type to which the system belongs is the first type, the management policy of the system is determined to be the first management policy; when the system type to which the system belongs is the second type, the management policy of the system is determined to be the second management policy; when the system type to which the system belongs is the third type, the management policy of the system is determined to be the third management policy.
[0096] In this implementation, different system types correspond to different management strategies. Therefore, when managing a system, it is necessary to manage the system in real time according to the management strategy corresponding to the system type to which the system belongs. The first management strategy is a management strategy for a system of the first type, the second management strategy is a management strategy for a system of the second type, and the third management strategy is a management strategy for a system of the third type.
[0097] Optionally, according to the management policy corresponding to each system type, at least one system under each system type is expanded or reduced based on one or more of the multi-dimensional status data, including:
[0098] According to the first management strategy, based on the number of vehicles traveling, at least one system of the first type is expanded or reduced in capacity; and / or, according to the second management strategy, based on the system load rate and / or the backlog of middleware data, at least one system of the second type is expanded or reduced in capacity; and / or, according to the third management strategy, based on the system load rate, at least one system of the third type is expanded or reduced in capacity.
[0099] In this implementation, since the first type of system is located upstream of the Internet of Vehicles data link and is mainly responsible for receiving and forwarding the data uploaded by the vehicle, the real-time number of vehicles traveling is the main factor affecting the management decision of this type of system. Therefore, when the first strategy is used to manage the first type of system, the expansion or reduction of at least one system of the first type is mainly planned based on the number of vehicles traveling.
[0100] For example, for system A belonging to the first type, when system A only has one node, it can support the forwarding and communication of all data of 100,000 running vehicles. However, when the real-time number of vehicles running exceeds 100,000, if one node is still used, there will be a certain degree of data delay. Therefore, when the first strategy is used to manage system A, it is necessary to reasonably expand the capacity of system A according to the real-time number of vehicles running to ensure that system A can forward vehicle data in a timely manner and promote the normal operation of the Internet of Vehicles link.
[0101] Since the second type of system is in the middle of the Internet of Vehicles data link and is mainly responsible for temporary storage and processing of data, the backlog of middleware data and the system load rate of each system are the main factors affecting the management decisions of this type of system. Therefore, when using the second strategy to manage the second type of system, the expansion or reduction of at least one system of the second type is mainly planned based on the backlog of middleware data and the system load rate.
[0102] For example, for system B, which belongs to the second type, when the backlog of middleware data is too large or the system load rate of system B itself is high, it is necessary to expand the nodes of system B so that multiple nodes can run in parallel to share the load pressure of the entire system B, increase the speed of data consumption, and reduce data accumulation.
[0103] Since the third type of system is located downstream of the Internet of Vehicles data link and is mainly responsible for calculating and storing data, the system load rate of the system itself is the main factor affecting the management decision of this type of system. Therefore, when using the third strategy to manage the third type of system, the expansion or reduction of at least one system of the third type is mainly planned based on the system load rate.
[0104] For example, for system C belonging to the third type, when the system load rate of system C itself is high, it is necessary to expand the nodes of system C so that multiple nodes can run in parallel to share the load pressure of the entire system B. When the system load rate of system C is low, the nodes of system C are reduced to avoid idle nodes and unnecessary cloud service fees.
[0105] In this embodiment, by classifying the systems in the data link and adopting different management strategies and corresponding required monitoring indicators, one or more systems in each category are planned to expand or reduce their capacity. This enables a more comprehensive and accurate management of each system in the data link, thereby ensuring the normal operation of the cloud service and saving cloud service fees.
[0106] Optionally, according to the first management strategy, based on the number of vehicles traveling, at least one system of the first type is expanded or reduced in capacity, including:
[0107] S201: For any system of the first type, obtain a target flow interval corresponding to the current number of nodes in the system; wherein different numbers of nodes correspond to different target flow intervals.
[0108] In this embodiment, the first type of system may include: Figure 1 The EMQ system shown in . For the EMQ system, this embodiment pre-sets the range of vehicle numbers that the system can support under different numbers of nodes, that is, the target flow interval. Among them, different numbers of nodes correspond to different target flow intervals. Exemplarily, the target flow interval can be regarded as a closed-front and open-back interval consisting of a target upper limit value and a target lower limit value for the number of vehicles that the system can support under the number of nodes. Specifically, the setting of the target upper limit value and the target lower limit value of the target flow interval corresponding to different numbers of nodes is related to the number of vehicles that a single node can perfectly support, that is, the perfect support number.
[0109] For example, assume that for the EMQ system, a node can perfectly support 100,000 vehicles, that is, the perfect support number is 100,000, and when the number of vehicles exceeds 10% of the perfect support number of 100,000 (that is, 110,000), the expansion is determined. Therefore, the relationship between the number of nodes and the number of vehicles in the system can be calculated by the following formula:
[0110] Number of nodes = (number of vehicles traveling / 110,000) + 1
[0111] If the result of calculating the number of nodes is a decimal, it is rounded to the left. For example, when the number of vehicles traveling is 150,000, the number of nodes is 2.
[0112] Therefore, through this method, we can determine that when there is one node, the target flow range that can be supported is [0,11), when there are two nodes, the target flow range that can be supported is [11,22), when there are three nodes, the target flow range that can be supported is [22,33) (unit: 10,000 vehicles), and so on. The target flow range corresponding to different numbers of nodes can be obtained, providing a direct judgment basis for real-time expansion decisions.
[0113] S202: When the current number of vehicles traveling is greater than or equal to the target upper limit of the target flow interval, the system is expanded; or when the current number of vehicles traveling is less than the target lower limit of the target flow interval, the system is reduced.
[0114] In this implementation, after determining the corresponding target flow interval according to the current number of nodes in the system, the capacity expansion or contraction can be determined based on the current number of vehicles traveling. If the current number of vehicles traveling is greater than or equal to the target upper limit of the target flow interval, the EMQ system is expanded. If the current number of vehicles traveling is less than the target lower limit of the target flow interval, the EMQ system is contracted.
[0115] For example, assuming that the EMQ system currently has 3 nodes, the corresponding target traffic interval can be determined to be [22,33). If the current number of vehicles is 330,000, since it has just reached the target upper limit of the target traffic interval of 330,000, it is determined that expansion is required, so a new EMQ system node is added. If the current number of vehicles is 300,000, since 300,000 is still within the target traffic interval, it means that the current 3 nodes can still support 300,000 vehicles, so the status quo is maintained, and there is no need to expand or shrink. However, if the current number of vehicles is 200,000, since it is lower than the target lower limit of the target traffic interval of 220,000, it means that there is a surplus of 200,000 vehicles currently supported by 3 nodes, so it is determined that shrinkage is required, so an EMQ system node is deleted.
[0116] It should be noted that in this implementation, only one node is expanded each time the capacity is expanded, and only one node is shrunk each time the capacity is shrunk, so that the EMQ system is gradually expanded or shrunk according to the real-time vehicle driving data to maintain the stability of the system and avoid adding or deleting too many nodes at one time, which will have a bad impact on the subsequent systems in the data link.
[0117] Optionally, at least one system under the second type includes a middleware data system;
[0118] According to the second management strategy, based on the backlog of middleware data, at least one system of the second type is expanded, including: for the middleware data system, when the backlog of middleware data of any data type is greater than or equal to a preset backlog upper limit, the middleware data system is expanded.
[0119] In this embodiment, the middleware data system refers to Figure 1 When the system under the second type includes a middleware data system, once the backlog of middleware data of a certain data type reaches a preset backlog upper limit, the middleware data system is expanded to avoid data loss.
[0120] like Figure 1 As shown, the middleware data system, namely the KAFKA system, implements classification and partition storage when temporarily storing data. Among them, data types include reminders, diagnostics, alarms, statuses, etc., and each type of data can be stored through one or more TOPIC partitions. In this embodiment, the middleware data system is expanded according to the backlog of middleware data, that is, according to the backlog of a certain type of data, the number of partitions required for the data type in the KAFKA system is appropriately increased to improve the KAFKA system's ability to accept data and avoid data loss. For example, alarm data was originally stored in two partitions, but as the uploaded data increased, alarm data began to accumulate. When it accumulated to a certain extent, a new partition was added, and alarm data was stored through three partitions to avoid data loss.
[0121] In specific implementation, different data types can correspond to the same backlog upper limit value, and the specific expansion quantity of the middleware data system is related to the data type. For example, for status data, whenever the status data accumulates more than 100,000, the KAFKA system adds 1 partition; for alarm data, whenever the alarm data accumulates more than 100,000, the KAFKA system adds 2 partitions to deal with the accumulation problem of different data types.
[0122] In another feasible implementation, different data types may correspond to different backlog upper limits. For example, for status data, whenever the status data accumulates more than 200,000, the KAFKA system adds a new partition; for alarm data, whenever the alarm data accumulates more than 100,000, the KAFKA system adds a new partition, so that capacity expansion can be started at the right time according to different data types to avoid data loss.
[0123] Optionally, at least one system under the second type comprises a consumer system;
[0124] According to the second management strategy, based on the system load rate, at least one system under the second type is expanded, including: for any consumer system, when the system load rate of the consumer system is greater than or equal to the preset first load upper limit value, the consumer system is expanded.
[0125] In this embodiment, the expansion management of the consumer system mainly considers its system load rate. If the system load rate of a consumer system is stable above the first load upper limit within a preset time, it means that the system load pressure is large, and the system is expanded to ensure the normal operation of the system.
[0126] Exemplarily, the consumer system may be Figure 1 For the TSP system in the example, the first load upper limit value may be set to 80%. If it is detected that the system load rate of the TSP system is stable above 80% within 5 minutes, the capacity of the TSP system is expanded.
[0127] Furthermore, when the consumption system is expanded according to the system load rate, a gradual expansion method can be adopted, where only one node is added each time, and then the system load rate is judged. If the system load rate is still high, a new node is added again, and the system load rate is judged again. This is repeated to achieve the most reasonable load distribution. Among them, the system load rate can be measured by CPU usage, memory usage, network traffic, etc. In this embodiment, the TSP system under the second type can be regarded as an I / O intensive system, and its system load rate is measured by memory usage.
[0128] Optionally, the at least one system of the second type includes: a middleware data system and at least one consumer system, and the consumer system is located downstream of the middleware data system.
[0129] In this embodiment, the middleware data system refers to Figure 1 In the KAFKA system, the consumer system includes the TSP system and one or more business systems that interact with the TSP system. The middleware data system and multiple consumer systems together constitute the second type of system set.
[0130] According to the second management strategy, at least one system under the second type is expanded based on the system load rate and the backlog of middleware data, including: when the backlog of middleware data of any data type is greater than or equal to the preset backlog upper limit, the middleware data system and the consumer system are jointly expanded based on the expansion strategy corresponding to the data type; wherein different data types correspond to different expansion strategies.
[0131] In this implementation, the middleware data system is expanded according to the backlog of the middleware data, that is, according to the backlog of a certain type of data, the number of partitions required for the data type in the KAFKA system is appropriately increased to improve the KAFKA system's data acceptance capacity and avoid data loss for subsequent use by the TSP system. Expanding the TSP system and one or more business systems that interact with the TSP system means increasing the number of nodes of each system to increase the system's data consumption speed and reduce the amount of data accumulation.
[0132] In specific implementation, for the middleware data system, when the backlog of middleware data of a certain data type is greater than or equal to the preset backlog upper limit, the middleware data system and the consumer system are linked to expand based on the expansion strategy corresponding to the data type. Different data types can correspond to the same backlog upper limit, such as 100,000, or different backlog upper limits.
[0133] In this implementation, the middleware data system and the consumer system are linked to expand capacity, mainly because there is usually frequent data exchange between the consumer system and the middleware data system. If only the number of resources of the middleware data system or TSP system is adjusted separately, it is likely to cause the other related systems to respond untimely, thereby affecting the service effect and quality of the cloud. Therefore, this application realizes the linkage expansion of the second type of system by linking the expansion judgment and expansion quantity of the middleware data system and the consumer system together, so as to improve the quality of cloud service.
[0134] Furthermore, the expansion strategy corresponding to the data type includes: the expansion ratio relationship between the middleware data system and the consumer system, and the expansion quantity of the middleware data system under the data type;
[0135] Based on the expansion strategy corresponding to the data type, the middleware data system and the consumer system are expanded in a linked manner, including: determining the expansion quantity of the consumer system based on the expansion quantity of the middleware data system under the data type and the expansion ratio relationship between the middleware data system and the consumer system; and expanding the middleware data system and the consumer system in a linked manner according to their respective expansion quantities.
[0136] In this implementation, the expansion ratio of the middleware data system and the consumer system is fixed, but the specific expansion quantity is related to the data type. Therefore, each time the expansion judgment is made, it is necessary to first determine the expansion quantity of the middleware data system under the data type according to the data type. Then, according to the expansion ratio of the middleware data system and the consumer system, the expansion quantity of the consumer system is further determined, and finally the expansion is carried out according to the corresponding expansion quantity of each system, so as to realize the linkage expansion of the middleware data system and the consumer system.
[0137] In specific implementation, the expansion strategy can be: the number of new partitions in the KAFKA system: the number of new nodes in the TSP system: the number of new nodes in business system 1: the number of new nodes in business system 2 = N: N: N / 2: N / 3. Among them, for the proportional relationship between the four, the number of new partitions in the KAFKA system and the number of new nodes in the TSP system need to be synchronized, and the proportional relationship between the number of new nodes in the subsequent business system 1 and business system 2 and the number of new nodes in the TSP system can be considered according to the actual interaction between the business system and the TSP system. If the interaction between the business system and the TSP system is more frequent, the ratio is closer to synchronization. In addition, the specific size of N is related to the data type. The more urgent the data, the larger the corresponding N, that is, different data types correspond to different N. For example, for status data, N is 1, and for alarm data, N is 2. When the calculation result of the number of new nodes in the business system is a decimal, round it to the right.
[0138] For example, when the backlog of status data reaches 100,000, the KAFKA system adds 1 partition, the TSP system adds 1 node, business system 1 adds 1 node, and business system 2 adds 1 node. When the backlog of alarm data reaches 100,000, the KAFKA system adds 2 partitions, the TSP system adds 2 nodes, business system 1 adds 1 node, and business system 2 adds 1 node.
[0139] In the prior art, conventional capacity expansion methods usually only expand the number of system nodes, but do not consider expanding the number of partitions of the KAFKA system. Figure 1 As shown in the figure, as the number of vehicles connected increases, the backlog of middleware data will become more and more serious, and the number of pulls and the time interval of pulls for a single system node (TSP system node) are usually certain, so the data consumption speed is positively correlated with the number of partitions of the specific TOPIC. For example, 1 partition of TOPIC corresponds to one node consumption, and 2 partitions can correspond to two nodes consuming in parallel. If, according to the existing technology, only the number of nodes in the system is expanded without considering the expansion of the number of partitions of the KAFKA system, then when TOPIC has only two partitions and the number of consumer nodes (TSP system nodes) increases to three, one of the nodes will be idle. Therefore, if you simply increase the number of system nodes, the expansion result may not be ideal.
[0140] In this embodiment, when expanding the capacity of the system under the second type, on the one hand, the middleware data system and the subsequent consumer system are linked to expand the capacity according to the backlog of the middleware data, rather than simply increasing the number of nodes of the consumer system as in the prior art, so as to achieve a reasonable allocation of system resources. On the other hand, when the middleware data system and the subsequent consumer system are linked to expand the capacity, the specific expansion quantity of each system is determined by the data type. Therefore, for more urgent data such as alarm data, several more KAFKA partitions and TSP nodes are added at one time to ensure that these data can be processed in a timely manner and promote the normal operation of vehicle-side tasks.
[0141] Furthermore, when expanding the capacity of the second type of system, in addition to expanding the middleware data system and subsequent consumer systems in conjunction with each other according to the backlog of the middleware data, the system load rate of each consumer system may also be comprehensively considered. For example, when it is detected that the system load rate of a consumer system is greater than or equal to the preset first load upper limit, the consumer system is expanded.
[0142] For example, assume that initially, reminder data requires 3 partitions, diagnostic data requires 3 partitions, alarm data requires 1 partition, and status data requires 2 partitions. At the same time, there are 3 TSP system nodes. After load balancing, for the data of 9 partitions, each TSP node will consume the data of 3 partitions at the same time, which may cause the load of the 3 TSP nodes to be relatively large. If the load of one or several nodes exceeds 80% for a period of time, a new node will be added, and the data of 9 partitions will eventually be allocated to 4 nodes. Each node can be allocated according to 3, 2, 2, 2, which means that the first node is responsible for consuming the data of 3 reminder partitions, the second node is responsible for consuming the data of 2 diagnostic partitions, the third node is responsible for consuming the data of 1 diagnostic partition and 1 alarm partition, and the fourth node is responsible for consuming the data of 2 status partitions.
[0143] like Figure 3 As shown, when expanding the capacity of the second type of system, by comprehensively considering the backlog of middleware data and the system load rate of each consumer system, when it is detected that any monitoring indicator meets the corresponding expansion condition (this part can be set as follows Figure 3 The monitoring system shown is used to detect the conditions of each system in the data link), and then the capacity is expanded to manage the second type of system more comprehensively and accurately.
[0144] Optionally, the at least one system under the second type includes: a middleware data system and at least one consumer system, the consumer system being located downstream of the middleware data system;
[0145] According to the second management strategy, at least one system of the second type is scaled down based on the system load rate, including: for any consumer system, when the system load rate of the consumer system is less than or equal to the preset first load lower limit, the consumer system is scaled down; and / or, when the system load rates of multiple consumer systems meet the preset scaling down conditions, the middleware data system is scaled down.
[0146] In this implementation, when the consumer system (TSP system and one or more business systems interacting with the TSP system) is judged to be reduced in capacity, it is mainly measured based on the system load rate of each consumer system itself. For example, when it is detected that the system load rate of a consumer system is less than or equal to the preset first load lower limit, the consumer system is reduced in capacity.
[0147] In specific implementation, the first load lower limit can be set to 50%. If the system load rate of a consumer system is stable below 50% within a preset time (for example, 5 minutes or 10 minutes), it means that the system load pressure is relatively small. In order to save cloud service fees, the system can be scaled down. When scaling down, a gradual scaling method can be adopted, deleting only one node at a time, and then judging the system load rate. If the system load rate is still low, delete another node and judge the system load rate again. Repeat this process to achieve the most reasonable load distribution.
[0148] In addition, when scaling down the middleware data system (KAFKA system), the overall measurement is mainly based on the system load rates of multiple consumer systems. The preset scaling down condition refers to: among all consumer systems, whether the system load rates of consumer systems exceeding the preset proportion are all lower than the first load lower limit. For example, if the system load rates of more than 90% of consumer systems are all lower than the first load lower limit, it means that the data processing pressure of most consumer systems is not large at present, and it also means that the amount of data that the middleware data system needs to store is not large. At this time, it is considered that the preset scaling down condition is met, and the middleware data system is scaled down. When scaling down, only one KAFKA partition is deleted each time, and then the overall system load rate is judged. If the overall system load rate is still continuously low and meets the preset scaling down condition, a KAFKA partition is deleted again, and the preset scaling down condition is judged again. Repeat this execution to achieve the scaling down management of the middleware data system.
[0149] In this embodiment, each consumer system is individually scaled down through its own system load rate. At the same time, the middleware data system is scaled down based on the overall system load rate of multiple consumer systems. This enables more comprehensive and accurate management of each system under the second type, thereby ensuring the normal operation of cloud services and saving cloud service fees.
[0150] Further, expanding or reducing the capacity of at least one system of the second type includes:
[0151] Based on the position of the second type of system in the Internet of Vehicles data link, the middleware data system and at least one consumer system are expanded in order from downstream to upstream; or, based on the position of the second type of system in the Internet of Vehicles data link, the middleware data system and at least one consumer system are reduced in order from upstream to downstream.
[0152] In this implementation, after the number of nodes that need to be expanded for each system resource under the second type is obtained according to the expansion strategy of the above-mentioned linkage expansion, it is also necessary to determine the expansion order of each system, such as whether to expand from upstream to downstream, or from downstream to upward. In this regard, the inventors have found, based on long-term observations and practices, that if the expansion is directly from upstream to downstream, there will be a problem, that is, the number of KAFKA partitions will suddenly increase. Since the number of partitions represents the number of concurrencies, the data traffic pressure faced by the downstream TSP system will increase. Similarly, a sudden increase in the traffic of the TSP system will also cause a surge in the pressure of the subsequent business system, which may cause a system behind the link to be overwhelmed by the surge in traffic, and it will go down before it can take over the business and expand the capacity.
[0153] Therefore, in the present application, when expanding the capacity of each system resource under the second type, based on the position of the second type of system in the Internet of Vehicles data link, the number of nodes of at least one consumer system is expanded in order from downstream to upstream, and then the number of partitions of the middleware data system is expanded, that is, gradually expanding from downstream to upstream to ensure the normal operation of cloud services.
[0154] Similarly, when scaling down the system resources under the second type according to the system load rate, based on the position of the second type of system in the Internet of Vehicles data link, the number of partitions of the middleware data system is reduced from upstream to downstream, and then the number of nodes of at least one consumer system is reduced, that is, gradually scaling down from upstream to downstream to ensure the normal operation of cloud services.
[0155] Optionally, according to the third management strategy, based on the system load rate, the capacity of at least one system under the third type is expanded or reduced, including:
[0156] For any third type of system, when the system load rate is greater than or equal to the preset second load upper limit value, the system is expanded; or, when the system load rate is less than or equal to the preset second load lower limit value, the system is reduced.
[0157] In this embodiment, if Figure 1As shown in Figure 1, the third type of system mainly includes one or more relatively independent business systems and big data systems at the downstream of the Internet of Vehicles data link. This type of system is at the last node of the data link and often involves data calculation and data storage, such as big data analysis and various common middle-end data management systems.
[0158] For the third type of system, the capacity expansion or contraction management is also performed separately according to the system load rate of each system. The management process is similar to the process of managing the consumer system in the second type according to the system load rate, and will not be repeated here. It should be noted that the second load upper limit value can be the same as the first load upper limit value, or it can be different. For example, the first load upper limit value is set to 80%, and the second load upper limit value is set to 70%. Similarly, the second load lower limit value can be the same as the first load lower limit value, or it can be different. This application does not make specific restrictions on this.
[0159] Furthermore, the method further comprises:
[0160] S301: For any third type of system, obtain the target connection number of the target database connected to the system.
[0161] In this implementation, since the main tasks of the third type of system involve data calculation and data storage, each system under the third type is connected to a corresponding database, namely, the target database. For example, the target database connected to business system A under the third type is database 1, and the target database connected to business system B is database 2.
[0162] In specific implementation, no matter which database, the database connection resources are usually relatively fixed, so for any target database, the number of database connections it has is fixed. For example, the target database connected to business system A is database 1. When database 1 is a MYSQL database, a maximum of 200 database connections can be set. At this time, the target number of connections corresponding to the target database of business system A is 200.
[0163] Furthermore, when business system A has one node A1, it can only interact with the target database through node A1 to read or write data. When business system A has two nodes A1 and A2, it can interact with the target database through nodes A1 and A2 to read or write data. In other words, for any system under the third type, the target number of connections to the target database corresponding to the system is actually divided among all system nodes owned by the system.
[0164] S302: When the number of connections between the system and the target database reaches the target number of connections, stop expanding the system.
[0165] In this embodiment, when the capacity of the system belonging to the third type is expanded according to the system load rate, a gradual expansion method is adopted: whenever the system load rate of the system is greater than or equal to the preset second load upper limit value, the system is expanded, a new node is added, and this is repeated. That is, in principle, for the system belonging to the third type, it can be expanded infinitely. However, considering that the target number of connections of the target database connected to the system is fixed, when the target number of connections is used up, that is, when each connection of the target database is used, no matter how the system nodes are expanded, the read and write efficiency cannot be improved. Therefore, in this embodiment, the target number of connections of the target database corresponding to the system is used as the judgment condition for stopping the expansion of the system. When the number of connections between the system and the target database reaches the target number of connections, the expansion of the system is stopped, thereby avoiding meaningless expansion and wasting cloud service fees.
[0166] Please refer to Figure 4 , Figure 4 FIG. 1 is a schematic diagram of the expansion of the third type of system in one embodiment of the present application. Figure 4 As shown, assuming that at the beginning, system A has only one node A1. When A1 is initialized, the number of connections with database 1 is 10, and the target number of connections with database 1 is 100. At this time, the connection of database 1 is still sufficient, and there are idle database connections at any time. As the uploaded data flow increases, when the utilization rate of the 10 connections when A1 is initialized reaches 100%, that is, when the existing number of connections of the current node A1 is all occupied, the number of automatically added connections is 11. When the utilization rate of the 11 connections reaches 100%, the number of automatically added connections is 12. In this way, the number of connections with database 1 continues to increase. Assuming that the number of connections between node A1 and database 1 increases to 50, the monitoring system detects that the system load rate of system A reaches the preset second load upper limit value (for example, 70%), indicating that the load pressure of system A is relatively large if it only relies on one node A1 to work at this time, so it is necessary to expand the capacity of system A and request to add node A2 to interact with database 1 through nodes A1 and A2 at the same time, and perform read and write operations in parallel. After adding node A2, the number of connections between A2 and database 1 is 10 when it is initialized. Then, as the uploaded data flow increases, the number of connections between node A2 and database 1 gradually increases, and the load rate of node A2 also gradually increases. Assuming that the number of connections between node A2 and database 1 increases to 50, the monitoring system detects that the system load rate of system A reaches the preset second load upper limit (for example, 70%) again. At this time, system A should be expanded again. However, since the total number of connections between nodes A1 and A2 and database 1 is already 100, the target number of connections for database 1 has been reached, and it is meaningless to continue expanding the capacity, so the system expansion is stopped.
[0167] Optionally, the method further comprises:
[0168] According to the expansion history of the target period, the target expansion quantity of all systems in the Internet of Vehicles data link is determined; before the target period, the system is expanded in advance based on the target expansion quantity.
[0169] This embodiment aims to expand the system resources in the data link in advance according to the expansion history of the target time period. For example, for the morning rush hour, the historical vehicle driving situation generally gradually rises and reaches a peak from 7:30-8:30 in the morning, and gradually decreases to normal traffic from 8:30 to 9:30. Based on this, this embodiment preheats 15 minutes in advance and expands the relevant middleware and system to a certain level at 7:15. The resource allocation after preheating is excessive in a short time (7:15-7:30, 15 minutes), but will gradually reach saturation as the traffic increases. In addition, in the subsequent process, the traffic changes will be monitored in real time, and according to the real-time management strategy, the capacity will be gradually expanded to the peak to maximize the resources, and then slowly reduced.
[0170] In this implementation, the target time period refers to a period when the number of vehicles on the road changes dramatically. For example, morning and evening rush hours and other periods. During these periods, the volume of traffic will change greatly in a short period of time, experiencing a process of rapid increase and rapid decrease. The expansion history refers to the historical expansion of the same period (Monday to Monday, Sunday to Sunday) and the same time period in the past week or weeks. According to the expansion history of the target time period, the target expansion quantity of all systems in the Internet of Vehicles data link is determined, which mainly refers to determining the basic configuration plan of each system resource before this target time period, such as how many nodes should be set for system A and how many nodes should be set for system B. Among them, the target expansion quantity is related to the resource configuration corresponding to the peak traffic (when the data traffic is the largest) in the expansion history of the target time period.
[0171] In specific implementation, 70% of the resource configuration quantity corresponding to the peak traffic can be used as the target expansion quantity for this early expansion. For example, system A configured 20 EMQ system nodes and 10 TSP system nodes during the peak traffic of the morning rush hour last Monday. When expanding in advance this Monday, the target expansion quantity of EMQ system nodes is 14, and the target expansion quantity of TSP system nodes is 7. Then at 7:15, according to the current existing resource settings, the EMQ system nodes are expanded to 14 and the TSP system nodes are expanded to 7 to achieve early preheating.
[0172] In addition, the number of resource configurations corresponding to the peak traffic can refer only to the number of resource configurations corresponding to the same period and time period in the past week, or can refer to the average value of the number of resource configurations corresponding to the same period and time period in the past few weeks. This application does not make any specific restrictions on this.
[0173] In this embodiment, for target time periods such as morning and evening peaks, if the system resources in the data link are expanded based solely on the real-time expansion strategy, the expansion response may be delayed due to the surge in data volume. In this regard, this application expands the capacity to a certain extent in advance based on the expansion history of the target time period, and then, on this basis, according to the real-time data traffic situation, the expansion or reduction strategy is used to perform real-time expansion or reduction. Thus, by rationally planning the cloud resources of the Internet of Vehicles according to real-time traffic, more resources are used to complete traffic access and calculation during peak traffic periods, and some resources are released during low traffic periods, which can not only complete the normal operation of various platform systems of the Internet of Vehicles, but also save cloud service fees.
[0174] In the Internet of Vehicles industry, it is well known that data generation has a strong regularity, such as the common morning and evening peaks, and weekend traffic is generally higher than weekdays, and holiday traffic is even higher. In this case, the cloud resources of the Internet of Vehicles should be reasonably planned according to real-time traffic, using more resources to complete traffic access and calculation during peak traffic periods, and releasing some resources during low traffic periods, which can not only complete the normal operation of the Internet of Vehicles platform, but also save a lot of costs.
[0175] Optionally, at least one system under each system type is expanded, including:
[0176] When the current time is within a preset date, at least one system under each system type is expanded according to a preset first expansion range.
[0177] In this embodiment, the preset date refers to a period with a large traffic volume, such as the National Day (10.1-10.7) and other holidays. The first expansion range specifically includes the expansion range of any system in the Internet of Vehicles data link when the capacity is expanded within the preset date. For example, only one node is added each time the capacity is expanded, or two nodes are added each time, or a step increase is made according to the preset number.
[0178] In addition, when the current time is not within the preset date, at least one system under each system type is expanded according to a preset second expansion range; wherein the second expansion range is smaller than the first expansion range.
[0179] In this embodiment, the second capacity expansion range specifically includes the capacity expansion range when any system in the Internet of Vehicles data link does not expand within the preset date. It should be noted that the second capacity expansion range is smaller than the first capacity expansion range, because the traffic volume is often much higher during holidays than on weekdays, so the capacity expansion method during holidays can be more aggressive than on weekdays to avoid capacity expansion response delays and affect the quality of cloud services.
[0180] For example, assuming that it is not within the preset date, that is, the second expansion range is N / 3+1 during normal times. Then, in the case of only one node initially, the first expansion requires adding 1 / 3+1 nodes, rounding to the left means adding 1 node, so there are 2 nodes in total after the first expansion. Then, the second expansion requires adding 2 / 3+1 nodes, rounding to the left means adding 1 node, so there are 3 nodes in total after the second expansion. After that, the third expansion requires adding 3 / 3+1 nodes, that is, adding 2 nodes, so there are 5 nodes in total after the third expansion. In this way, the expansion continues in the N / 3+1 manner, and the number of nodes after expansion is 1, 2, 3, 5, 7, 9, 12... until the maximum resource configuration is reached. The first expansion range within the preset date, that is, during holidays, is N / 2+1. Then, in the case of only one node initially, the number of nodes after expansion is 1, 2, 4, 6, 9, 12, 16... until the maximum resource configuration is reached.
[0181] This embodiment sets different specific expansion methods for holidays and non-holidays, and adopts a larger and more aggressive single mobilization method during holidays to expand the capacity of each system in the Internet of Vehicles data link, which can not only ensure the reasonable planning of resources, but also ensure the stable operation of cloud services.
[0182] Please refer to Figure 5 Based on the same inventive concept, the second aspect of the embodiment of the present application provides a cloud server management system, and the cloud server management system 500 includes:
[0183] The multi-dimensional monitoring module 501 is used to monitor the status of multiple systems in the Internet of Vehicles data link to obtain multi-dimensional status data of the Internet of Vehicles data link; the multi-dimensional status data includes the number of vehicles traveling, the system load rate and the backlog of middleware data;
[0184] A management policy determination module 502 is used to determine the system types to which the multiple systems belong and the management policies corresponding to each system type;
[0185] The classification management module 503 is used to expand or reduce the capacity of at least one system under each system type according to the management policy corresponding to each system type and based on one or more of the multi-dimensional status data.
[0186] Optionally, the system type includes a first type, a second type and a third type, the first type of system refers to a system located upstream of a vehicle networking data link, the second type of system refers to a system located midstream of a vehicle networking data link, and the third type of system refers to a system located downstream of a vehicle networking data link;
[0187] The management strategy determination module 502 includes:
[0188] A first determination submodule is used to determine that the management policy of the system is a first management policy when the system type to which the system belongs is a first type; the first management policy is a management policy for the system of the first type;
[0189] A second determination submodule is used to determine that the management policy of the system is a second management policy when the system type to which the system belongs is a second type; the second management policy is a management policy for the second type of system;
[0190] The third determination submodule is used to determine that the management policy of the system is a third management policy when the system type to which the system belongs is a third type; the third management policy is a management policy for the third type of system.
[0191] Optionally, the classification management module 503 includes:
[0192] A first management submodule is configured to expand or reduce the capacity of at least one system of the first type based on the number of vehicles traveling according to a first management strategy; and / or,
[0193] A second management submodule is configured to expand or reduce the capacity of at least one system of the second type according to a second management strategy based on the system load rate and / or the backlog of middleware data; and / or,
[0194] The third management submodule is used to expand or reduce the capacity of at least one system of the third type based on the system load rate according to the third management strategy.
[0195] Optionally, the first management submodule includes:
[0196] An interval determination unit, for obtaining, for any system of the first type, a target flow interval corresponding to a current number of nodes of the system; wherein different numbers of nodes correspond to different target flow intervals;
[0197] an expansion unit, configured to expand the capacity of at least one system of the first type when the number of vehicles traveling is greater than or equal to a target upper limit value; or
[0198] The capacity reduction unit is used to reduce the capacity of at least one system of the first type when the number of vehicles traveling is less than a target lower limit value.
[0199] Optionally, at least one system under the second type includes a middleware data system;
[0200] The second management submodule includes: an expansion unit, which is used to expand the capacity of the middleware data system when the backlog quantity of the middleware data of any data type is greater than or equal to a preset backlog upper limit.
[0201] Optionally, at least one system under the second type comprises a consumer system;
[0202] The second management submodule includes: an expansion unit, which is used to expand the capacity of any consumer system when the system load rate of the consumer system is greater than or equal to a preset first load upper limit value.
[0203] Optionally, the at least one system under the second type includes: a middleware data system and at least one consumer system, the consumer system being located downstream of the middleware data system;
[0204] The second management submodule includes: an expansion unit, which is used to expand the middleware data system and the consumer system in a linked manner based on the expansion strategy corresponding to the data type when the backlog of middleware data of any data type is greater than or equal to a preset backlog upper limit; different data types correspond to different expansion strategies.
[0205] Optionally, the expansion strategy corresponding to the data type includes: an expansion ratio relationship between the middleware data system and the consumer system, and an expansion quantity of the middleware data system under the data type;
[0206] The expansion unit is specifically used to: determine the expansion quantity of the consumer system based on the expansion quantity of the middleware data system under the data type and the expansion ratio relationship between the middleware data system and the consumer system; and expand the middleware data system and the consumer system in a linked manner according to their respective expansion quantities.
[0207] Optionally, the at least one system under the second type includes: a middleware data system and at least one consumer system, the consumer system being located downstream of the middleware data system;
[0208] The second management submodule also includes: a scaling-down unit, which is used to scale down the capacity of any consumer system when the system load rate of the consumer system is less than or equal to a preset first load lower limit; and / or, to scale down the middleware data system when the system load rates of multiple consumer systems meet preset scaling-down conditions.
[0209] Optionally, the second management submodule is specifically used for:
[0210] Based on the position of the second type of system in the Internet of Vehicles data link, expand the middleware data system and at least one consumer system in order from downstream to upstream; or,
[0211] Based on the position of the second type of system in the Internet of Vehicles data link, the middleware data system and at least one consumer system are scaled down in order from upstream to downstream.
[0212] Optionally, the third management submodule includes:
[0213] an expansion unit, for any third type of system, when the system load rate of the system is greater than or equal to a preset second load upper limit value, expanding the system; or,
[0214] The capacity reduction unit is used to reduce the capacity of the system when the system load rate of the system is less than or equal to a preset second load lower limit value.
[0215] Optionally, the third management submodule further includes:
[0216] The expansion stopping unit is used to obtain, for any third type of system, a target number of connections of a target database connected to the system; and stop expanding the system when the number of connections between the system and the target database reaches the target number of connections.
[0217] Optionally, the system further comprises:
[0218] The preheating expansion module is used to determine the target expansion quantity of all systems in the Internet of Vehicles data link according to the expansion history of the target period; before the target period, the system is expanded in advance based on the target expansion quantity.
[0219] Optionally, the classification management module 503 is specifically used for:
[0220] When the current time is within a preset date, at least one system under each system type is expanded according to a preset first expansion range;
[0221] When the current time is not within the preset date, at least one system under each system type is expanded according to a preset second expansion range; wherein the second expansion range is smaller than the first expansion range.
[0222] As for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0223] On the third aspect, based on the same inventive concept, an embodiment of the present application provides a storage medium, in which machine executable instructions are stored. When the machine executable instructions are executed by a processor, the cloud server management method proposed in the first aspect of the present application is implemented.
[0224] It should be noted that the specific implementation of the storage medium in the embodiment of the present application refers to the specific implementation of the cloud server management method proposed in the first aspect of the embodiment of the present application, and will not be repeated here.
[0225] In the fourth aspect, based on the same inventive concept, refer to Figure 6An embodiment of the present application provides an electronic device 600, including a processor 601 and a memory 602; the memory 602 stores machine executable instructions that can be executed by the processor 601, and the processor 601 is used to execute the machine executable instructions to implement the cloud server management method proposed in the first aspect of the present application.
[0226] It should be noted that the specific implementation of the electronic device 600 in the embodiment of the present application refers to the specific implementation of the cloud server management method proposed in the first aspect of the embodiment of the present application, and will not be repeated here.
[0227] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0228] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, devices, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0229] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0230] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0231] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0232] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0233] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0234] The above is a detailed introduction to a cloud server management method, system, medium and device provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A cloud server management method, characterized in that: The method comprises: Performing status monitoring on multiple systems in a vehicle networking data link to obtain multi-dimensional status data of the vehicle networking data link; the multi-dimensional status data includes the number of vehicles traveling, the system load rate, and the backlog of middleware data; Determine the system type to which each of the multiple systems belongs and the management policy corresponding to each of the system types; According to the management policy corresponding to each of the system types, and based on one or more of the multi-dimensional status data, at least one system under each of the system types is expanded or reduced.
2. The method according to claim 1, characterized in that The system types include a first type, a second type and a third type, wherein the first type of system refers to a system located upstream of the vehicle networking data link, the second type of system refers to a system located midstream of the vehicle networking data link, and the third type of system refers to a system located downstream of the vehicle networking data link; Determining system types corresponding to the multiple systems and management policies corresponding to each of the system types includes: In a case where the system type to which the system belongs is the first type, determining that the management policy of the system is a first management policy; the first management policy is a management policy for systems of the first type; In a case where the system type to which the system belongs is the second type, determining that the management policy of the system is a second management policy; the second management policy is a management policy for the system of the second type; In a case where the system type to which the system belongs is the third type, the management policy of the system is determined to be a third management policy; the third management policy is a management policy for systems of the third type.
3. The method according to claim 2, characterized in that According to the management strategy corresponding to each of the system types, and based on one or more of the multi-dimensional status data, at least one system under each of the system types is expanded or reduced, including: According to the first management strategy, based on the number of vehicles traveling, at least one system of the first type is expanded or reduced in capacity; and / or, in accordance with the second management strategy, expanding or reducing the capacity of at least one system of the second type based on the system load rate and / or the backlog of middleware data; And / or, according to the third management strategy, based on the system load rate, the capacity of at least one system of the third type is expanded or reduced.
4. The method according to claim 3, characterized in that According to the first management strategy, based on the number of vehicles traveling, at least one system of the first type is expanded or reduced in capacity, including: For any system of the first type, obtaining a target flow interval corresponding to the current number of nodes of the system; wherein different numbers of nodes correspond to different target flow intervals; When the current number of vehicles traveling is greater than or equal to the target upper limit value of the target flow interval, the system is expanded; or, when the current number of vehicles traveling is less than the target lower limit value of the target flow interval, the system is reduced.
5. The method according to claim 3, characterized in that: At least one system of the second type includes a middleware data system; According to the second management strategy, based on the backlog of the middleware data, the capacity of at least one system of the second type is expanded, including: For the middleware data system, when the backlog quantity of the middleware data of any data type is greater than or equal to a preset backlog upper limit, the middleware data system is expanded.
6. The method according to claim 3, characterized in that At least one system of the second type comprises a consumer system; According to the second management strategy, based on the system load rate, expanding the capacity of at least one system of the second type includes: For any of the consumer systems, when the system load rate of the consumer system is greater than or equal to a preset first load upper limit value, the capacity of the consumer system is expanded.
7. The method according to claim 3, characterized in that The at least one system under the second type includes: a middleware data system and at least one consumer system, the consumer system being located downstream of the middleware data system; According to the second management strategy, based on the system load rate and the amount of backlog of middleware data, the capacity of at least one system of the second type is expanded, including: When the backlog of middleware data of any data type is greater than or equal to a preset backlog upper limit, the middleware data system and the consumer system are linked and expanded based on the expansion strategy corresponding to the data type; different data types correspond to different expansion strategies.
8. The method according to claim 7, characterized in that The expansion strategy corresponding to the data type includes: the expansion ratio relationship between the middleware data system and the consumer system, and the expansion quantity of the middleware data system under the data type; Based on the expansion strategy corresponding to the data type, the middleware data system and the consumption system are linked to expand, including: Determine the capacity expansion quantity of the consumer system based on the capacity expansion quantity of the middleware data system under the data type and the capacity expansion ratio relationship between the middleware data system and the consumer system; The middleware data system and the consumer system are linked to expand capacity according to their respective expansion quantities.
9. The method according to claim 3, characterized in that: The at least one system under the second type includes: a middleware data system and at least one consumer system, the consumer system being located downstream of the middleware data system; According to the second management strategy, based on the system load rate, scaling down at least one system of the second type includes: For any of the consumer systems, when the system load rate of the consumer system is less than or equal to a preset first load lower limit value, scaling down the consumer system; And / or, when the system load rates of the plurality of consumer systems meet a preset reduction condition, the middleware data system is reduced in capacity.
10. The method according to claim 3, characterized in that The at least one system under the second type includes: a middleware data system and at least one consumer system, the consumer system being located downstream of the middleware data system; Expanding or reducing the capacity of at least one system of the second type includes: Based on the position of the second type of system in the IoV data link, the middleware data system and at least one of the consumer systems are expanded in order from downstream to upstream; or, Based on the position of the second type of system in the Internet of Vehicles data link, the middleware data system and at least one of the consumer systems are scaled down in order from upstream to downstream.
11. The method according to claim 3, characterized in that According to the third management strategy, based on the system load rate, the capacity of at least one system of the third type is expanded or reduced, including: For any of the third type of systems, when the system load rate of the system is greater than or equal to a preset second load upper limit value, the system is expanded; or, When the system load rate of the system is less than or equal to a preset second load lower limit value, the system is reduced in capacity.
12. The method according to claim 11, characterized in that The method further comprises: For any system of the third type, obtaining a target number of connections of a target database connected to the system; When the number of connections between the system and the target database reaches the target number of connections, the capacity expansion of the system is stopped.
13. The method according to claim 1, characterized in that The method further comprises: Determining the target capacity expansion quantity of all systems in the Internet of Vehicles data link according to the capacity expansion history of the target period; Before the target time period, the system is expanded in advance based on the target expansion amount.
14. The method according to claim 1, characterized in that Expanding at least one system of each system type includes: When the current time is within a preset date, at least one system of each system type is expanded according to a preset first expansion range.
15. A cloud server management system, characterized in that: The system comprises: A multi-dimensional monitoring module is used to monitor the status of multiple systems in the Internet of Vehicles data link to obtain multi-dimensional status data of the Internet of Vehicles data link; the multi-dimensional status data includes the number of vehicles traveling, the system load rate and the backlog of middleware data; A management policy determination module, used to determine the system type to which each of the multiple systems belongs and the management policy corresponding to each of the system types; The classification management module is used to expand or reduce the capacity of at least one system under each of the system types according to the management strategy corresponding to each of the system types and based on one or more of the multi-dimensional status data.
16. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the cloud server management method according to any one of claims 1 to 14 is implemented.
17. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, it implements the cloud server management method according to any one of claims 1 to 14.
Citation Information
Cited By
Capacity expansion method and device of application program, equipment and storage medium
CN119759456A
