Spacecraft test heterogeneous resource adaptive allocation method and device, equipment and medium

By adopting an adaptive allocation method for heterogeneous resources in spacecraft testing, the inefficiency of software service configuration management in spacecraft testing systems is solved. This method achieves automated and adaptive resource allocation, improves testing efficiency and resource utilization, and reduces the complexity of manual operations.

CN115470099BActive Publication Date: 2026-04-17BEIJING INST OF SPACECRAFT SYST ENG
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING INST OF SPACECRAFT SYST ENG
Filing Date
2022-07-28
Publication Date
2026-04-17

AI Technical Summary

Technical Problem

Existing spacecraft testing systems suffer from inefficiencies in parallel deployment and configuration management of software services, time-consuming and labor-intensive manual operations, and an inability to achieve adaptive resource allocation. In particular, they lack automated and visualized configuration management methods when the test data sources for different types of spacecraft are diverse.

Method used

This paper provides a method for adaptive allocation of heterogeneous resources for spacecraft testing. By obtaining the configuration binding information of the spacecraft model under test, the test service is automatically configured using a visual interface. Combined with the resource information of the automated test containers and the resource utilization rate ranking, a protocol-driven dynamic resource scheduling algorithm is used to achieve adaptive allocation of test containers.

Benefits of technology

It has enabled the automation and standardization of spacecraft model testing, improved testing efficiency, reduced the complexity and time consumption of manual operations, optimized the utilization of test container resources, and reduced the difficulty of testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115470099B_ABST
    Figure CN115470099B_ABST
Patent Text Reader

Abstract

The application discloses a spacecraft test heterogeneous resource adaptive allocation method and device, equipment and medium. The method comprises the following steps: obtaining configuration binding information of a required test service of a spacecraft model to be tested; obtaining automatic test container resource information allocated by the spacecraft model to be tested during test service operation according to the configuration binding information of the required test service of the spacecraft model to be tested; obtaining resource utilization rate sorting information of each automatic test container and a target automatic test container adaptively allocated during spacecraft test according to the automatic test container resource information allocated by the spacecraft model to be tested during test service operation. The application can realize the binding of the spacecraft model to be tested and test configuration resources, realize automatic test container allocation, and solve the problem of time-consuming and labor-consuming manual operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure generally relates to the field of system testing technology, and specifically to a method, apparatus, equipment and medium for adaptive allocation of heterogeneous resources in spacecraft testing. Background Technology

[0002] Integrated testing of spacecraft is a crucial step in the development process of spacecraft systems. Its main purpose is to comprehensively verify the electrical functions and performance indicators of the system. The test results are a key means of evaluating development quality, improving design, and refining processes. They are also an important basis for determining whether a launch is possible. The quality and efficiency of the integrated testing phase are important guarantees for ensuring successful launch, stable on-orbit operation, and enhanced industrialization capabilities.

[0003] In existing technologies, spacecraft testing systems have the following shortcomings in terms of parallel deployment and configuration management of software services: First, different types of spacecraft have diverse test data sources, and the deployment and configuration of test software services for each type are independent. New models require complete deployment of test programs during the early test preparation phase. Currently, test software services are configured manually, resulting in long initialization cycles, fragmented work, lack of standardization, no reusable templates, and susceptibility to errors. The configuration process requires manual monitoring, and the complex and numerous tasks consume a significant amount of time and human resources. Second, the spacecraft testing process cannot be visualized, and the test resources of the test container and the spacecraft under test cannot be adaptively allocated.

[0004] Therefore, we hope to find a more scientific method that, based on the matching strategy between the spacecraft under test and the test container, enables the adaptive allocation of the automated test container and the spacecraft under test model, thereby solving the problem of time-consuming and labor-intensive manual operation. Summary of the Invention

[0005] In view of the above-mentioned defects or deficiencies in the prior art, it is desirable to provide a method, apparatus, equipment and medium for adaptive allocation of heterogeneous resources for spacecraft testing, which can meet the needs of the art.

[0006] Based on one aspect of the present invention, this application provides a method for adaptive allocation of heterogeneous resources for spacecraft testing, the method comprising:

[0007] Obtain the configuration binding information for the test services required by the spacecraft model under test;

[0008] Based on the configuration binding information of the test services required for the spacecraft model under test, obtain the automated test container resource information allocated during the runtime of the test service for the spacecraft under test;

[0009] Based on the automated test container resource information allocated during the test service of the spacecraft under test, the resource utilization ranking information of each automated test container and the target automated test container adaptively allocated during the test of the spacecraft are obtained.

[0010] In one embodiment, the configuration binding information for obtaining the test service required for the model of the spacecraft under test includes:

