CN-121985026-A - Self-adaptive micro-service system for satellite-borne embedded software
Abstract
The invention provides a satellite-borne embedded software-oriented self-adaptive micro service system which comprises at least one service providing module, at least one service calling module, a service self-adaptive management module and a communication middleware, wherein the service providing module is used for registering and distributing services and responding to service calling requests initiated by the service calling module, the service calling module is used for initiating the service calling requests, the service self-adaptive management module is used for monitoring global resource information and function requirements in real time, giving out optimal configuration in the current state of the system and determining global service calling relation, and the communication middleware is used for constructing a distributed communication framework and meeting the communication requirements among the service providing module, the service calling module and the service self-adaptive management module. Based on the system provided by the invention, the satellite-borne embedded software can automatically reconstruct the self service component composition and the calling relation according to the self function requirement and the running resource information, so that the overall function is ensured to be effective.
Inventors
- GAO ZHILEI
- CHEN ZIHAN
- JIAO KE
- WU PINGPING
- LI JIN
- SUN HEJIE
- Lin pengda
Assignees
- 中国空间技术研究院
Dates
- Publication Date
- 20260505
- Application Date
- 20251210
Claims (10)
- 1. An adaptive microservice system for satellite-borne embedded software, comprising: At least one service providing module, at least one service calling module, a service self-adaptive management module and communication middleware, wherein: The service providing module is used for initiating registration to the service self-adaptive management module, releasing the service to the outside and responding to the service calling request initiated by the service calling module; the service calling module is used for initiating a service calling request; the service self-adaptive management module is used for monitoring global resource information and function requirements in real time, giving out optimal configuration in the current state of the system, and controlling interaction relation among service components, wherein the service components are minimum reusable functional components in the system and are externally provided by the service providing module; And the communication middleware is responsible for communication among the service providing module, the service calling module and the service self-adaptive management module.
- 2. The adaptive micro-service system for the satellite-borne embedded software according to claim 1, wherein the service adaptive management module comprises a knowledge base unit, a monitoring unit, an analysis unit, a planning unit and an execution unit, The knowledge base unit maintains resource information, software function requirements and calling relations of service components in the system; the monitoring unit is in charge of monitoring the change of the resource information and the software function requirement in the system, and notifying the knowledge base unit to update the related information; The analysis unit is in charge of analyzing whether the current system resources can meet the software function requirements after the system resource information and the software function requirements change, and if not, the planning unit is informed of reconfiguring the system; The planning unit is responsible for giving out optimal configuration capable of meeting the software function requirement in the current state of the system according to a preset strategy, and sending a decision result of the optimal configuration to the execution unit; the execution unit is responsible for reconfiguring the system according to the decision result of the planning unit.
- 3. The adaptive microservice system of the satellite-borne embedded software of claim 1, wherein the communication middleware realizes communication among a service providing module, a service calling module and a service adaptive management module based on a data distribution service DDS; The service providing module and the service calling module can be distributed and deployed on different hardware platforms and different operating systems, and specific business functions can be realized by using different programming languages.
- 4. The adaptive microservice system of on-board embedded software of claim 1 wherein the service invocation module requests global service identification of its required service components from the service provisioning module; Initiating a service call request according to the global service identifier, sending an initial parameter or an empty parameter to a service providing module where the required service is located, and acquiring an execution result of the service providing module; if the service required by the service calling module is in the service calling module which initiates the request, the service calling module and the service providing module are the same node.
- 5. The adaptive microservice system of the on-board embedded software of claim 2 wherein the knowledge base unit monitors topics of 'resource update', 'demand update', 'configuration update', issues topics of 'knowledge base update complete', and updates internal information of the system in real time.
- 6. The adaptive micro-service system for the satellite-borne embedded software according to claim 2, wherein the monitoring unit monitors topics of ' service registration ', ' demand change ', ' knowledge base update completion ', and issues ' service registration feedback ', ' resource update ', ' demand update ', ' notification analysis unit ', ' topics; When system resources change, the service providing module informs the monitoring unit through a 'service registration' topic, the monitoring unit informs the knowledge base unit of updating through a 'resource updating' topic, the knowledge base unit gives feedback to the monitoring unit through a 'knowledge base updating completion' topic after updating, at the moment, the monitoring unit informs the service providing module of finishing the software service registration through a 'service registration feedback', informs the analysis unit through a 'notification analysis unit' topic, simultaneously starts a heartbeat detection thread of the related service providing module, monitors heartbeat information of the service providing module, judges that the service providing module is down if the heartbeat information of the service providing module is not received beyond a set threshold time, informs the knowledge base of service cancellation and informs the analysis unit of the change of resources; when the functional demand changes, the monitoring unit monitors the change through the demand change topic and informs the knowledge base unit of the update through the demand update topic, and meanwhile informs the analysis unit through the notification analysis unit topic.
- 7. The adaptive micro-service system for the satellite-borne embedded software according to claim 2, wherein the analysis unit monitors topics of the notification analysis unit, issues topics of the notification planning unit, reads current information of the knowledge base unit after receiving the information from the monitoring unit, analyzes whether service provided by system resources in the current environment can meet user requirements, and notifies the planning unit through the topics of the notification planning unit if the service provided by the system resources in the current environment can not meet the user requirements.
- 8. The adaptive micro-service system for the satellite-borne embedded software according to claim 2, wherein the planning unit monitors topics of 'notification planning unit', 'intelligent agent feedback', and issues 'notification execution unit', 'notification intelligent agent', and after receiving the message from the analysis unit, the planning unit reads the current information of the knowledge base unit, makes a decision locally or calls intelligent agent to make a decision according to a control strategy, and informs the execution unit of the decision result through the topic of 'notification execution unit', so as to execute related operations; The execution unit monitors the topics of the notification execution unit and issues the topics of the configuration update, and after receiving the decision result from the planning unit, the execution unit updates the system configuration and notifies the knowledge base unit of updating the system configuration information through the topics of the configuration update.
- 9. The adaptive microservice system of on-board embedded software of claim 6 wherein the software dynamic reconfiguration after downtime of the service providing module comprises the following steps: Step S1, a service providing module initiates a registration request, a service self-adaptive management module registers and returns a global service identifier, and a heartbeat detection thread of the service providing module is started; Step S2, if the service providing module is down, the service self-adaptive management module does not receive heartbeat information of the service providing module within a set threshold time, and then a service logout program is started; step S3, the service self-adaptive management module starts the self-adaptive management flow: And S4, the system service component invokes the relationship configuration update.
- 10. The adaptive microservice system of the on-board embedded software of claim 2, wherein the service adaptive management module starts an adaptive management flow specifically: S3.1, the monitoring unit informs the analysis unit that the service providing module is down, and informs the knowledge base unit to update the system resource information; s3.2, the analysis unit inquires the latest resource information in the system and analyzes whether the function requirement is met, and if not, the analysis unit informs the planning unit of planning; step S3.3, the planning unit gives out the optimal configuration capable of meeting the function requirement in the current system state according to a preset strategy, and informs the execution unit of the decision result of the optimal configuration; And step S3.4, the execution unit modifies the activation state and the calling relation of the service components in the system according to the decision result of the planning unit.
Description
Self-adaptive micro-service system for satellite-borne embedded software Technical Field The invention relates to a self-adaptive micro-service system for satellite-borne embedded software, belonging to the field of satellite-borne embedded software development and software architecture design. Background The traditional satellite system development faces the problems of serious coupling of software and hardware, difficult expansion of functions and long development period, and is difficult to meet the network, intelligent and systematic development trend of future satellite systems, and a software defined satellite is an intelligent satellite system with an open architecture based on a space-based super-computing platform and a satellite-borne operation environment, has rich on-board application software, and can reconstruct different functions as required to complete different tasks. The essence of the software-defined satellite is hardware standardization, functional software, decoupling of satellite tasks from hardware design, and on-orbit reconstruction of satellite functions through software. This requires that the on-board software have a flexible open architecture to facilitate functional expansion. The micro-service architecture becomes an architecture commonly adopted by complex software in the current Internet field due to the flexibility, expandability and support of agile development methods. However, the satellite-borne embedded software runs on the embedded device, and hardware resources cannot meet the mature micro-service architecture running requirements in the field of Internet. Meanwhile, computing resources, data resources, network environments and the like required by the operation of the satellite-borne embedded software can be changed at any time, and due to the fact that the time delay of a measurement and control link, ground personnel cannot timely adjust the service calling relation of the satellite-borne embedded software, the system is required to have self-adaption capability, and the system is ensured to stably operate under changing environments and requirements. Disclosure of Invention The technical problem of the invention is to overcome the defects of the prior art, provide a self-adaptive micro-service system for the satellite-borne embedded software, and solve the technical problems of closed architecture and difficult function expansion of the satellite-borne embedded software. The technical scheme of the invention is that the adaptive micro-service system for the satellite-borne embedded software comprises: At least one service providing module, at least one service calling module, a service self-adaptive management module and communication middleware, wherein: The service providing module is used for initiating registration to the service self-adaptive management module, releasing the service to the outside and responding to the service calling request initiated by the service calling module; the service calling module is used for initiating a service calling request; the service self-adaptive management module is used for monitoring global resource information and function requirements in real time, giving out optimal configuration under the current state of the system, and controlling interaction relation among service components in the satellite-borne software, wherein the service components are minimum reusable functional components in the system and are externally provided by the service providing module; And the communication middleware is responsible for communication among the service providing module, the service calling module and the service self-adaptive management module. Preferably, the service self-adaptive management module comprises a knowledge base unit, a monitoring unit, an analysis unit, a planning unit and an execution unit, The knowledge base unit maintains resource information, software function requirements and calling relations of service components in the system; the monitoring unit is in charge of monitoring the change of the resource information and the software function requirement in the system, and notifying the knowledge base unit to update the related information; The analysis unit is in charge of analyzing whether the current system resources can meet the software function requirements after the system resource information and the software function requirements change, and if not, the planning unit is informed of reconfiguring the system; The planning unit is responsible for giving out optimal configuration capable of meeting the software function requirement in the current state of the system according to a preset strategy, and sending a decision result of the optimal configuration to the execution unit; the execution unit is responsible for reconfiguring the system according to the decision result of the planning unit. Preferably, the communication middleware realizes communication among the service providing module, the service c