ETC system resource dynamic allocation method based on virtualization technology
By adopting the multi-level resource allocation method and redundant architecture of virtualization technology in ETC systems, the problems of inflexible resource allocation and insufficient reliability of ETC system are solved, and more efficient resource utilization and system stability are achieved.
Patent Information
- Application Number
- CN202411545696.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-01
- Publication Date
- 2025-02-25
AI Technical Summary
The resource allocation of existing ETC systems is inflexible, resulting in insufficient processing capacity during peak traffic hours, transaction delays and congestion; resources are idle during low peak hours, resulting in waste, and at the same time, the system reliability is insufficient, which is prone to global paralysis due to single point failure.
Using a multi-level resource allocation method based on virtualization technology, we can dynamically adjust the system resource configuration to achieve accurate resource allocation by building multiple virtualized operating spaces. At the same time, a redundant architecture and timing prediction method are introduced for global updates and incremental updates in time segments to improve system stability and resource utilization.
It realizes the flexible allocation of ETC system resources, improves the system's processing capacity and response speed during peak periods, reduces resource waste in low peak periods, enhances the stability and reliability of the system, and shortens the failure recovery time.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of traffic technology, and in particular to a method for dynamically allocating ETC system resources based on virtualization technology. Background Art
[0002] The current ETC (Electronic Toll Collection) system is mainly composed of an onboard unit (OBU), a roadside unit (RSU), a toll station system, and a backend data center. When a vehicle passes through an ETC lane, the OBU communicates wirelessly with the RSU to complete vehicle identification and toll deduction operations. The toll station system is responsible for collecting and processing transaction data from each RSU and uploading it to the backend data center for storage and management.
[0003] The main core toll station systems of the existing ETC system are all installed in the servers of the toll stations, or a small part of them are operated in the form of shared server clusters. The main problem with the above application methods is the inflexible resource allocation: the traditional ETC system usually adopts a fixed hardware resource configuration and cannot dynamically adjust resource allocation according to actual business needs. During peak traffic hours, the system processing capacity may be insufficient, resulting in transaction delays, congestion and other problems; while during off-peak hours, system resources may be idle, resulting in resource waste. On the other hand, the reliability of the existing ETC system needs to be improved. The reason is that once a problem occurs in a certain execution link of the system during work, such as memory overflow, it may cause the entire ETC system to be paralyzed, affecting traffic efficiency.
[0004] Therefore, technicians considered introducing virtualization technology so that the resources of system hardware can be dynamically allocated. Among them, virtual machine technology can realize the virtualization of server resources, abstract and pool the CPU, memory, storage and network resources of physical servers, and dynamically allocate them to different virtual machines according to actual business needs. In the ETC system, virtual machine technology can be used to adjust system resources in real time according to changes in traffic flow, thereby improving the processing power and response speed of the system. For example, during peak traffic hours, more CPU and memory resources can be allocated to the toll processing virtual machine to ensure the rapid processing of transactions; during off-peak hours, resources can be recycled and allocated to other virtual machines in need to improve resource utilization. Furthermore, the application of virtualization technology can also improve the reliability of the ETC system, avoid the occurrence of global paralysis caused by a single system error, and reduce system downtime.
[0005] So far, the application of virtualization technology in ETC systems has gradually increased. For example, some ETC system providers have begun to use virtualization technology to build the back-end data center and toll station system of the ETC system. Through virtualization technology, server resources can be integrated and optimized, and the reliability and scalability of the system can be improved.
[0006] However, there are still some problems in the application of virtualization technology in ETC. For example, the virtualization technology currently used is mainly for the dynamic allocation of hardware resources, and the resource configuration of the entire virtual machine, without considering the resource configuration of individual components, which will lead to resource waste; and at this stage, there is no effective use of recycled idle resources. The reason is: when the traffic is off-peak, the information processing volume of the entire station is also low, even the cluster information processing volume of shared servers is also low, resulting in the inadequate use of idle system resources. Furthermore, the improvement of system stability is mainly through the virtual isolation effect to reduce the fault processing time and avoid the overall server downtime, and the ability to quickly restore work has not yet been achieved.
[0007] In summary, there is a need to improve the resource allocation technology of the existing ETC system in order to improve system efficiency, increase stability and multi-tasking capabilities. Summary of the invention
[0008] In view of the problems existing in the prior art, the present invention provides a method for dynamically allocating hardware resources in an ETC system under virtualization conditions, which improves system working efficiency, increases stability and multi-tasking processing capability.
[0009] To achieve the above purpose, the technical solution adopted by the present invention is as follows:
[0010] The present invention provides a method for dynamically allocating ETC system resources based on virtualization technology, which comprises the following steps:
[0011] Based on virtualization technology, multiple virtualized operation spaces are built in the server, and each virtualized operation space is configured with primary system resources;
[0012] Configure application components of the ETC system in at least one virtualized operating space and obtain the application virtualized operating space;
[0013] The server dynamically adjusts the system resource configuration quota of the application virtualization operation space in real time based on the dynamic resource allocation technology, so that the application virtualization operation space obtains dynamic primary virtualization resources;
[0014] Constructing a resource allocation model based on the past operation data of the application component, and performing secondary dynamic allocation of the primary virtualization resources through the resource allocation model, so that each application component in the application virtualization operation space obtains dynamic secondary virtualization resources;
[0015] A backup system of the application virtualization operation space is also configured in at least one virtualization space to obtain a backup virtualization operation space, and globally and incrementally update the backup virtualization operation space in different time periods based on a time series prediction method;
[0016] The application virtualization operation space and at least one corresponding backup virtualization operation space form a redundant architecture;
[0017] The server reclaims at least part of the idle system resources, and builds a test virtualization space based on the idle system resources; the test virtualization space performs hibernation and standby in time periods based on the timing prediction method;
[0018] When the server receives a test instruction, the server increases the allocated system resources to the test virtualization space based on the dynamic resource allocation technology.
[0019] Optionally, the test virtualization space is constructed with a resource sharing pool;
[0020] Setting at least part of the system resources configured in the test virtualization space to the resource sharing pool;
[0021] The test virtualization space is installed with test components for functional testing of the ETC system.
[0022] Optionally, the test components include a charging processing test component, a monitoring test component, and a data center test component;
[0023] The charging processing test component is used to: test the charging processing function and data processing performance;
[0024] The monitoring test component is used to: test the monitoring system functions and multi-device interactivity;
[0025] The data center test component is used to: test data storage, management and processing functions.
[0026] Optionally, the test component has exclusive access to the resource sharing pool or shared access to the resource sharing pool;
[0027] When a plurality of the test components share access to the resource sharing pool, the access strategy includes an independent access strategy, a concurrent access strategy or a mixed access strategy.
[0028] Optionally, the method for constructing the virtualized operating space includes:
[0029] Acquire server hardware information, and filter virtualization software based on the server hardware information;
[0030] Checking the compatibility of the virtualization software with the server hardware;
[0031] When the compatibility meets the working conditions, mounting the installation medium of the virtualization software on the data interface of the server, and installing the virtualization software based on the boot program;
[0032] After the virtualization software is installed, a virtualization environment is configured for the server;
[0033] When the virtualization environment configuration is completed, a plurality of virtualization operation spaces are created in the virtualization environment.
[0034] Optionally, the virtualization environment configuration includes primary resource pool planning, storage and network configuration;
[0035] The primary system resources are obtained through the primary resource pool planning.
[0036] Optionally, the configuration method of the application component includes:
[0037] An installation system of the application component is installed in the application virtualization running space, and the application component is installed in the installation system of the application component.
[0038] Optionally, the method for constructing the resource allocation model includes:
[0039] Collect the system resource usage data of the application components throughout the year, and select typical traffic days based on time series characteristics;
[0040] Extracting environmental characteristic parameters of the typical traffic day, and using the environmental characteristic parameters and time tags as inputs of the resource allocation model, and using the system resource occupancy rate of the application component as output of the resource allocation model;
[0041] The resource allocation model is obtained through machine learning algorithm training.
[0042] Optionally, the typical traffic day screening method includes:
[0043] Collect the system resource usage data of the application components throughout the year, and perform data cleaning and preprocessing to obtain effective system resource usage data;
[0044] Clustering and classification are performed based on the effective system resource usage data and the corresponding time tags, and the typical traffic day is extracted.
[0045] Optionally, the update strategy of the backup virtualized operating space includes:
[0046] Predicting the system resource occupancy rate of the application virtualization running space in the next period based on a time series prediction method, and obtaining a predicted value;
[0047] When the predicted value is greater than a first threshold, the update strategy of the backup virtualization operation space for the next period is incremental update;
[0048] When the predicted value is less than or equal to the first threshold value and greater than the second threshold value, the update strategy of the backup virtualization operation space for the next period is incremental update and at least one global update;
[0049] When the predicted value is less than or equal to the second threshold, the update strategy for the next period of the backup virtualization running space is periodic global update.
[0050] Compared with the prior art, the present invention has the following beneficial effects:
[0051] The present invention realizes more accurate resource allocation for application components in the system through multi-level resource allocation, thereby saving resource overhead while ensuring that the components work normally; combined with the redundant design of virtual backup, the slave can quickly replace the host to take over the work under the condition of host failure, significantly shortening the downtime and enhancing the overall stability of the ETC system; and according to the time-divided update strategy, the resource consumption level of virtual backup is reduced, which can ensure the work efficiency of the host on the one hand, and utilize the recovered idle resources on the other hand. Furthermore, a test virtualization space is added to ensure that daily work and test work are carried out separately, which does not affect the overall work, and can also use idle resources to complete the test work without affecting the overall stability. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0053] Figure 1 This is a system diagram obtained under the conditions of using the method of the present invention. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0055] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0056] In the description of the present invention, “plurality” means two or more than two, unless otherwise clearly and specifically defined.
[0057] It is worth noting that the methods used in the present invention are all conventional methods unless otherwise specified; the raw materials and devices used are all conventional commercially available products, and their sources are not specifically limited unless otherwise specified.
[0058] This embodiment provides a method for dynamically allocating ETC system resources based on virtualization technology. Figure 1 As shown, the method comprises the following steps:
[0059] 1. Build a virtualized operation space: Based on virtualization technology, build multiple virtualized operation spaces in the server, each of which is configured with primary system resources;
[0060] Since there are various virtualization technologies and server configurations, there are incompatibility issues. Therefore, you first need to obtain server hardware information and screen virtualization software:
[0061] Check the server's hardware configuration, including CPU model, number of cores (whether the number of cores or threads meets the design of the corresponding software, such as early versions of some virtualization software only support 20 threads or less), memory capacity (memory type, frequency, etc.), storage device type and capacity (distinguishing hard disk formats, such as: FAT32, NTFS; hard disk type and read and write speed, etc.) and network interface information.
[0062] Based on the server hardware information, consider the performance and compatibility requirements and select appropriate virtualization software, such as VMware vSphere.
[0063] Check compatibility and install virtualization software:
[0064] Refer to VMware's Hardware Compatibility Guide (HCL) to check the compatibility of the server's hardware components with VMware vSphere. Confirm that the server's motherboard, CPU, network card and other hardware are within the supported range.
[0065] When the compatibility meets the working conditions, mount the installation media (ISO file) of the virtualization software to the CD-ROM drive of the server, or start the installation program through network boot. Follow the prompts of the installation wizard to set network parameters, storage configuration (choose to form a storage pool with some solid-state drives and mechanical hard drives), etc. After the installation is complete, initialize the server, create an administrator account and password, set access rights for the management interface, and only allow devices in a specific IP address segment to access the management console.
[0066] Configure the virtualization environment:
[0067] Primary resource pool planning: Plan the primary resource pool according to the server's resource situation and the needs of the ETC system. Divide the server's hardware resources such as CPU and memory into multiple resource pools. For example, create a high-priority resource pool for critical business applications, allocate 30 CPU cores / threads and 128GB of memory; create a normal resource pool for general business applications, allocate 10 CPU cores and 128GB of memory. At the same time, set the resource allocation strategy of the resource pool, such as setting the CPU and memory shares of the high-priority resource pool to higher values to ensure that resources can be obtained first when there is resource competition.
[0068] Storage and network configuration: For storage configuration, the server's solid-state drives and mechanical hard drives form a storage pool, and use VMware's storage virtualization technology, such as the VMFS (Virtual Machine File System) file system, to allocate storage resources to virtual machines. Create multiple storage volumes to store the virtual machine's operating system, application data, and backup data. For network configuration, create a virtual switch (vSwitch) and set it to different network modes. For example, create an external virtual switch to connect the server's physical network interface so that the virtual machine can access the external network; create an internal virtual switch for internal communication between virtual machines. Configure the virtual switch's port number, VLAN tag and other parameters to ensure network flexibility and security.
[0069] In a virtualized environment, use the management console of the virtualization software to create multiple virtualized operating spaces, which are also referred to as multiple virtual machines. Then, allocate the number of CPU cores, memory capacity, and storage resources under the minimum operating conditions to each virtual machine. For example, create a virtual machine and allocate 4 CPU cores, 8GB of memory, and 50GB of storage capacity. Install an operating system for the virtual machine, such as Windows Server or a Linux distribution (such as CentOS), and select the appropriate operating system version according to different application requirements.
[0070] 2. Configure the application virtualization running space;
[0071] Configure the application components of the ETC system in at least one virtualized operating space and obtain the application virtualized operating space. The steps include:
[0072] Install the installation system of the application components:
[0073] In the application virtual runtime space, install the installation system of the application component. For example, if the application component of the ETC system is developed based on Java, install JDK (Java Development Kit) and application server (such as Tomcat) as the installation system. Download the installation packages of JDK and Tomcat to the virtual machine and install them according to the installation wizard. Set the environment variables of JDK and configure the port number, connection pool and other parameters of Tomcat.
[0074] Install the application components:
[0075] Install the application components of the ETC system in the installation system. For example, install the fee processing application component, monitoring application component, and data center application component. Deploy the installation package of the application component to the virtual machine and install and configure it according to the installation guide. For the fee processing application component, configure database connection parameters, transaction processing rules, etc.; for the monitoring application component, set monitoring indicators, alarm thresholds, etc.; for the data center application component, configure data storage paths, backup strategies, etc.
[0076] 3. Multi-level dynamic adjustment of system resource allocation quota;
[0077] Real-time dynamic adjustment of primary virtualization resources:
[0078] Based on dynamic resource allocation technology, such as the distributed resource scheduler (DRS), the resource usage of the application virtualization runtime space is monitored in real time. Optionally, by monitoring the CPU usage, memory usage, network bandwidth usage and other indicators of the virtual machine, when it is found that the resource demand of a certain virtualization space (also referred to as: virtual machine in this embodiment) increases, DRS will automatically allocate idle resources in other virtual machines to the virtual machine, so that the application virtualization runtime space obtains dynamic primary virtualization resources. For example, if the CPU usage of the application virtualization runtime space exceeds 80%, DRS will allocate hardware resources from other virtual machines to the application virtualization runtime space to meet its transaction processing needs.
[0079] Build a resource allocation model and perform secondary dynamic allocation:
[0080] There are still some problems with the dynamic allocation of the above-level virtualization resources. That is, if the hardware utilization rate of a single component exceeds the threshold, it will cause the resource allocation of the virtualization space to increase. Although there is a linkage relationship between application components, the resource demand types and growth rates of each component are different. Therefore, in order to efficiently utilize the system hardware resources, secondary configuration is required, which can be understood as a multi-process resource configuration problem within the virtual system.
[0081] Specifically, a better configuration method is to make advance or timely configuration adjustments to system resources based on past experience. However, considering that the resource allocation task cannot occupy too many system resources and the manual preset is not accurate enough, an optional automation method is to build a resource allocation model based on the past operation data of the application components, and perform secondary dynamic allocation of primary virtualization resources through the resource allocation model, so that each application component in the application virtualization operation space obtains dynamic secondary virtualization resources.
[0082] Specifically, the method for constructing the resource allocation model in this embodiment includes:
[0083] Collect system resource usage data of application components throughout the year, and select typical traffic days based on time series characteristics.
[0084] Among them, data collection and screening of typical traffic days: Collect system resource usage data of application components throughout the year, including indicators such as CPU usage, memory usage, storage I / O, and network I / O. Clean and preprocess the data to remove outliers and noise data to obtain effective system resource usage data. For example, use the box plot method to remove data points that obviously deviate from the normal range. Then, based on the effective system resource usage data and the corresponding time series characteristics, typical traffic days are screened. Use the K-Means clustering algorithm to group daily data according to similarity. Select dates in categories with moderate size and no special events as typical traffic days. For example, after clustering, it is found that the traffic flow on a certain type of date shows normal morning and evening peaks, and there is no abnormal congestion or deserted situation due to holidays or large-scale events. These dates are determined as typical traffic days.
[0085] Construct a resource allocation model: Extract environmental characteristic parameters of a typical traffic day, such as time (hours, minutes, etc.), date type (weekdays, weekends, holidays, etc.), traffic flow, etc. Use these environmental characteristic parameters and time labels as inputs to the resource allocation model, and use the system resource occupancy rate of the application component as output. Use machine learning algorithms, such as the random forest algorithm, to train and obtain a resource allocation model. During the training process, divide the data into a training set and a test set, use the training set to train the model, and use the test set to evaluate the performance of the model. For example, by adjusting the parameters of the random forest algorithm, such as the number of trees and the maximum depth, the accuracy and generalization ability of the model can be improved.
[0086] Secondary dynamic allocation of secondary virtualization resources: Secondary dynamic allocation of primary virtualization resources is performed through the resource allocation model. When the application component is running, the environmental characteristic parameters are collected in real time and input into the resource allocation model to obtain the predicted system resource occupancy rate. According to the prediction results, the resource allocation of each application component (application component 1-application component n) in the application virtualization operation space can be dynamically adjusted in advance so that each application component can obtain dynamic secondary virtualization resources. For example, if the resource allocation model predicts that the resource demand of the charging processing application component will increase in a certain period of time, more CPU and memory resources will be allocated to it in advance to prevent system downtime, information flow blockage, etc. that may occur due to immediate adjustment.
[0087] 4. Configure and update the backup virtualized operation space;
[0088] Configure the backup virtualization run space:
[0089] A backup system for the application virtualization operation space is configured in at least one virtualization space to obtain a backup virtualization operation space. Optionally, a virtual machine cloning function is used to clone the application virtualization operation space as a backup virtualization operation space. The backup virtualization operation space uses shared storage to ensure the availability of the backup virtual machine, and sets the network connection and storage configuration of the backup virtual machine to be consistent with the virtual machine in the application virtualization operation space.
[0090] Update based on time series prediction method:
[0091] Predict system resource utilization: Based on time series prediction methods, such as the ARIMA (AutoRegressive IntegratedMoving Average) model, predict the system resource utilization of the virtualized operating space in the next period and obtain the predicted value. Collect historical system resource usage data, including CPU utilization, memory utilization and other indicators, and organize them according to time series. Use the ARIMA model to analyze and predict the data and determine the parameters of the model, such as the autoregressive order (p), difference order (d) and moving average order (q). Improve the prediction accuracy of the model by continuously adjusting the parameters.
[0092] Determine the update strategy: Determine the update strategy of the backup virtualization operation space according to the predicted value. When the predicted value is greater than the first threshold, the update strategy of the backup virtualization operation space for the next period is incremental update. For example, if it is predicted that the system resource occupancy rate of the application virtualization operation space will increase significantly in the next period, only the data in the backup virtual machine is incrementally updated to improve the efficiency of the backup. When the predicted value is less than or equal to the first threshold and greater than the second threshold, the update strategy of the backup virtualization operation space for the next period is incremental update and at least one global update; for example, in this case, in addition to the incremental update of the key data, the backup virtual machine is also globally updated to ensure the integrity of the backup. When the predicted value is less than or equal to the second threshold, the update strategy of the backup virtualization operation space for the next period is periodic global update; for example, if it is predicted that the system resource occupancy rate is low, the backup virtual machine is globally updated according to a certain period to ensure the integrity of the backup and the utilization of idle resources.
[0093] Therefore, the application virtualization operation space and the corresponding backup virtualization operation space form a redundant architecture, and operate in a master-slave mode, with the application virtualization operation space as the host and the backup virtualization operation space as the slave. Once the host fails, the slave can at least maintain incremental updates, which means that it can directly take over the host business, thereby achieving the ability to quickly restore business; accordingly, after maintenance, the host can be used as a new slave, or replace the current working slave to continue processing business.
[0094] 5. Build and manage test virtualization space;
[0095] Build a test virtualization space:
[0096] The server recycles at least some of the idle system resources and builds a test virtualization space based on the idle system resources. When the resource utilization rate of the application virtualization running space is low during non-peak hours, the resource recycling function of the virtual machine will recycle these idle resources and use them to create a test virtualization space. In the test virtualization space, at least one virtual machine can be created for functional testing of the ETC system without shutting down the running ETC system during the test. The details are as follows:
[0097] Build a resource sharing pool:
[0098] The test virtualization space is built with a resource sharing pool. Set at least part of the system resources configured in the test virtualization space as a resource sharing pool. For example, divide a part of the CPU and memory resources in the test virtualization space into a resource sharing pool for multiple test components to share. Use the resource pool function of the virtual machine to create a dedicated test resource pool and set the size and allocation policy of the resource pool.
[0099] Install the test suite:
[0100] Test components are installed in the test virtualization space for functional testing of the ETC system. The test components include the toll processing test component, the monitoring test component, and the data center test component. The toll processing test component is used to test the toll processing function and data processing performance. For example, by simulating a large amount of ETC transaction data, the processing speed and accuracy of the toll processing application component are tested. The monitoring test component is used to test the monitoring system function and multi-device interactivity. For example, by simulating different device states and events, the alarm function of the monitoring application component and the communication ability with other devices are tested. The data center test component is used to test the data storage, management, and processing functions. For example, the data backup and recovery function, data query performance, etc. of the data center application component are tested.
[0101] Manage access policies for resource pools:
[0102] Test components can access the resource sharing pool exclusively or in a shared manner. When multiple test components access the resource sharing pool in a shared manner, the access strategy includes independent access strategy, concurrent access strategy, or mixed access strategy. For example, if multiple test components are tested at different time points, an independent access strategy can be adopted, and each test component can exclusively use a portion of the resources in the resource sharing pool during its own time period. If multiple test components are tested at the same time, a concurrent access strategy can be adopted to ensure that each test component can obtain certain resources by setting resource shares and priorities. If the access mode of the test component includes both independent access and concurrent access, a mixed access strategy can be adopted to dynamically adjust resource allocation according to actual conditions.
[0103] Manage the sleep and standby of the test virtualization space in different time periods;
[0104] Sleep and standby management based on time series prediction method: The test virtualization space performs sleep and standby in different time periods based on the time series prediction method. Use the time series analysis method to analyze the time distribution and resource usage of historical test tasks. If it is found that there are fewer test tasks in a certain time period (such as at night or on weekends), the virtual machines in the test virtualization space can be set to sleep and resources can be released to other applications. When a new test task arrives, wake up the virtual machine. If the next period is about to enter a period of intensive test tasks, the virtual machine can be set to standby so that it can be quickly resumed.
[0105] Specifically, for the hibernation operation, the memory state of the virtual machine can be saved to the disk, and then the power of the virtual machine can be turned off. When the virtual machine needs to be woken up, the memory state is read from the disk and the operation of the virtual machine is resumed. For the standby operation, the memory state of the virtual machine is still saved in the memory, but some non-critical devices (such as the display, hard disk, etc.) are placed in low-power mode. The CPU will also enter a low-power operation state and will continuously monitor wake-up events. When implementing hibernation and standby operations, it is necessary to ensure the consistency of the test data and the correct preservation of the state.
[0106] Increase the allocation system resources of the test virtualization space when receiving test instructions;
[0107] When the server receives a test instruction, it increases the allocated system resources to the test virtualization space based on dynamic resource allocation technology. For example, if an important performance test task requires a large amount of resources, the virtual machine's DRS can automatically allocate idle resources in other virtual machines to the test virtualization space. You can set resource allocation policies and parameters based on the needs and priorities of the test task. At the same time, during the test process, continuously monitor the resource usage of the test virtualization space and adjust resource allocation based on actual conditions to ensure the smooth progress of the test task.
[0108] Finally, it should be noted that the above content is only used to illustrate the technical solution of the present invention, rather than to limit the scope of protection of the present invention. Simple modifications or equivalent substitutions of the technical solution of the present invention by ordinary technicians in this field do not deviate from the essence and scope of the technical solution of the present invention.
Claims
1. A method for dynamic allocation of ETC system resources based on virtualization technology, characterized in that: The steps include: Based on virtualization technology, multiple virtualized operation spaces are built in the server, and each virtualized operation space is configured with primary system resources; Configure application components of the ETC system in at least one virtualized operating space and obtain the application virtualized operating space; The server dynamically adjusts the system resource configuration quota of the application virtualization operation space in real time based on the dynamic resource allocation technology, so that the application virtualization operation space obtains dynamic primary virtualization resources; Constructing a resource allocation model based on the past operation data of the application component, and performing secondary dynamic allocation of the primary virtualization resources through the resource allocation model, so that each application component in the application virtualization operation space obtains dynamic secondary virtualization resources; A backup system of the application virtualization operation space is also configured in at least one virtualization space to obtain a backup virtualization operation space, and globally and incrementally update the backup virtualization operation space in different time periods based on a time series prediction method; The application virtualization operation space and at least one corresponding backup virtualization operation space form a redundant architecture; The server reclaims at least part of the idle system resources, and builds a test virtualization space based on the idle system resources; The test virtualization space performs sleep and standby in different time periods based on the timing prediction method; When the server receives a test instruction, the server increases the allocated system resources to the test virtualization space based on the dynamic resource allocation technology.
2. The method for dynamic allocation of ETC system resources based on virtualization technology according to claim 1, characterized in that: The test virtualization space is constructed with a resource sharing pool; Setting at least part of the system resources configured in the test virtualization space to the resource sharing pool; The test virtualization space is installed with test components for functional testing of the ETC system.
3. The method for dynamic allocation of ETC system resources based on virtualization technology according to claim 2 is characterized in that: The test components include a charge processing test component, a monitoring test component, and a data center test component; The charging processing test component is used to: test the charging processing function and data processing performance; The monitoring test component is used to: test the monitoring system functions and multi-device interactivity; The data center test component is used to: test data storage, management and processing functions.
4. The method for dynamic allocation of ETC system resources based on virtualization technology according to claim 2 or 3, characterized in that: The test component has exclusive access to the resource sharing pool or shared access to the resource sharing pool; When a plurality of the test components share access to the resource sharing pool, the access strategy includes an independent access strategy, a concurrent access strategy or a mixed access strategy.
5. The method for dynamic allocation of ETC system resources based on virtualization technology according to claim 1, characterized in that: The method for constructing the virtualized operating space includes: Acquire server hardware information, and filter virtualization software based on the server hardware information; Checking the compatibility of the virtualization software with the server hardware; When the compatibility meets the working conditions, mounting the installation medium of the virtualization software on the data interface of the server, and installing the virtualization software based on the boot program; After the virtualization software is installed, a virtualization environment is configured for the server; When the virtualization environment configuration is completed, a plurality of virtualization operation spaces are created in the virtualization environment.
6. The method for dynamic allocation of ETC system resources based on virtualization technology according to claim 5 is characterized in that: The virtualization environment configuration includes primary resource pool planning, storage and network configuration; The primary system resources are obtained through the primary resource pool planning.
7. The method for dynamic allocation of ETC system resources based on virtualization technology according to claim 1, characterized in that: The configuration method of the application component includes: An installation system of the application component is installed in the application virtualization running space, and the application component is installed in the installation system of the application component.
8. The method for dynamic allocation of ETC system resources based on virtualization technology according to claim 1 or 7, characterized in that: The method for constructing the resource allocation model includes: Collect the system resource usage data of the application components throughout the year, and select typical traffic days based on time series characteristics; Extracting environmental characteristic parameters of the typical traffic day, and using the environmental characteristic parameters and time tags as inputs of the resource allocation model, and using the system resource occupancy rate of the application component as output of the resource allocation model; The resource allocation model is obtained through machine learning algorithm training.
9. The method for dynamic allocation of ETC system resources based on virtualization technology according to claim 8, characterized in that: The typical traffic day screening method comprises: Collect the system resource usage data of the application components throughout the year, and perform data cleaning and preprocessing to obtain effective system resource usage data; Clustering and classification are performed based on the effective system resource usage data and the corresponding time tags, and the typical traffic day is extracted.
10. The method for dynamic allocation of ETC system resources based on virtualization technology according to claim 1, characterized in that: The update strategy of the backup virtualized operation space includes: Predicting the system resource occupancy rate of the application virtualization operation space in the next period based on a time series prediction method, and obtaining a predicted value; When the predicted value is greater than a first threshold, the update strategy of the backup virtualization operation space for the next period is incremental update; When the predicted value is less than or equal to the first threshold value and greater than the second threshold value, the update strategy of the backup virtualization operation space for the next period is incremental update and at least one global update; When the predicted value is less than or equal to the second threshold, the update strategy for the next period of the backup virtualization running space is periodic global update.