[0011] Obtain the testing services required for the model of the spacecraft under test;

[0012] Based on the test services required for the spacecraft model under test, obtain the model test service configuration information corresponding to the test services required for the spacecraft model under test. The model test service configuration information includes general configuration, access service, processing service, command service, interpretation service, subscription service, and database entry service.

[0013] Based on the model test service configuration information corresponding to the test service required by the model of the spacecraft under test, the configuration binding of the test service required by the model of the spacecraft under test is completed through a visual interface. The configuration binding is the test software service and the test program of the memory database used by the test service that are corresponding to the model test service configuration binding.

[0014] In another embodiment, the configuration binding information for obtaining the test service required for the model of the spacecraft under test includes:

[0015] Obtain information on newly added spacecraft models to be tested and the required testing services;

[0016] Based on the newly added spacecraft model to be tested and the required test services, obtain the service configuration information of the newly added spacecraft model and the required test services. The service configuration information includes service name, spacecraft model, IP address, port, command type, data type, and device parameter type.

[0017] Based on the service configuration information of the newly added spacecraft model and the required test services, obtain the JSON string generated by the service configuration information, store the JSON string in a specified database, and complete the configuration binding of the test services required for the newly added spacecraft model through a visual interface.

[0018] In another embodiment, obtaining the automated test container resource information allocated during the runtime of the test service for the spacecraft under test based on the configuration binding information of the test service required for the spacecraft model under test includes:

[0019] Based on the configuration binding information of the test services required for the spacecraft model under test, obtain the operation initialization information of the test services for the spacecraft under test;

[0020] Based on the operational initialization information of the spacecraft under test test service, obtain the resource budget required for the spacecraft under test test service and the resource configuration of all automated test containers;

[0021] Based on the resource budget required for the test service of the spacecraft under test and the resource configuration of all automated test containers, obtain the information on the automated allocation of the automated test container resources when the test service of the spacecraft under test is finally completed.

[0022] In another embodiment, obtaining the operational initialization information of the test service for the spacecraft under test based on the configuration binding information of the test service required by the spacecraft model under test includes:

[0023] Based on the configuration binding information of the test services required by the spacecraft model under test, obtain the heterogeneous resources required by the spacecraft model under test. The heterogeneous resources include test application services, test data acquisition services, and test message queue services.

[0024] Based on the heterogeneous resources required by the spacecraft model under test, obtain the automated test container interface, and obtain the automated test container resource image of the spacecraft test service from the image repository through the automated test container interface, and automatically deploy the automated test container.

[0025] Based on the successfully deployed automated test container, obtain the runtime initialization information of the test services required for the spacecraft model under test.

[0026] In another embodiment, obtaining the resource utilization ranking information for each of the automated test containers includes:

[0027] Obtain the CPU usage and memory usage of each of the automated test containers at any given time.

[0028] Based on the CPU utilization of each automated test container at a certain moment, obtain the fitting function of CPU utilization of each automated test container versus time obtained by linear regression, and predict the first time when the CPU utilization of each automated test container reaches the upper limit.

[0029] Based on the ascending order of the first time, obtain the first sequence, where the elements of the first sequence are the automated test containers corresponding to the first time.

[0030] Based on the fitting function of memory usage rate versus time for each of the automated test containers at a certain moment, the second time when the memory usage rate of each of the automated test containers reaches its upper limit is obtained;

[0031] Based on the ascending order of the second time, obtain the second sequence, where the elements of the second sequence are the automated test containers corresponding to the second time.

[0032] Based on the first and second sequences, and using the protocol-driven resource dynamic scheduling algorithm SLA, the priority ranking of each automated test container is obtained.

[0033] In another embodiment, obtaining the resource utilization ranking information for each of the automated test containers further includes:

[0034] Obtain the lower limit of CPU utilization and the lower limit of memory utilization for each of the automated test containers;

[0035] Based on the lower limits of CPU utilization and memory utilization for each automated test container, the recycling status of each automated test container is obtained.

[0036] According to another aspect of the present invention, a spacecraft testing heterogeneous resource adaptive allocation device is disclosed, the device comprising:

[0037] The acquisition module is used to obtain the configuration binding information of the test services required by the model of the spacecraft under test;

[0038] The resource allocation module is used to obtain the automated test container resource information allocated during the runtime of the test service of the spacecraft under test, based on the configuration binding information of the test service required by the spacecraft model under test.

[0039] The container monitoring module is used to obtain the resource utilization ranking information of each automated test container and the target automated test container adaptively allocated during the spacecraft test, based on the automated test container resource information allocated during the operation of the test service for the spacecraft under test.

