Space-time domain dependent service automatic updating method, device and equipment and medium
Through real-time monitoring and dynamic update of CRD configuration information of dependent services in the space-time field, cumbersome operations and potential errors in the traditional manual deployment mode are solved, automated deployment and stable operation are achieved, and operation and maintenance efficiency is improved.
Patent Information
- Application Number
- CN202411430352.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-14
- Publication Date
- 2025-02-11
AI Technical Summary
The traditional manual deployment model has cumbersome manual operations and potential errors when managing services in the space-time field, especially when service migration requires manual configuration and data, and it is difficult to ensure the stability and consistency of services.
By loading the CRD configuration information of each space-time domain-dependent function, and listening to the change events of the CRD configuration information in real time, determining the target space-time domain-dependent function involved in the change, analyzing the configuration change content, and dynamically updating the target space-time domain-dependent function based on this content.
It realizes automated updates of services dependent on space-time fields, simplifies deployment complexity, avoids potential errors, ensures the continuous and stable operation and accurate configuration of services, and significantly improves operation and maintenance efficiency and response speed.
Smart Images

Figure CN119415115A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of space-time domain dependent services, and in particular to a space-time domain dependent service automatic updating method, device, equipment and medium. Background Art
[0002] With the widespread application of container technology, spatiotemporal domain services are rapidly transforming to a container-based deployment model. This transformation not only significantly improves the flexibility and efficiency of spatiotemporal services, but also enables spatiotemporal services to more effectively respond to complex application scenarios and increasingly changing needs. Driven by containerization technology, the spatiotemporal domain service architecture has gradually evolved into a microservice architecture, which divides the original single and complex system into multiple independent functional modules. Each module exists as an independent service and is responsible for specific functions, such as data processing, storage, and analysis.
[0003] When managing these services, operation and maintenance personnel not only need to sort out and handle the dependencies between each service, but also need to manage the service configuration in detail. The traditional manual deployment mode requires that services be deployed one by one according to the service dependencies, and the configurations of all related dependent services must be updated synchronously when the configuration is modified, and then the services must be restarted in sequence. Especially when performing service migration, operation and maintenance personnel need to manually organize the configuration and related data of each service and migrate them to the new environment. During the migration process, it is necessary to ensure the compatibility of the service configuration with the new environment, and also consider the consistency and integrity of the spatiotemporal data. In summary, the traditional manual deployment mode has cumbersome manual operations and potential errors. Summary of the invention
[0004] In view of this, the purpose of the present invention is to provide a method, device, equipment and medium for automatically updating spatiotemporal domain dependent services, which realizes the automatic update of spatiotemporal domain dependent services, simplifies the deployment complexity and effectively avoids potential errors.
[0005] In a first aspect, an embodiment of the present invention provides a method for automatically updating a spatiotemporal domain dependent service. The method is applied to a target system. A spatiotemporal domain dependent service is configured in the target system. The spatiotemporal domain dependent service is obtained by integrating multiple spatiotemporal domain dependent functions. The method includes:
[0006] Load the CRD configuration information corresponding to each spatiotemporal domain dependent function. The CRD configuration information is used to describe the enabled status, resource allocation, and dependency of the spatiotemporal domain dependent function.
[0007] If a change event of the CRD configuration information is monitored, the target spatiotemporal domain dependent function involved in the change event is determined, and the new CRD configuration information is parsed to obtain the configuration change content corresponding to the target spatiotemporal domain dependent function;
[0008] Based on the configuration changes, the target space-time domain dependent functions are dynamically updated.
[0009] In one implementation, before monitoring a CRD configuration information change event, the method further includes:
[0010] The Informer mechanism is used to continuously monitor changes in CRD configuration information.
[0011] In one embodiment, determining the target spatiotemporal domain dependent function involved in the change event includes:
[0012] The space-time domain dependent function to which the new CRD configuration information belongs is determined as the target space-time domain dependent function; or, the space-time domain dependent function to which the new CRD configuration information belongs, and the space-time domain dependent functions that have a dependency relationship with it, are all determined as the target space-time domain dependent functions.
[0013] In one implementation, parsing the new CRD configuration information to obtain configuration change content corresponding to the target spatiotemporal domain dependent function includes:
[0014] The new CRD configuration information is compared with the original CRD configuration information of the target spatiotemporal domain dependent function to which the new CRD configuration information belongs, so as to obtain the configuration change content corresponding to the target spatiotemporal domain dependent function.
[0015] In one implementation, the target system is also configured with a deployment process corresponding to each spatiotemporal domain dependent function; based on the configuration change content, the target spatiotemporal domain dependent function is dynamically updated, including:
[0016] If the configuration change content is: the enabling state of the target space-time domain dependent function is set to function enabled, then the deployment process corresponding to the target space-time domain dependent function is called to make the target space-time domain dependent function online;
[0017] Alternatively, if the configuration change content is: the enabling state of the target space-time domain dependent function is set to function disabled, the target space-time domain dependent function is stopped from running, and the target space-time domain dependent function is removed;
[0018] Alternatively, if the configuration change content is: the changed configuration parameters corresponding to the target space-time domain dependent function, then the configuration parameters of the target space-time domain dependent function are updated using the changed configuration parameters, and based on the mapping relationship between the changed configuration parameters and the parameters between functions, the configuration parameters of other target space-time domain dependent functions that have a dependency relationship with the target space-time domain dependent function are updated, and each target space-time domain dependent function is restarted.
[0019] In one embodiment, the method further comprises:
[0020] During the dynamic update process, enable the log collection function and / or performance monitoring function for the target spatiotemporal domain dependent functions;
[0021] Among them, the log collection function is used to: collect the operation logs of the target space-time domain dependent functions in real time; the performance monitoring function is used to: monitor the performance indicators of the target space-time domain dependent functions.
[0022] In one embodiment, the method further comprises:
[0023] If a service migration request is received, the spatiotemporal domain dependent service is migrated to another target system corresponding to the service migration request.
[0024] In a second aspect, an embodiment of the present invention further provides a device for automatically updating a spatiotemporal domain dependent service, the device is applied to a target system, a spatiotemporal domain dependent service is configured in the target system, the spatiotemporal domain dependent service is obtained by integrating multiple spatiotemporal domain dependent functions, and the device includes:
[0025] Configuration loading module, used to load the CRD configuration information corresponding to each spatiotemporal domain dependent function. The CRD configuration information is used to describe the enabled state, resource allocation and dependency relationship of the spatiotemporal domain dependent function.
[0026] The configuration monitoring module is used to determine the target spatiotemporal domain dependent function involved in the change event if a change event of the CRD configuration information is monitored, and parse the new CRD configuration information to obtain the configuration change content corresponding to the target spatiotemporal domain dependent function;
[0027] The configuration update module is used to dynamically update the target space-time domain dependent functions based on the configuration changes.
[0028] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement any one of the methods provided in the first aspect.
[0029] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement any one of the methods provided in the first aspect.
[0030] The embodiment of the present invention provides a method, device, equipment and medium for automatically updating spatiotemporal domain dependent services, which are applied to a target system. The target system is configured with a spatiotemporal domain dependent service, which is obtained by integrating multiple spatiotemporal domain dependent functions. On this basis, the CRD configuration information corresponding to each spatiotemporal domain dependent function is first loaded, and the CRD configuration information is used to describe the enabled state, resource allocation and dependency relationship of the spatiotemporal domain dependent function; then, when the change event of the CRD configuration information is monitored, the target spatiotemporal domain dependent function involved in the change event is determined, and the new CRD configuration information is parsed to obtain the configuration change content corresponding to the target spatiotemporal domain dependent function; finally, based on the configuration change content, the target spatiotemporal domain dependent function is dynamically updated. The above method abandons the cumbersome manual operations and potential errors in the traditional spatiotemporal service configuration management, and introduces a real-time CRD configuration monitoring mechanism. This change not only accelerates the automatic deployment, seamless update and instant uninstallation of services, but also ensures the accuracy of configuration and the continuous and stable operation of services when dealing with large-scale data processing and complex dependencies, significantly improving the operation and maintenance efficiency and response speed.
[0031] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0032] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0034] Figure 1 A schematic diagram of a flow chart of a method for automatically updating a spatiotemporal domain dependent service provided by an embodiment of the present invention;
[0035] Figure 2 An overall flow chart of a method for automatically updating a spatiotemporal domain dependent service provided by an embodiment of the present invention;
[0036] Figure 3 A simplified flowchart of a method for automatically updating a spatiotemporal domain dependent service provided by an embodiment of the present invention;
[0037] Figure 4 A schematic diagram of an overview flow of a method for automatically updating a spatiotemporal domain dependent service provided by an embodiment of the present invention;
[0038] Figure 5 A schematic diagram of the structure of a device for automatically updating a spatiotemporal domain dependent service provided by an embodiment of the present invention;
[0039] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described in combination with the embodiments below. 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.
[0041] Containerization and microservice architecture bring many advantages to the deployment of services in the space-time domain, but as the number of services, dependencies, and configuration items increase, the management difficulty and migration cost also increase. How to efficiently manage these interdependent and complexly configured services to ensure smooth communication and efficient collaboration has become a key issue in the operation and maintenance of the space-time domain. However, the traditional manual deployment mode has cumbersome manual operations and potential errors.
[0042] Based on this, the present invention implements a method, device, equipment and medium for automatically updating services dependent on the time and space domain, which realizes the automatic update of services dependent on the time and space domain, simplifies the deployment complexity and effectively avoids potential errors.
[0043] To facilitate understanding of this embodiment, we first introduce in detail a method for automatically updating spatiotemporal domain dependent services disclosed in an embodiment of the present invention. This method is applied to a target system to seamlessly integrate all spatiotemporal domain dependent services (short for spatiotemporal services) into the target system. The integrated spatiotemporal domain dependent services are taken as a whole. To facilitate distinguishing the spatiotemporal domain dependent services before and after integration, all spatiotemporal domain dependent services before integration are recorded as spatiotemporal domain dependent functions, and the integrated spatiotemporal domain dependent services are directly used as the spatiotemporal domain dependent services referred to in the embodiment of the present invention. Based on this, the target system is configured with a spatiotemporal domain dependent service, and the spatiotemporal domain dependent service is obtained by integrating multiple spatiotemporal domain dependent functions, see Figure 1 The flowchart of a method for automatically updating a spatiotemporal domain dependent service is shown, and the method mainly includes the following steps S102 to S106:
[0044] Step S102, loading the CRD configuration information corresponding to each spatiotemporal domain dependent function.
[0045] Before executing step S102, all spatiotemporal domain dependent functions (including remote sensing data processing, spatiotemporal data analysis, GIS (Geographic Information System) applications, etc.) need to be seamlessly integrated into the target system to ensure comprehensive coverage of functions and efficient collaboration between dependent services. When executing step S102, by defining and configuring Kubernetes CRD (Custom Resource Definition) custom resources in a unified manner, the system is given powerful flexibility and configuration management capabilities. CRD custom resources are also CRD configuration information, which is used to describe the enabled status, resource allocation, and dependency relationships of spatiotemporal domain dependent functions.
[0046] Step S104: If a change event of the CRD configuration information is monitored, the target spatiotemporal domain dependent function involved in the change event is determined, and the new CRD configuration information is parsed to obtain the configuration change content corresponding to the target spatiotemporal domain dependent function.
[0047] Among them, change events are used to describe changes in the enabled state, configuration parameters, and other contents of the spatiotemporal domain dependent function. Change events may include addition, update, deletion, and other events. The target spatiotemporal domain dependent function may be the spatiotemporal domain dependent function to which the changed CRD configuration information (i.e., the new CRD configuration information) belongs, or may be other spatiotemporal domain dependent functions that have a dependency relationship with the spatiotemporal domain dependent function to which the changed CRD configuration information belongs. The configuration change content is used to characterize the specific situation after the target spatiotemporal domain dependent function changes, such as whether the enabled state after the change is on or off, the specific values of the changed configuration parameters, etc.
[0048] In one example, the system uses the Informer mechanism of Kubernetes to monitor the change events of CRD configuration information in real time, and determines the target space-time domain dependency functions to be deployed or updated based on the type of change events. It also compares the new CRD configuration information with the original CRD configuration information to parse the configuration change content corresponding to the target space-time domain dependency.
[0049] Step S106: dynamically update the target space-time domain dependent functions based on the configuration change content.
[0050] In one example, when an update to the CRD configuration information is detected, the system responds immediately: automatically deploying relevant spatiotemporal domain-dependent functions according to the configuration changes, updating the configuration of existing spatiotemporal domain-dependent functions, or uninstalling spatiotemporal domain-dependent functions that are no longer needed. This process eliminates the complexity and delay of manual intervention, which is particularly critical in highly dynamic and real-time spatiotemporal data processing. For example, when responding to sudden disasters, the system can automatically adjust relevant analysis models and computing resources to quickly respond to changes.
[0051] The automatic update method of spatiotemporal domain dependent services provided by the embodiment of the present invention abandons the cumbersome manual operations and potential errors in traditional spatiotemporal service configuration management, and introduces a real-time CRD configuration monitoring mechanism. This change not only accelerates the automatic deployment, seamless update and instant uninstallation of services, but also ensures the accuracy of configuration and the continuous and stable operation of services when dealing with large-scale data processing and complex dependencies, thereby significantly improving operation and maintenance efficiency and response speed.
[0052] For ease of understanding, the present invention provides an implementation method for automatically updating a spatiotemporal domain dependent service. Figure 2 The overall flow chart of a method for automatically updating spatiotemporal domain dependent services shown in the figure involves the integration of spatiotemporal domain dependent functions, unified configuration definition, dynamic update of spatiotemporal domain dependent functions, environment migration and deployment, etc. Specifically, it includes: first, all spatiotemporal domain dependent functions are seamlessly integrated into the target system to ensure comprehensive coverage and efficient collaboration of functions. Secondly, by configuring Kubernetes CRD (Custom Resource Definition) custom resources, a more flexible and powerful unified configuration management capability is provided for the target system. Subsequently, the target system monitors the changes in CRD configuration information in real time. Once the CRD configuration information is updated, it responds immediately, automatically deploys functions, updates existing functions, and uninstalls functions that are no longer needed according to the new CRD configuration information; when deploying or updating the spatiotemporal domain dependent function instance, the target system automatically turns on the log collection function and the monitoring function according to the spatiotemporal domain dependent functions configured to meet the conditions, so as to ensure the stable operation of the spatiotemporal domain dependent functions and the security and controllability of data. Finally, in order to achieve fast and low-cost migration of the environment, it supports the complete and correct migration of the current target system state and all configurations to another environment, such as seamless migration from the development environment to the test environment, which greatly improves the efficiency and flexibility of development and testing. The method for automatically updating spatiotemporal domain-dependent services provided by the embodiment of the present invention not only simplifies the complexity of operation and maintenance, but also accelerates the iteration cycle of products, providing solid technical support for the rapid development of businesses.
[0053] Furthermore, the embodiment of the present invention provides a more detailed explanation of the method for automatically updating the spatiotemporal domain dependent service.
[0054] (I) Integration of spatiotemporal domain-dependent functions: All spatiotemporal domain-dependent functions (including remote sensing data processing, spatiotemporal data analysis, GIS applications, etc.) are seamlessly integrated into the target system to ensure comprehensive coverage of functions and efficient coordination among dependent services.
[0055] The integration of spatiotemporal domain dependent functions is to add the deployment and uninstallation logic of each spatiotemporal domain dependent function to the system through code development to form a unified and manageable service system. In this process, developers will write corresponding YAML (abbreviation of YAML Ain't Markup Language) deployment scripts for each spatiotemporal domain dependent function to ensure the smooth deployment and management of spatiotemporal domain dependent functions in the Kubernetes environment. This process not only includes traditional core services such as data processing, storage, and analysis, but also covers functional modules specific to the spatiotemporal domain such as image processing and data distribution, which usually have high real-time and complex data processing requirements in the spatiotemporal domain.
[0056] When implementing the integration of spatiotemporal domain dependency functions, developers first need to write and configure relevant YAML scripts according to the specific requirements of the spatiotemporal domain dependency functions. These scripts define the deployment details of the spatiotemporal domain dependency functions, such as resource allocation, service dependency, network configuration, etc. Then, developers integrate the deployment and uninstallation logic of these spatiotemporal domain dependency functions into the main process of the target system by writing code. In this way, whenever the target system needs to deploy, update or uninstall a spatiotemporal service, the target system can automatically perform the corresponding operations to ensure the smooth operation of the spatiotemporal domain dependency functions and the efficient use of resources.
[0057] Finally, these integrated spatiotemporal domain dependent functional logics are connected in series to form the operation process of the entire platform. In this way, the spatiotemporal domain dependent functions can be automatically managed in a unified platform system, ensuring seamless collaboration between various modules and meeting the requirements for high performance, scalability, and real-time response in the spatiotemporal data processing process. The core goal of this step is to eliminate the isolation between the spatiotemporal domain dependent functions, improve the operating efficiency and stability of the overall system, and ensure that the spatiotemporal domain dependent functions run smoothly in a unified platform and play their respective functions.
[0058] (ii) Unified configuration definition: By defining unified configuration Kubernetes CRD custom resources, the target system is given powerful flexibility and configuration management capabilities. Especially in the field of space and time, data and service configurations are often complex and dynamically changing. The unified configuration defined by CRD enables the target system to quickly adjust to different types of space and time data and processing requirements. For example, the target system can automatically adjust service configurations and dynamically allocate computing resources according to real-time changing satellite orbit data or meteorological conditions to ensure efficient execution of space and time data processing tasks.
[0059] In the specific implementation, after completing the integration of spatiotemporal services, the system defines and manages various configurations of spatiotemporal domain dependent functions by defining and configuring CRD custom resources, including data such as service switches and service information. CRD allows the creation of custom resource types based on the unique needs of the spatiotemporal domain, and converts specific configuration items (such as the enabled status of the service, resource allocation, dependencies, etc.) into manageable resource objects through code, so that the target system can flexibly manage these resources. The introduction of CRD enables the target system to dynamically adjust the configuration of spatiotemporal domain dependent functions according to changes in real-time needs, thereby realizing the dynamic update of spatiotemporal domain dependent functions. Through this configuration definition, the target system obtains more powerful configuration management capabilities and can quickly respond to changing needs in different application scenarios. The dynamic adjustment function provided by CRD ensures that the spatiotemporal domain dependent functions can automatically adjust the operating status and resource allocation according to the actual scenario requirements and data load, thereby optimizing system performance and resource utilization. The importance of this step is to lay the foundation for subsequent automated management and dynamic adjustment of services, so that the system can adjust the configuration according to actual needs and ensure that each spatiotemporal domain dependent function runs under the optimal configuration.
[0060] (III) Dynamic update of space-time services:
[0061] Considering that in the traditional manual deployment mode, operation and maintenance personnel need to carefully sort out the dependencies of each service, this process is not only time-consuming and labor-intensive, but also prone to errors. The configuration file of each service involves network settings, storage location, environment variables, and log levels, and the configuration of spatiotemporal services is more complicated, such as the configuration of spatiotemporal image data. When managing these configurations, inconsistencies or omissions are very likely to occur, especially when service dependencies are involved. In addition, manual deployment of services involves multiple complex steps, and the configuration and dependencies of each service are different, which increases the complexity of deployment and the risk of errors. When modifying the configuration, the operation and maintenance personnel need to synchronously update all dependent services and restart them one by one. If this process is not done properly, it is easy to affect the continuity of the service, and it may also cause system failures due to restart failures or configuration errors.
[0062] Therefore, the embodiment of the present invention uses the Informer mechanism of Kubernetes to monitor the changes of CRD configuration information in real time to ensure the automated management of spatiotemporal domain dependency functions. When a configuration update is detected, the system responds immediately and automatically performs the following operations: automatically deploy relevant spatiotemporal domain dependency functions according to the new CRD configuration information to meet new business needs; update the spatiotemporal domain dependency functions of existing services, and automatically restart the spatiotemporal domain dependency functions to ensure that the spatiotemporal domain dependency functions are continuously in the best state; or uninstall the spatiotemporal domain dependency functions that are no longer needed to release system resources. This process eliminates the complexity and delay of manual intervention, which is particularly critical in the processing of spatiotemporal data with high dynamics and high real-time requirements. At the same time, according to the dependency relationship between services in the CRD configuration information, the corresponding services are automatically updated in sequence to ensure the uninterrupted and stable operation of the overall system services. For example, when responding to sudden disasters, the system can automatically adjust relevant analysis models and computing resources to quickly respond to changes. In addition, when eligible spatiotemporal domain dependency functions (also known as spatiotemporal domain dependency functions) are created or updated, the system can also automatically enable the service operation log collection function and monitoring function for this target spatiotemporal domain dependency function according to the configuration. Exemplary, such as Figure 3 The figure shows a simplified flow chart of a method for automatically updating services in a spatiotemporal domain, including configuring monitoring initialization, monitoring CRD changes, parsing changes, and turning on / off monitoring and logging.
[0063] For ease of understanding, the embodiment of the present invention provides a more detailed explanation of the dynamic update of the spatiotemporal service, including:
[0064] (1)Configure monitoring initialization:
[0065] After the system starts, the CRD configuration information is first loaded into the system memory. This initialization process ensures that the system can obtain the latest configuration in real time and provide accurate configuration data for subsequent operations.
[0066] (2) Monitor CRD changes: Continuously monitor changes in CRD configuration information through the Informer mechanism. In specific implementation, the system continuously monitors changes in CRD configuration information through the Informer mechanism of Kubernetes, including operations such as adding, updating, and deleting. These change events will be triggered and passed to the corresponding processing function.
[0067] (3) Determine the target space-time domain dependent functions and analyze the changes:
[0068] (3.1) Determine the target spatiotemporal domain dependent function: determine the spatiotemporal domain dependent function to which the new CRD configuration information belongs as the target spatiotemporal domain dependent function; or, determine the spatiotemporal domain dependent function to which the new CRD configuration information belongs and the spatiotemporal domain dependent functions that have a dependency relationship therewith as the target spatiotemporal domain dependent functions.
[0069] In one example, if the new CRD configuration information updates the configuration parameters compared to the original CRD information, and the configuration parameters will not affect other space-time domain dependent functions, then only the space-time domain dependent function to which the new CRD configuration information belongs shall be used as the space-time domain dependent function to be updated.
[0070] In another example, if the new CRD configuration information is the deployment (enabling) or uninstallation (enabling) of a spacetime domain dependent function; or the new CRD configuration information updates the configuration parameters compared to the original CRD information, but the configuration parameters will affect other spacetime domain dependent functions, then according to the dependency relationship configured in (a), other spacetime domain dependent functions that have a dependency relationship with the spacetime domain dependent function to which the new CRD configuration information belongs will be found and all of them will be used as target spacetime domain dependent functions.
[0071] (3.2) Parsing the changed content: Compare the new CRD configuration information with the original CRD configuration information of the target spatiotemporal domain dependent function to which the new CRD configuration information belongs, so as to obtain the configuration change content corresponding to the target spatiotemporal domain dependent function.
[0072] In actual applications, when the system monitors changes in CRD configuration information, it will parse the specific content of the change through a callback function. First, the system identifies the type of change (addition, update, deletion), and then parses the specific changes by comparing the current state of the CRD configuration information with the previous state, such as module enablement status, task configuration changes, or service parameter adjustments. The parsing process involves reading the fields and attributes defined in the CRD configuration information and mapping them to specific service operations according to predefined rules to ensure accurate instructions and data support for subsequent service management operations.
[0073] (4) Perform service update operations:
[0074] See also Figure 4 An overview flow chart of a method for automatically updating a spatiotemporal domain dependency service is shown, including: in the case of a unified configuration change, if the module is turned on, the spatiotemporal domain dependency function is created; if the unified configuration data changes, the configuration parameters of the relevant spatiotemporal domain dependency function are updated, and the relevant spatiotemporal domain dependency function is restarted; if the module is turned off, the spatiotemporal domain dependency function is deleted.
[0075] Please refer to the following cases 1 to 3 for details:
[0076] Case 1: If the configuration change content is: the enabling state of the target spatiotemporal domain dependent function is set to function on, then the deployment process corresponding to the target spatiotemporal domain dependent function is called to make the target spatiotemporal domain dependent function online. Optionally, the spatiotemporal domain dependent function to which the new CRD configuration information belongs and its dependent spatiotemporal domain dependent functions are deployed to the target system.
[0077] For example, the spatiotemporal domain dependent function is an image processing function. Module on (marked as true): For example, if the analysis result shows that the switch mark of the image processing function is set to true, the system will bring the image processing function online and start processing tasks according to the integrated deployment process.
[0078] Case 2: If the configuration change content is: the enabled state of the target spatiotemporal domain dependent function is set to function disabled, the target spatiotemporal domain dependent function is stopped and removed. Optionally, the spatiotemporal domain dependent function to which the new CRD configuration information belongs and its dependent spatiotemporal domain dependent functions are removed from the target system.
[0079] For example, let's take the case where the spatiotemporal domain dependent function is the image processing function. Module shutdown (marked as false): If the switch mark of the image processing function is set to false, the system will automatically uninstall the related image processing function instance to release computing resources. For example, when the image processing task is no longer needed, the system will stop and remove the corresponding image processing function instance to ensure that cluster resources are not idle.
[0080] Case 3: If the configuration change content is: the changed configuration parameters corresponding to the target spatiotemporal domain dependent function, then the configuration parameters of the target spatiotemporal domain dependent function are updated using the changed configuration parameters, and based on the changed configuration parameters and the parameter mapping relationship between functions, the configuration parameters of other target spatiotemporal domain dependent functions that have a dependency relationship with the target spatiotemporal domain dependent function are updated, and each target spatiotemporal domain dependent function is restarted. Among them, the function parameter mapping relationship is used to describe the parameter mapping relationship between spatiotemporal domain dependent functions that have a dependency relationship. For example, when a configuration parameter of function 1 is n, the same configuration parameter of function 2 that has a dependency relationship with function 1 should be set to m, thereby realizing the update of the configuration parameters of other target spatiotemporal domain associated dependent functions.
[0081] For example, let's continue to take the image processing function as an example. If a parameter configuration change of a service is detected (such as the number of parallel tasks of the image processing function increases from 5 to 10), the system will automatically update the CRD configuration information in all existing space-time domain dependent functions associated with the configuration service, and gradually restart all existing CRD configuration information associated with the configuration service according to the process integrated in (I), to ensure that the update takes effect without interrupting the service.
[0082] (5) Enable monitoring and logging:
[0083] Considering that in the traditional operation and maintenance model, service operation logs and service monitoring functions usually adopt a post-remediation approach, recording and analysis are only started after the problem occurs, missing the opportunity to intervene in the early stage of the problem, and it is difficult to meet the high requirements of spatiotemporal services for data accuracy and stability.
[0084] Therefore, when deploying or updating the spatiotemporal domain dependent function instance, the system automatically starts the log collection and monitoring service function according to the spatiotemporal domain dependent function (i.e., the target spatiotemporal domain dependent function) configured to meet the conditions, ensuring that the running status of the service can be tracked and monitored, facilitating the timely discovery and resolution of problems. Especially in the spatiotemporal domain, logs and monitoring are crucial to the guarantee of data quality and service status.
[0085] In the specific implementation, during the dynamic update process, enable the log collection function and / or performance monitoring function for the target spatiotemporal domain dependency functions:
[0086] In one example, the log collection function is used to collect the running logs of the target spatiotemporal domain dependent functions in real time. When a qualified spatiotemporal service instance (such as the image processing function) is created or updated, the system will configure a log collection container (such as the Filebeat Sidecar container) for the instance to collect the running logs of the image processing function in real time into the log system (such as ELK). This configuration is automatically injected when the instance is deployed to ensure that log data can be continuously collected and monitored for subsequent analysis and troubleshooting.
[0087] In one example, the performance monitoring function is used to monitor the performance indicators of the target spatiotemporal domain-dependent functions. When a qualified spatiotemporal domain-dependent function instance (such as the image processing function) is created or updated, the system will inject configurations that can implement the monitoring function (such as monitoring service connection information, monitoring breakpoints, etc.) into the instance. Through these configurations, the performance indicators of the image processing function (such as processing speed, CPU and memory usage) will be automatically collected and visualized in the monitoring panel (such as Grafana), ensuring that the service operation status is transparent and traceable, and problems can be discovered and solved in a timely manner.
[0088] (IV) Environment Migration and Deployment:
[0089] Considering that in the traditional operation and maintenance model, when performing service migration, the operation and maintenance personnel need to manually organize the configuration and data of each service and migrate them to the new environment to ensure the compatibility and data consistency of the new environment. If you are not careful, it may cause the service to fail to start normally. In addition, after the migration, the service operation log and service monitoring functions often need to be reconfigured and deployed to ensure real-time monitoring of the service, which further increases the complexity of operation and maintenance.
[0090] Therefore, in order to achieve fast and low-cost migration of the system environment, the system supports the complete and accurate migration and deployment of the current system status and all configurations to another environment. This includes not only conventional service configuration and data status, but also the distributed storage solution, indexing strategy, and data consistency verification mechanism of spatiotemporal data. Through this comprehensive migration support, the system can quickly adapt to the spatiotemporal data processing needs in different environments and ensure the accuracy and consistency of the data.
[0091] Specifically, if a service migration request is received, the spatiotemporal domain dependent services are migrated as a whole to another target system corresponding to the service migration request. For example, to seamlessly migrate from a development environment to a test environment, the integrated spatiotemporal domain dependent services can be directly migrated from the development environment to the test environment as a whole. This function greatly improves the efficiency of system switching between different environments, reduces errors and risks during manual migration, and ensures the stable operation of the system after migration. Fast and low-cost environment migration is not only applicable to the switching of development and test environments, but also to the deployment of production environments, providing strong support for the continuous integration and delivery of remote sensing services.
[0092] In summary, the automatic update method of spatiotemporal dependent services provided by the embodiment of the present invention monitors CRD configuration in real time through the Informer mechanism of Kubernetes, automatically handles the deployment, update and uninstallation of all dependent services, and intelligently enables log collection and monitoring functions for services that meet preset conditions; and realizes fast and low-cost service migration. Compared with traditional methods (such as manual configuration and deployment, non-real-time service management, lack of automated monitoring and response, etc.), this strategy shows the following significant advantages in the challenges faced by containerization and microservice architecture in the deployment of spatiotemporal services:
[0093] 1. Real-time automated configuration management: Abandoning the cumbersome manual operations and potential errors in traditional spatiotemporal service configuration management, the embodiment of the present invention innovatively introduces a real-time CRD configuration monitoring mechanism. This change not only accelerates the automated deployment, seamless update, and instant uninstallation of services, but also ensures accurate configuration and continuous and stable operation of services when dealing with large-scale data processing and complex dependencies, significantly improving operation and maintenance efficiency and response speed.
[0094] 2. Pre-enabling functions to ensure service stability: Subverting the traditional post-remediation monitoring model, the embodiment of the present invention automatically pre-enables log collection and comprehensive monitoring functions for eligible services when deploying spatiotemporal services. This forward-looking design ensures that the service is fully protected once it goes online, effectively avoiding monitoring blind spots and potential risks under high data volume and real-time requirements, and building a solid defense line for the stable operation of the service and problem tracing.
[0095] 3. Integrated service management: In view of the pain points of complex data transfer between modules and difficult dependency management in traditional spatiotemporal service management, the embodiment of the present invention builds an integrated service management platform. The platform realizes the centralized management and efficient collaboration of all service modules, simplifies the management process, eliminates collaboration obstacles, and makes complex data processing and multi-module collaboration smoother and more efficient than ever before.
[0096] 4. Low-cost and fast environment migration: Abandon the previous complex process of configuring and modifying multiple space-time services one by one and then migrating. Through a one-time system migration operation, the comprehensive migration of multiple embedded space-time services can be achieved, including the complete preservation and seamless transfer of service configuration and service status. This function not only simplifies the migration process and reduces the migration cost, but also ensures seamless transition and rapid deployment between different environments, providing strong support for enterprises to flexibly respond to complex and changing IT environments.
[0097] 5. Enhanced service maintainability: Facing the challenges in traditional space-time service maintenance, the embodiments of the present invention achieve a comprehensive upgrade of service maintenance by deeply integrating automated configuration management and intelligent monitoring log functions. This change not only greatly shortens the time for problem location and resolution, reduces the complexity and error rate of manual intervention, but also demonstrates excellent efficiency and stability when dealing with complex configurations and large-scale data processing, thus safeguarding the long-term stable operation of space-time services.
[0098] Therefore, the spatiotemporal domain dependency service automatic update provided by the embodiment of the present invention, with its core capability of real-time automatic monitoring configuration, not only solves multiple key challenges faced by the spatiotemporal domain in service dependency and deployment, but also can achieve the migration of the entire service quickly and at low cost. This efficient and flexible deployment method greatly improves the reliability and adaptability of spatiotemporal services and promotes the spatiotemporal domain to move towards intelligence and automation.
[0099] Based on the above-mentioned embodiment, the embodiment of the present invention provides a device for automatically updating a spatiotemporal domain dependent service. The device is applied to a target system. The target system is configured with a spatiotemporal domain dependent service. The spatiotemporal domain dependent service is obtained by integrating multiple spatiotemporal domain dependent functions. Figure 5 The schematic diagram of the structure of a device for automatically updating a spatiotemporal domain-dependent service is shown, and the device mainly includes the following parts:
[0100] Configuration loading module 502, used to load CRD configuration information corresponding to each spatiotemporal domain dependent function, where the CRD configuration information is used to describe the enabled state, resource allocation and dependency of the spatiotemporal domain dependent function;
[0101] The configuration monitoring module 504 is used to determine the target spatiotemporal domain dependent function involved in the change event if a change event of the CRD configuration information is monitored, and parse the new CRD configuration information to obtain the configuration change content corresponding to the target spatiotemporal domain dependent function;
[0102] The configuration update module 506 is used to dynamically update the target spatiotemporal domain dependent functions based on the configuration change content.
[0103] The automatic update device for spatiotemporal domain dependent services provided by the embodiment of the present invention abandons the cumbersome manual operations and potential errors in traditional spatiotemporal service configuration management, and introduces a real-time CRD configuration monitoring mechanism. This change not only accelerates the automatic deployment, seamless update and instant uninstallation of services, but also ensures the accuracy of configuration and the continuous and stable operation of services when dealing with large-scale data processing and complex dependencies, thereby significantly improving operation and maintenance efficiency and response speed.
[0104] In one implementation, the configuration monitoring module 504 is further configured to:
[0105] The Informer mechanism is used to continuously monitor changes in CRD configuration information.
[0106] In one implementation, the configuration monitoring module 504 is specifically used to:
[0107] The space-time domain dependent function to which the new CRD configuration information belongs is determined as the target space-time domain dependent function; or, the space-time domain dependent function to which the new CRD configuration information belongs, and the space-time domain dependent functions that have a dependency relationship with it, are all determined as the target space-time domain dependent functions.
[0108] In one implementation, the configuration monitoring module 504 is specifically used to:
[0109] The new CRD configuration information is compared with the original CRD configuration information of the target spatiotemporal domain dependent function to which the new CRD configuration information belongs, so as to obtain the configuration change content corresponding to the target spatiotemporal domain dependent function.
[0110] In one implementation, the target system is also configured with a deployment process corresponding to each spatiotemporal domain dependent function; the configuration update module 506 is specifically used to:
[0111] If the configuration change content is: the enabling state of the target space-time domain dependent function is set to function enabled, then the deployment process corresponding to the target space-time domain dependent function is called to make the target space-time domain dependent function online;
[0112] Alternatively, if the configuration change content is: the enabling state of the target space-time domain dependent function is set to function disabled, the target space-time domain dependent function is stopped from running, and the target space-time domain dependent function is removed;
[0113] Alternatively, if the configuration change content is: the changed configuration parameters corresponding to the target space-time domain dependent function, then the configuration parameters of the target space-time domain dependent function are updated using the changed configuration parameters, and based on the mapping relationship between the changed configuration parameters and the parameters between functions, the configuration parameters of other target space-time domain dependent functions that have a dependency relationship with the target space-time domain dependent function are updated, and each target space-time domain dependent function is restarted.
[0114] In one implementation, the configuration update module 506 is further configured to:
[0115] During the dynamic update process, enable the log collection function and / or performance monitoring function for the target spatiotemporal domain dependent functions;
[0116] Among them, the log collection function is used to: collect the operation logs of the target space-time domain dependent functions in real time; the performance monitoring function is used to: monitor the performance indicators of the target space-time domain dependent functions.
[0117] In one embodiment, a service migration module is further included, which is used to:
[0118] If a service migration request is received, the spatiotemporal domain dependent service is migrated to another target system corresponding to the service migration request.
[0119] The device provided in the embodiment of the present invention has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.
[0120] An embodiment of the present invention provides an electronic device. Specifically, the electronic device includes a processor and a storage device. The storage device stores a computer program, and when the computer program is executed by the processor, it executes the method described in any one of the above-mentioned implementation methods.
[0121] Figure 6 A structural diagram of an electronic device provided in an embodiment of the present invention, the electronic device 100 includes: a processor 60, a memory 61, a bus 62 and a communication interface 63, wherein the processor 60, the communication interface 63 and the memory 61 are connected via the bus 62; the processor 60 is used to execute an executable module stored in the memory 61, such as a computer program.
[0122] The memory 61 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 63 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.
[0123] The bus 62 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0124] Among them, the memory 61 is used to store programs, and the processor 60 executes the program after receiving the execution instruction. The method executed by the device for flow process definition disclosed in any embodiment of the above-mentioned embodiment of the present invention can be applied to the processor 60 or implemented by the processor 60.
[0125] The processor 60 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 60. The above processor 60 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiments of the present invention can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 61, and the processor 60 reads the information in the memory 61 and completes the steps of the above method in combination with its hardware.
[0126] The computer program product of the readable storage medium provided in the embodiment of the present invention includes a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be referred to the previous method embodiments, which will not be repeated here.
[0127] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0128] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A method for automatically updating a spatiotemporal domain-dependent service, characterized in that: The method is applied to a target system, wherein a spatiotemporal domain dependent service is configured in the target system, and the spatiotemporal domain dependent service is obtained by integrating multiple spatiotemporal domain dependent functions, and the method comprises: Loading CRD configuration information corresponding to each of the spatiotemporal domain dependent functions, the CRD configuration information being used to describe the enabling status, resource allocation, and dependency relationship of the spatiotemporal domain dependent functions; If a change event of the CRD configuration information is monitored, the target spatiotemporal domain dependent function involved in the change event is determined, and the new CRD configuration information is parsed to obtain the configuration change content corresponding to the target spatiotemporal domain dependent function; Based on the configuration change content, the target spatiotemporal domain dependent functions are dynamically updated.
2. The method for automatically updating spatiotemporal domain dependent services according to claim 1, characterized in that: Before monitoring the change event of the CRD configuration information, the method further includes: The changes of the CRD configuration information are continuously monitored through the Informer mechanism.
3. The method for automatically updating spatiotemporal domain dependent services according to claim 1, characterized in that: Determine the target spatiotemporal domain dependent functions involved in the change event, including: The space-time domain dependent function to which the new CRD configuration information belongs is determined as the target space-time domain dependent function; or, the space-time domain dependent function to which the new CRD configuration information belongs, and the space-time domain dependent function that has a dependent relationship with it, are both determined as the target space-time domain dependent function.
4. The method for automatically updating spatiotemporal domain dependent services according to claim 1, characterized in that: Parsing the new CRD configuration information to obtain the configuration change content corresponding to the target spatiotemporal domain dependent function, including: The new CRD configuration information is compared with the original CRD configuration information of the target spatiotemporal domain dependent function to which the new CRD configuration information belongs, so as to obtain the configuration change content corresponding to the target spatiotemporal domain dependent function.
5. The method for automatically updating a spatiotemporal domain dependent service according to claim 1, characterized in that: The target system is also configured with a deployment process corresponding to each of the spatiotemporal domain dependent functions; based on the configuration change content, the target spatiotemporal domain dependent functions are dynamically updated, including: If the configuration change content is: the enabling state of the target space-time domain dependent function is set to function on, calling the deployment process corresponding to the target space-time domain dependent function to make the target space-time domain dependent function online; Alternatively, if the configuration change content is: the enabling state of the target space-time domain dependent function is set to function off, then the target space-time domain dependent function is stopped from running, and the target space-time domain dependent function is removed; Alternatively, if the configuration change content is: the changed configuration parameters corresponding to the target space-time domain dependent function, then the configuration parameters of the target space-time domain dependent function are updated using the changed configuration parameters, and based on the mapping relationship between the changed configuration parameters and the parameters between functions, the configuration parameters of other target space-time domain dependent functions that have a dependent relationship with the target space-time domain dependent function are updated, and each of the target space-time domain dependent functions is restarted.
6. The method for automatically updating a spatiotemporal domain dependent service according to claim 1, characterized in that: The method further comprises: During the dynamic update process, a log collection function and / or a performance monitoring function is enabled for the target spatiotemporal domain dependent function; Among them, the log collection function is used to: collect the operation log of the target space-time domain dependent function in real time; the performance monitoring function is used to: monitor the performance indicators of the target space-time domain dependent function.
7. The method for automatically updating a spatiotemporal domain dependent service according to claim 1, characterized in that: The method further comprises: If a service migration request is received, the spatiotemporal domain dependent service is migrated to another target system corresponding to the service migration request.
8. A device for automatically updating services dependent on time and space domains, characterized in that: The device is applied to a target system, wherein a spatiotemporal domain dependent service is configured in the target system, wherein the spatiotemporal domain dependent service is obtained by integrating a plurality of spatiotemporal domain dependent functions, and the device comprises: A configuration loading module, used to load CRD configuration information corresponding to each of the spatiotemporal domain dependent functions, wherein the CRD configuration information is used to describe the enabling status, resource allocation and dependency relationship of the spatiotemporal domain dependent functions; A configuration monitoring module is used to determine the target spatiotemporal domain dependent function involved in the change event if a change event of the CRD configuration information is monitored, and parse the new CRD configuration information to obtain the configuration change content corresponding to the target spatiotemporal domain dependent function; A configuration update module is used to dynamically update the target spatiotemporal domain dependent functions based on the configuration change content.
9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the method according to any one of claims 1 to 7.