[0040] According to another aspect of the present invention, an electronic device is disclosed, the electronic device including one or more processors and a memory, the memory being used to store one or more programs; when the one or more programs are executed by the processor, the processor enables the processor to implement the spacecraft testing heterogeneous resource adaptive allocation method provided in the various embodiments of the present invention.

[0041] According to another aspect of the present invention, a computer-readable storage medium storing a computer program is disclosed, which, when executed, implements the spacecraft testing heterogeneous resource adaptive allocation method provided in various embodiments of the present invention.

[0042] In this embodiment, the configuration binding information of the test services required for the spacecraft model under test is obtained; based on the configuration binding information of the test services required for the spacecraft model under test, the resource information of the automated test containers allocated during the runtime of the test services for the spacecraft under test is obtained; based on the resource information of the automated test containers allocated during the runtime of the test services for the spacecraft under test, the resource utilization ranking information of each automated test container and the target automated test container adaptively allocated during the spacecraft test are obtained. Compared with the prior art, this application has the following advantages:

[0043] (1) This application can bind the model of the spacecraft under test with the test configuration resources, improve the efficiency of spacecraft model testing, eliminate the need for manual setting of test items and test parameters, and make the test process more standardized and regulated.

[0044] (2) This application can achieve automated test container allocation and optimal utilization of test container resources;

[0045] (3) This application can solve the problem of time-consuming and labor-intensive manual operation. It can reduce the difficulty of spacecraft testing by one-click centralized deployment and start-up testing. Attached Figure Description

[0046] Other features, objects, and advantages of this application will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings:

[0047] Figure 1 This is a flowchart of a spacecraft testing heterogeneous resource adaptive allocation method provided in one embodiment of this application;

[0048] Figure 2 A schematic diagram of the structure of a spacecraft testing heterogeneous resource adaptive allocation device provided in one embodiment of this application;

[0049] Figure 3 This is an internal structural diagram of an electronic device provided in one embodiment of this application. Detailed Implementation

[0050] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, only the parts relevant to the invention are shown in the accompanying drawings.

[0051] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.

[0052] Please refer to Figure 1It illustrates an exemplary flow of the spacecraft testing heterogeneous resource adaptive allocation method that can be applied to embodiments of this application.

[0053] like Figure 1 As shown, in step 110, the configuration binding information of the test services required for the spacecraft model under test is obtained.

[0054] Specifically, when configuring and binding the test services required for the spacecraft model under test, there are two scenarios. One scenario is that the test program corresponding to the spacecraft model under test exists in the relevant database. In this case, the test services required for the spacecraft model under test are configured and bound through a visual interface. The other scenario is that the test program corresponding to the spacecraft model under test does not exist in the relevant database. In this case, it is necessary to add the selection and instantiation of the test services required for the spacecraft model under test so as to enable the configuration and binding of the test services required for the spacecraft model under test through a visual interface.

[0055] Specifically, in one embodiment of this application, the step of obtaining the configuration binding information of the test service required for the model of the spacecraft under test includes:

[0056] Obtain the testing services required for the model of the spacecraft under test;

[0057] Based on the test services required for the spacecraft model under test, obtain the model test service configuration information corresponding to the test services required for the spacecraft model under test. The model test service configuration information includes general configuration, access service, processing service, command service, interpretation service, subscription service, and database entry service.

[0058] Based on the model test service configuration information corresponding to the test service required by the model of the spacecraft under test, the configuration binding of the test service required by the model of the spacecraft under test is completed through a visual interface. The configuration binding is the test software service and the test program of the memory database used by the test service that are corresponding to the model test service configuration binding.

[0059] Specifically, in the implementation process, a model service test template is generally set up to bind the configuration to the spacecraft model under test. The model service test template is an instance of the test service for the spacecraft model under test. When the spacecraft model under test is a spacecraft model for which a test service instance already exists, the test service for the spacecraft model under test is automatically configured. In the specific implementation process, the configuration of the test service for the spacecraft model under test in the model service test template mainly includes: general configuration, access service, processing service, command service, interpretation service, subscription service, and database entry service. After the test service for the spacecraft model under test is configured in the model service test template, the configuration of the test service can be bound through a visual operation interface. This completes the configuration binding of the test service for the spacecraft model under test with the test service provided by the corresponding database. The bound database then performs the test on the test service for the spacecraft model under test. The configuration binding mainly includes binding the test software service, the memory database used by the test service, and other test programs related to model testing.

[0060] Specifically, in one embodiment of this application, the step of obtaining the configuration binding information of the test service required for the model of the spacecraft under test includes:

[0061] Obtain information on newly added spacecraft models to be tested and the required testing services;

[0062] Based on the newly added spacecraft model to be tested and the required test services, obtain the service configuration information of the newly added spacecraft model and the required test services. The service configuration information includes service name, spacecraft model, IP address, port, command type, data type, and device parameter type.

[0063] Based on the service configuration information of the newly added spacecraft model and the required test services, obtain the JSON string generated by the service configuration information, store the JSON string in a specified database, and complete the configuration binding of the test services required for the newly added spacecraft model through a visual interface.

[0064] Specifically, for a newly added spacecraft model, the required test services for that spacecraft model need to be set up first. Then, the detailed configuration of the information for the newly added spacecraft model is carried out according to the service template. The service configuration for the newly added spacecraft model mainly includes: configuring the service name, model, IP address, port, command type, data type, and device parameter type. After the configuration is completed, a JSON string is generated. The JSON string is a string that the database can recognize and is used to provide an automated assembly foundation for the initialization of test resources for the spacecraft model.

[0065] In step 120, based on the configuration binding information of the test service required by the spacecraft model under test, the automated test container resource information allocated during the runtime of the test service of the spacecraft under test is obtained.

[0066] Specifically, after completing the configuration and binding of the test services required for the spacecraft model under test, an initial visual execution interface can be provided for the test services of the spacecraft model under test, enabling the start of the test services configured for the spacecraft model under test. The test services can be started via one-click setup or other methods. When the test services of the spacecraft model under test are running, the process information of the test service start-up can be viewed, the running status of the already started test services can be monitored, and operations such as start, stop, and restart can be performed.

[0067] After the test service for the spacecraft model under test is initiated, the resource budget allocated to the test service for that spacecraft model is used to configure all automated test container resources for that spacecraft model. These automated test container resources are the test programs provided to implement the test service items for the spacecraft model under test. Since a single test service item for a spacecraft model under test includes multiple items, there are also multiple corresponding automated test containers. Based on the configured model information, the number of service replicas, and parameter configuration information, the interfaces of the automated test containers are automatically invoked to ultimately complete the allocation of test resources.

[0068] Specifically, the automated test container is allocated based on the resource information of the spacecraft model under test. The resource information includes CPU frequency, memory size, disk capacity, and the number of copies of the test service.

[0069] Specifically, in one embodiment of this application, obtaining the automated test container resource information allocated during the runtime of the test service for the spacecraft under test based on the configuration binding information of the test service required by the spacecraft model under test includes:

[0070] Based on the configuration binding information of the test services required by the spacecraft model under test, the operation initialization information of the test services of the spacecraft under test is obtained. Specifically, since the test services corresponding to the spacecraft model under test are built-in, the user can select the heterogeneous resources required by the spacecraft model under test and then perform initialization. The heterogeneous resources include: test application service, test data acquisition service, and test message queue service.

[0071] Based on the operational initialization information of the spacecraft under test test service, obtain the resource budget required for the spacecraft under test test service and the resource configuration of all automated test containers;

[0072] Based on the resource budget required for the test service of the spacecraft under test and the resource configuration of all automated test containers, obtain the information on the automated allocation of the automated test container resources when the test service of the spacecraft under test is finally completed.

[0073] The step of obtaining the operational initialization information of the test service for the spacecraft under test based on the configuration binding information of the test service required by the spacecraft model under test includes:

[0074] Based on the configuration binding information of the test services required by the spacecraft model under test, obtain the heterogeneous resources required by the spacecraft model under test. The heterogeneous resources include test application services, test data acquisition services, and test message queue services.

[0075] Based on the heterogeneous resources required by the spacecraft model under test, an automated test container interface is obtained, and an automated test container resource image of the spacecraft test service is obtained from the image repository through the automated test container interface, and the automated test container is automatically deployed; specifically, when performing service testing, the automated test container interface is called to obtain the automated test container image of the test service from the image repository, and the automated test container is automatically deployed, and the deployment result is returned after deployment is completed.

[0076] Based on the successfully deployed automated test container, obtain the runtime initialization information of the test services required for the spacecraft model under test. Specifically, for the successfully deployed automated test container, the service tests of the automated test container need to be configured. Different service test items provide different configuration options. The configuration information can be stored in the configuration file of the automated test container or in the corresponding database. The configuration file of the automated test container or the configuration information in the corresponding database can be modified.

[0077] Specifically, modifications to the configuration of automated testing containers include: changes to the name, workload type, Docker image, namespace, port mapping, environment variables, host scheduling, health checks, data volumes, scaling / upgrade policies, entry / commands, network, tags / comments, and security / host settings.

[0078] Specifically, modifications to the configuration file of the automated testing container, or modifications to the configuration information in the corresponding database, include modifying configuration parameters such as service name, model, IP address, port, command type, data type, and device parameter type in the configuration file.

[0079] In step 130, based on the resource information of the automated test containers allocated during the test service of the spacecraft under test, the resource utilization ranking information of each automated test container and the target automated test container adaptively allocated during the spacecraft test are obtained.

[0080] Specifically, the allocation of automated test containers is implemented using a protocol-driven resource dynamic scheduling algorithm (SLA). The protocol-driven resource dynamic scheduling algorithm (SLA) classifies the test service applications of the spacecraft model under test into different types and schedules different applications to different resource status nodes, reducing problems caused by insufficient resources. According to the protocol of the protocol-driven resource dynamic scheduling algorithm (SLA), the application resource usage status is monitored in real time, and the application resource occupancy rate is dynamically adjusted to improve resource utilization.

[0081] Specifically, in one embodiment of this application, obtaining the resource utilization ranking information for each of the automated testing containers includes:

[0082] Obtain the CPU usage and memory usage of each of the automated test containers at any given time.

[0083] Based on the CPU utilization of each automated test container at a certain moment, obtain the fitting function of CPU utilization of each automated test container versus time obtained by linear regression, and predict the first time when the CPU utilization of each automated test container reaches the upper limit.

[0084] Based on the ascending order of the first time, obtain the first sequence, where the elements of the first sequence are the automated test containers corresponding to the first time.

[0085] Based on the fitting function of memory usage rate versus time for each of the automated test containers at a certain moment, the second time when the memory usage rate of each of the automated test containers reaches its upper limit is obtained;

[0086] Based on the ascending order of the second time, obtain the second sequence, where the elements of the second sequence are the automated test containers corresponding to the second time.

[0087] Based on the first and second sequences, and using the protocol-driven resource dynamic scheduling algorithm SLA, the priority ranking of each automated test container is obtained.

[0088] Specifically, by monitoring the resource utilization data of each automated test container over a period of time, a fitting function is used to fit the data, and the time when the virtual resources of the automated test container reach the utilization limit is calculated using the fitting function. Each automated test container is then sorted according to the time.

[0089] Assume the t-th j At time i, the CPU utilization rate of the central processing unit of the automated test container is c. ij Memory usage is m ij Then the CPU utilization rate is c ij Memory usage is m ij The expressions are as follows:

[0090] <t j ,c ij >,j=1…n;

[0091] <t j ,m ij >,j=1…n;

[0092] The fitting function Z(t) of the central processing unit (CPU) versus time is obtained through linear regression. j ), predicting that the CPU utilization of the i-th automated test container will reach its upper limit C. iu Time t icu Calculate Z(t) j ) = C iu The CPU utilization rate can be calculated to reach its maximum limit, C. iu Time t icu ;

[0093] Based on the CPU utilization of each of the aforementioned automated test containers reaching its maximum limit C. iu Time t icu Sort the sequences in ascending order to obtain the first sequence S. c The i-th automated test container in the first sequence S c The serial number in is S ic ;

[0094] The fitting function Y(t) for memory utilization versus time was obtained through linear regression. j The prediction is that the memory usage of the i-th automated test container will reach its upper limit M. iu Time t imu Calculate Y(t) j ) = M iu The memory utilization rate can be calculated to reach its maximum value of M. iu Time t imu ;

[0095] Based on the memory usage of each of the automated test containers reaching the upper limit M. iu Time t imu Sort the sequences in ascending order to obtain the second sequence S. m The i-th automated test container is in the second sequence S m The serial number in is S im ;

[0096] For the first sequence S c Second sequence S m After integration, we get:

[0097] S cm =α cm ·S c +β cm ·S m ;

[0098] In the formula, α cm ,β cm This is the integration coefficient;

[0099] Based on the protocol-driven resource dynamic scheduling algorithm SLA, priority is processed to obtain:

[0100] S=α·S cm +β·pre i ;

[0101] S represents the final sorting order. Each time, the first container in S is selected as the target automated test container for resource scheduling.

[0102] Specifically, in one embodiment of this application, obtaining the resource utilization ranking information of each of the automated test containers further includes:

[0103] Obtain the lower limit of CPU utilization and the lower limit of memory utilization for each of the automated test containers;

[0104] Based on the lower limits of CPU utilization and memory utilization for each automated test container, the recycling status of each automated test container is obtained.

[0105] Specifically, once a test item for a test aircraft model is completed and certain automated test containers are no longer needed, the automated test containers can be released and deleted.

[0106] Specifically, based on the lower limit of resource utilization of the automated test container, it is determined whether the resources of the automated test container can be reclaimed. The average CPU utilization C of a specific automated test container over a certain period is obtained. i and average memory utilization M i Cid and C iu These are the upper and lower limits of CPU utilization, M id and M iu These represent the upper and lower limits of memory utilization. For the CPU resources ΔC and memory resources ΔM to be reclaimed, the following relationship applies:

[0107]

[0108]

[0109] For physical machine node K, the available resources are <C k M k If the resources required for the test software service are less than the resources of the physical machine nodes. <C k M k If the result is >, then intra-node scheduling is performed; otherwise, inter-node scheduling is performed.

[0110] In this embodiment, the configuration binding information of the test services required by the spacecraft under test model is obtained; based on the configuration binding information of the test services required by the spacecraft under test model, the automated test container resource information allocated during the runtime of the test service of the spacecraft under test is obtained; based on the automated test container resource information allocated during the runtime of the test service of the spacecraft under test, the resource utilization ranking information of each automated test container and the target automated test container adaptively allocated during the spacecraft test are obtained. This application can realize the binding of the spacecraft under test model with the test configuration resources, realize automated test container allocation, and solve the problem of time-consuming and labor-intensive manual operation.

[0111] It should be understood that, although Figure 1 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figure 1 At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but may be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but may be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.

[0112] Figure 2 This is a schematic diagram of the structure of a spacecraft testing heterogeneous resource adaptive allocation device provided in one embodiment of this application, as shown below. Figure 2 As shown, the spacecraft test heterogeneous resource adaptive allocation device includes:

[0113] Acquisition module, resource allocation module, container monitoring module;

[0114] The acquisition module is used to obtain the configuration binding information of the test services required by the model of the spacecraft under test;

[0115] The resource allocation module is used to obtain the automated test container resource information allocated during the runtime of the test service of the spacecraft under test, based on the configuration binding information of the test service required by the spacecraft model under test.

[0116] The container monitoring module is used to obtain the resource utilization ranking information of each automated test container and the target automated test container adaptively allocated during the spacecraft test, based on the automated test container resource information allocated during the operation of the test service for the spacecraft under test.

[0117] Specifically, in another embodiment of this application, the acquisition module is used to acquire the test services required by the spacecraft model under test; based on the test services required by the spacecraft model under test, acquire the model test service configuration information corresponding to the test services required by the spacecraft model under test, the model test service configuration information including general configuration, access service, processing service, command service, interpretation service, subscription service, and database entry service; based on the model test service configuration information corresponding to the test services required by the spacecraft model under test, complete the configuration binding of the test services required by the spacecraft model under test through a visual interface, the configuration binding being the test software service corresponding to the model test service configuration binding and the test program of the memory database used by the test service.

[0118] Specifically, in another embodiment of this application, the acquisition module is used to acquire the new spacecraft model to be tested and the required test services; based on the new spacecraft model to be tested and the required test services, acquire the service configuration information of the new spacecraft model and the required test services, the service configuration information including service name, spacecraft model, IP address, port, command type, data type, and device parameter type; based on the service configuration information of the new spacecraft model and the required test services, acquire the JSON string generated by the service configuration information, and store the JSON string in a specified database; and complete the configuration binding of the test services required for the new spacecraft model through a visual interface.

[0119] Specifically, in another embodiment of this application, the resource allocation module is used to obtain the operation initialization information of the test service for the spacecraft under test based on the configuration binding information of the test service required by the spacecraft under test model; to obtain the resource budget and resource configuration of all automated test containers required by the test service based on the operation initialization information of the test service for the spacecraft under test; and to obtain the information on automatically allocating the automated test container resources when the test service for the spacecraft under test is finally completed based on the resource budget and resource configuration of all automated test containers.

[0120] Specifically, in another embodiment of this application, the resource allocation module is used to obtain the heterogeneous resources required by the spacecraft model under test based on the configuration binding information of the test services required by the spacecraft model under test. The heterogeneous resources include test application services, test data acquisition services, and test message queue services. Based on the heterogeneous resources required by the spacecraft model under test, the module obtains an automated test container interface, obtains an automated test container resource image of the spacecraft test service from the image repository through the automated test container interface, and automatically deploys the automated test container. Based on the successfully deployed automated test container, the module obtains the operation initialization information of the test services required by the spacecraft model under test.

[0121] Specifically, in another embodiment of this application, the container monitoring module is used to obtain the CPU utilization and memory utilization of each of the automated test containers at any given time; based on the CPU utilization of each of the automated test containers at a given time, obtain a fitting function of CPU utilization versus time obtained by linear regression for each of the automated test containers, and predict the first time when the CPU utilization of each of the automated test containers will reach its upper limit; based on the ascending order of the first time, obtain a first sequence, where the elements of the first sequence are the automated test containers corresponding to the first time; based on the fitting function of memory utilization versus time for each of the automated test containers at a given time, obtain a second time when the memory utilization of each of the automated test containers will reach its upper limit; based on the ascending order of the second time, obtain a second sequence, where the elements of the second sequence are the automated test containers corresponding to the second time; based on the first sequence and the second sequence, and using a protocol-driven resource dynamic scheduling algorithm (SLA), obtain the priority ranking of each of the automated test containers.

[0122] Specifically, in another embodiment of this application, the container monitoring module is used to obtain the lower limit of the CPU utilization rate and the lower limit of the memory utilization rate of each automated test container; based on the lower limit of the CPU utilization rate and the lower limit of the memory utilization rate of each automated test container, the recycling status of each automated test container is obtained.

[0123] In this embodiment, an acquisition module obtains the configuration binding information of the test services required for the spacecraft model under test; a resource allocation module obtains the automated test container resource information allocated during the runtime of the test service based on the configuration binding information of the test service required for the spacecraft model under test; and a container monitoring module obtains the resource utilization ranking information of each automated test container and the target automated test container adaptively allocated during spacecraft testing based on the automated test container resource information allocated during the runtime of the test service. This application can achieve the binding of the spacecraft model under test with test configuration resources, realize automated test container allocation, and solve the problem of time-consuming and labor-intensive manual operation.

[0124] Specific limitations regarding the spacecraft testing heterogeneous resource adaptive allocation device can be found in the limitations of the spacecraft testing heterogeneous resource adaptive allocation method described above, and will not be repeated here. Each module in the aforementioned spacecraft testing heterogeneous resource adaptive allocation device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the corresponding operations of each module.

[0125] Specifically, according to embodiments of this disclosure, such as Figure 3 As shown, the present invention discloses an electronic device, which includes one or more processors and a memory, wherein the memory is used to store one or more programs; when the one or more programs are executed by the processor, the processor enables the processor to implement the spacecraft test heterogeneous resource adaptive allocation method described in the embodiments of the present invention.

[0126] In particular, according to embodiments of this disclosure, the spacecraft testing heterogeneous resource adaptive allocation method described in any of the above embodiments can be implemented as a computer software program. For example, embodiments of this disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program containing program code for performing the spacecraft testing heterogeneous resource adaptive allocation method. In such embodiments, the computer program can be downloaded and installed from a network via a communication component, and / or installed from a removable medium.

[0127] The one or more programs stored in the read-only memory (ROM) or the random access memory (RAM) perform various appropriate actions and processes. The RAM includes software programs for the server to complete corresponding business operations, as well as various programs and data required for vehicle driving operations. The server, its controlled hardware devices, the ROM, and the RAM are interconnected via a bus, and various input / output interfaces are also connected to the bus.

[0128] The following components are connected to the input / output interface: input sections including keyboards, mice, etc.; output sections including cathode ray tube (CRT) displays, liquid crystal displays (LCDs), and speakers; and communication sections including network interface cards such as LAN cards and modems. The communication section performs communication processing via a network such as the Internet. Drives are also connected to the input / output interface as needed. Removable media, such as disks, optical discs, magneto-optical discs, semiconductor memory, etc., are installed on the drive as needed so that computer programs read from them can be installed into memory as required.

[0129] In particular, according to embodiments of this disclosure, the spacecraft testing heterogeneous resource adaptive allocation method described in any of the above embodiments can be implemented as a computer software program. For example, embodiments of this disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program containing program code for performing the spacecraft testing heterogeneous resource adaptive allocation method. In such embodiments, the computer program can be downloaded and installed from a network via a communication component, and / or installed from a removable medium.

[0130] The units or modules described in the embodiments of this application can be implemented in software or hardware. The described units or modules can also be located in a processor. The names of these units or modules do not necessarily constitute a limitation on the unit or module itself.

[0131] The above description is merely a preferred embodiment of this application and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the inventive concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this application.

Claims

1. A method for adaptive allocation of heterogeneous resources for spacecraft testing, characterized in that, The method includes: Obtain the configuration binding information for the test services required by the spacecraft model under test; Based on the configuration binding information of the test services required for the spacecraft model under test, obtain the automated test container resource information allocated during the runtime of the test service for the spacecraft under test; Based on the automated test container resource information allocated during the test service of the spacecraft under test, the resource utilization ranking information of each automated test container and the target automated test container adaptively allocated during the test of the spacecraft are obtained. The step of obtaining the automated test container resource information allocated during the runtime of the test service for the spacecraft under test based on the configuration binding information of the test service required for the spacecraft under test model includes: Based on the configuration binding information of the test services required for the spacecraft model under test, obtain the operation initialization information of the test services for the spacecraft under test; Based on the operational initialization information of the spacecraft under test test service, obtain the resource budget required for the spacecraft under test test service and the resource configuration of all automated test containers; Based on the resource budget required for the test service of the spacecraft under test and the resource configuration of all automated test containers, obtain the information on the automated allocation of automated test container resources when the test service of the spacecraft under test is finally completed. The step of obtaining the runtime initialization information of the test service for the spacecraft under test based on the configuration binding information of the test service required for the spacecraft model under test includes: Based on the configuration binding information of the test services required by the spacecraft model under test, obtain the heterogeneous resources required by the spacecraft model under test. The heterogeneous resources include test application services, test data acquisition services, and test message queue services. Based on the heterogeneous resources required by the spacecraft model under test, obtain the automated test container interface, and obtain the automated test container resource image of the spacecraft test service from the image repository through the automated test container interface, and automatically deploy the automated test container. Based on the successfully deployed automated test container, obtain the runtime initialization information of the test services required for the spacecraft model under test; The process of obtaining the resource utilization ranking information for each of the automated test containers includes: Obtain the CPU usage and memory usage of each of the automated test containers at any given time. Based on the CPU utilization of each of the automated test containers at any given time, obtain the fitting function of CPU utilization of each of the automated test containers versus time obtained through linear regression, and predict the first time when the CPU utilization of each of the automated test containers reaches its upper limit. Based on the ascending order of the first time, obtain the first sequence, where the elements of the first sequence are the automated test containers corresponding to the first time. Based on the fitting function of memory usage rate versus time for each of the automated test containers at any given time, the second time when the memory usage rate of each of the automated test containers reaches its upper limit is obtained; Based on the ascending order of the second time, obtain the second sequence, where the elements of the second sequence are the automated test containers corresponding to the second time. Based on the first and second sequences, and using the protocol-driven resource dynamic scheduling algorithm SLA, the priority ranking of each automated test container is obtained.

2. The method according to claim 1, characterized in that, The configuration binding information for obtaining the test service required to obtain the model of the spacecraft under test includes: Obtain the testing services required for the model of the spacecraft under test; Based on the test services required for the spacecraft model under test, obtain the model test service configuration information corresponding to the test services required for the spacecraft model under test. The model test service configuration information includes general configuration, access service, processing service, command service, interpretation service, subscription service, and database entry service. Based on the model test service configuration information corresponding to the test service required by the model of the spacecraft under test, the configuration binding of the test service required by the model of the spacecraft under test is completed through a visual interface. The configuration binding is the test software service and the test program of the memory database used by the test service that are corresponding to the model test service configuration binding.

3. The method according to claim 1, characterized in that, The configuration binding information for obtaining the test service required to obtain the model of the spacecraft under test includes: Obtain information on newly added spacecraft models to be tested and the required testing services; Based on the newly added spacecraft model to be tested and the required test services, obtain the service configuration information of the newly added spacecraft model to be tested and the required test services. The service configuration information includes service name, spacecraft model, IP address, port, command type, data type, and device parameter type. Based on the service configuration information of the newly added spacecraft model to be tested and the required test services, obtain the JSON string generated by the service configuration information, store the JSON string in a specified database, and complete the configuration binding of the test services required for the newly added spacecraft model to be tested through a visual interface.

4. The method according to claim 1, characterized in that, Also includes: Obtain the lower limit of CPU utilization and the lower limit of memory utilization for each of the automated test containers; Based on the lower limits of CPU utilization and memory utilization for each automated test container, the recycling status of each automated test container is obtained.

5. A spacecraft testing heterogeneous resource adaptive allocation device, used to implement the method of claim 1, characterized in that, The device includes: The acquisition module is used to obtain the configuration binding information of the test services required by the model of the spacecraft under test; The resource allocation module is used to obtain the automated test container resource information allocated during the runtime of the test service of the spacecraft under test, based on the configuration binding information of the test service required by the spacecraft model under test. The container monitoring module is used to obtain the resource utilization ranking information of each automated test container and the target automated test container adaptively allocated during the spacecraft test, based on the automated test container resource information allocated during the operation of the test service for the spacecraft under test.

6. An electronic device, characterized in that, The device includes one or more processors and a memory, the memory being used to store one or more programs; When the processor executes the one or more programs, the processor performs the method as described in any one of claims 1 to 4.

7. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed, it implements the method as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Optimal configuration method for test resources of spacecraft

    CN106886620A

  • Processing method, deployment system and processing device for testing application program

    CN108829588A