Method and system for automatically adapting credential server

Through the combination of yaml configuration and adaptation framework, the complexity of automated adaptation of Xinchuang servers is solved, and an efficient and simple adaptation process is realized, reducing the adaptation cost and improving the reliability and traceability of adaptation.

CN120255980AInactive Publication Date: 2025-07-04SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510373888.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-27
Publication Date
2025-07-04
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The prior art is difficult to efficiently automate the adaptation of different models of signal innovation servers, resulting in complex and high cost.

Method used

Set up adapter node information and tasks through the yaml configuration file, use the adapter framework to schedule tasks, execute adapter scripts, and display and persist adapter results in real time, supporting timeout policies, dynamic task scheduling and retry policies to simplify the adapter process.

Benefits of technology

It realizes simple and efficient automated adaptation of the information innovation server, reduces the adaptation cost of different models of servers, and has good portability and traceability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120255980A_ABST
    Figure CN120255980A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of credential server adaptation in the field of cloud infrastructure, in particular to an automatic adaptation method and system for credential servers, and the method comprises the following steps: setting adaptation node related information and adaptation tasks through a yaml configuration file; the adaptation framework performs task scheduling according to the yaml configuration, and executes a corresponding adaptation script on a specified server node; full-process management of the adaptation task is carried out, wherein the full-process management comprises the steps of regularly detecting server node states and recording adaptation logs; an adaptation result is collected, and an adaptation task execution record is displayed in real time; after the adaptation is completed, the adaptation data is persisted so as to facilitate follow-up analysis; the method has the beneficial effects that by using the method, the adaptation of the credential servers of different models can be simply and efficiently completed. A binary adaptation tool and an adaptation script set are deployed in a single node, a simple adaptation task starting instruction is executed, the function of an automatic adaptation server can be completed in a one-button mode, and real-time display and persistent storage of adaptation data are supported.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information technology application innovation server adaptation technology in the field of cloud infrastructure, and specifically to a method and system for automatic adaptation of information technology application innovation servers. Background Art

[0002] Kubernetes (usually abbreviated as K8s) is an open-source container orchestration platform. It aims to provide functions for automatic deployment, scaling, and operation of containerized applications. Kubernetes can manage containerized applications, providing features such as elasticity, self-healing, and automation, making the deployment and management of containerized applications more efficient and convenient.

[0003] Develop binary command-line tools based on programming languages and directly call them through the command line to execute specific tasks.

[0004] SSH (Secure Shell) is an encrypted network protocol used for secure remote login and command execution in an insecure network. It provides an encrypted communication session and can securely transmit data in an insecure network.

[0005] The heartbeat mechanism means that usually, the server periodically sends heartbeat packets to the client. The client receives the heartbeat packets and replies to inform the server of its own status and availability to indicate its normal operation. If no replied heartbeat packet is received within a certain period, the server will consider the current client unavailable, thus triggering the corresponding fault handling mechanism. This helps monitor the health status of each service in the system and promptly detect and handle faults. Summary of the Invention

[0006] The purpose of the present invention is to provide a method and system for automatic adaptation of information technology application innovation servers to solve the problems raised in the above background art.

[0007] To achieve the above purpose, the present invention provides the following technical solution: A method for automatic adaptation of information technology application innovation servers, the method comprising the following steps:

[0008] Set adaptation node-related information and adaptation tasks through a yaml configuration file;

[0009] The adaptation framework performs task scheduling according to the yaml configuration and executes the corresponding adaptation script on the specified server node;

[0010] Perform full-process management of adaptation tasks, including periodically detecting the status of server nodes and recording adaptation logs;

[0011] Collect adaptation results and display the execution records of adaptation tasks in real time;

[0012] Persist the adaptation data after completion of adaptation for subsequent analysis.

[0013] Preferably, the method further includes:

[0014] Provide an adaptation script, which is developed based on the business scenarios to be adapted and is used to automatically complete the function verification of the server module;

[0015] The adaptation scripts are differentiated by module and support configuring the dependencies between modules to ensure that the adaptation tasks are executed in a predetermined order;

[0016] The adaptation framework can dynamically schedule the adaptation scripts to the specified adaptation server for execution based on the configuration of the adaptation tasks.

[0017] Preferably, the method further includes:

[0018] Manually deploy the adaptation tool and the set of adaptation scripts on the initial seed node: the master node;

[0019] Automatically complete the connection, transmission of the adaptation tool, and node registration of other adaptation nodes: the slave nodes through a binary tool;

[0020] The adaptation tool identifies the configuration file, automatically schedules the adaptation tasks to the specified execution nodes, and periodically detects the node status to obtain the execution results.

[0021] Preferably, the method further includes:

[0022] Set a timeout policy, configure a timeout for each adaptation task to avoid subsequent tasks being stuck due to task anomalies;

[0023] Adopt a dynamic task scheduling strategy, preferentially schedule the module tasks executed on different nodes, and execute them according to the entry order or dependency relationship of the module tasks;

[0024] Provide a retry policy, support the automatic retry of a single module task within a specified number of times to reduce the risk of interruption of the adaptation process caused by occasional anomalies.

[0025] Preferably, the method further includes:

[0026] An adaptation result real-time feedback mechanism, which visualizes and displays the status of each node and the task progress of the adaptation modules in a web page manner by processing and analyzing the logs during the adaptation process;

[0027] An adaptation process log preservation mechanism, which uniformly collects the adaptation script logs and adaptation tool logs of each execution of the adaptation task to ensure the traceability of the adaptation results;

[0028] The adaptation result persistence mechanism supports configuring the persistent database or storage address, and stores the adaptation results in the configured persistent library in the corresponding format, facilitating data storage and analysis.

[0029] An adaptation system for a method of automated adaptation of an information technology application server. The system includes:

[0030] A configuration module for setting adaptation node-related information and adaptation tasks through a yaml configuration file;

[0031] A scheduling module, as part of the adaptation framework, performs task scheduling according to the yaml configuration and executes the corresponding adaptation script on the specified server node;

[0032] A management module responsible for the full-process management of adaptation tasks, including regularly detecting the status of server nodes, recording adaptation logs, and collecting adaptation results;

[0033] A display module for real-time display of adaptation task execution records;

[0034] A persistence module for persisting adaptation data after adaptation is completed, facilitating subsequent analysis.

[0035] Preferably, the system further includes:

[0036] A script development module for developing adaptation scripts based on the business scenarios to be adapted, and automatically completing the function verification of the server module;

[0037] A script management module that supports differentiating adaptation scripts by module and configuring the dependency relationships between modules to ensure that adaptation tasks are executed in a predetermined order;

[0038] Among them, the scheduling module further dynamically schedules the adaptation script to the specified adaptation server for execution according to the configuration of the adaptation task.

[0039] Preferably, the system further includes:

[0040] A deployment module for manually deploying adaptation tools and adaptation script sets on the initial seed node: the master node;

[0041] A node registration module that automatically completes the connection, transmission of adaptation tools, and node registration of other adaptation nodes: slave nodes through binary tools;

[0042] An automated service module enables the adaptation tool to recognize the configuration file, automatically schedules the adaptation task to the specified execution node, and regularly detects the node status to obtain the execution result.

[0043] Preferably, the system further includes:

[0044] The timeout policy module sets the timeout for each adaptation task to prevent subsequent tasks from being blocked due to task anomalies;

[0045] The dynamic task scheduling policy module preferentially schedules module tasks executed on different nodes and executes them according to the input order or dependency relationship of the module tasks;

[0046] The retry policy module supports automatic retry of a single module task within a specified number of times to reduce the risk of interruption of the adaptation process caused by occasional anomalies.

[0047] Preferably, the system further includes:

[0048] The real-time feedback module is used to process and analyze the logs during the adaptation process and visually display the status of each node and the task progress of the adaptation module in the form of a web page;

[0049] The log preservation module uniformly collects the adaptation script logs and adaptation tool logs of each execution of the adaptation task to ensure the traceability of the adaptation results;

[0050] The result persistence module supports configuring a persistent database or storage address and stores the adaptation results in the configured persistent library in the corresponding format for easy data storage and analysis.

[0051] Compared with the prior art, the beneficial effects of the present invention are:

[0052] The method and system for automated adaptation of Xinchuang servers proposed by the present invention can complete the adaptation of different models of Xinchuang servers more simply and efficiently by using this method. By deploying binary adaptation tools and adaptation script sets in a single node and executing a simple adaptation task start instruction, the function of automatically adapting the server can be completed with one key, and it supports real-time display and persistent storage of adaptation data. It has simplicity and good portability, and can greatly reduce the cost of Inspur Cloud in adapting servers of various manufacturers and models. Description of the Drawings

[0053] Figure 1 It is the flowchart of the adaptation task status display and adaptation result collection of the present invention;

[0054] Figure 2 It is the flowchart of the task scheduling of the master node of the present invention. Detailed Embodiments

[0055] In order to clearly and completely describe the objectives, technical solutions of the present invention, and make the advantages more clearly understood, the following further elaborates on the embodiments of the present invention with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are part of the embodiments of the present invention, rather than all embodiments, and are merely used to explain the embodiments of the present invention, not to limit the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention.

[0056] Example 1, please refer to Figures 1 to 2 , the present invention provides a technical solution: a method for automatic adaptation of a domestic information technology server, the method comprising the following steps:

[0057] 1. Flexible adaptation task configuration

[0058] Since the adaptation content varies for different models and scenarios, therefore, according to the requirements of the adaptation task, the actual executor configures the task node information, the name of the task module to be executed, and the task execution order required for the adaptation task as needed, ensuring the flexibility of the adaptation process.

[0059] 2. The adaptation script supports module division and specifying dependencies

[0060] When outputting the adaptation script, it supports distinguishing scripts by module, and storing the scripts of the same module in the same directory of the adaptation script set in advance. The task list and task execution order to be executed in module A are preset. Subsequently, when the adaptation task is configured with the name of module A, it will be executed in order according to the preset settings; it supports configuring dependencies between modules, and when executing the adaptation task, the module adaptation is executed in order according to the module dependency configuration, ensuring the correct process of the adaptation task.

[0061] 3. The seed node master creates slaves (node registration, tool transfer)

[0062] The initial adaptation tool and adaptation script are manually deployed on the seed node (i.e., the first management node), and other involved adaptation nodes automatically complete node connection, adaptation tool transfer, and node registration through binary tools, simplifying the node processing process and ensuring flexibility and accuracy.

[0063] 4. Provide automatic adaptation service

[0064] In the entire adaptation process, the adaptation tasks to be executed in this adaptation are set through a configuration file, and the binary tool automatically identifies the configuration, schedules the adaptation tasks to the specified execution nodes as needed, regularly detects the node status, and obtains the execution results. Technical key points:

[0065] 1) Timeout policy. It supports setting a timeout for each adaptation task to prevent subsequent tasks from being blocked due to an abnormal task. When a task times out, the next step is directly processed according to the set timeout policy.

[0066] 2) Dynamic task scheduling. During the actual adaptation process, some module tasks need to be executed at fixed task nodes. Therefore, a dynamic task scheduling policy is set. When multiple module tasks without dependencies need to be executed, module tasks that can be executed on different nodes are preferentially scheduled and separately dispatched to the corresponding nodes for execution; when module tasks need to use the same node, they are executed in the order of entry of the module tasks; when multiple module tasks with dependencies need to be executed, they are preferentially executed in the order of dependencies.

[0067] 3) Retry policy. Since the adaptation process is complex, to ensure adaptation efficiency and reduce the possibility of the entire adaptation process being interrupted due to accidental situations, the setting of the number of retries is increased, supporting automatic retries of individual module tasks within a specified number of times to avoid accidental exception risks.

[0068] 4) Easy-to-operate deployment method. For different models of physical machine scenarios faced by the adaptation environment, the method of directly deploying binary adaptation tools and adaptation script sets does not limit the physical machine node models, and any physical machine can be used as the running node of the adaptation tool, with good universality; and only the configuration file needs to be modified to handle different environments without complex operations, with simplicity.

[0069] Technical architecture:

[0070] a) Configure relevant information of adaptation nodes through yaml.

[0071] b) Sort out and output adaptation scripts according to adaptation requirements.

[0072] c) The adaptation framework performs task scheduling according to the yaml configuration of the adaptation task and executes the corresponding adaptation script on the specified server node.

[0073] d) Manage the entire process of adaptation tasks and periodically detect the status of server nodes.

[0074] e) Record adaptation logs and collect adaptation results.

[0075] f) Real-time display of adaptation task execution records.

[0076] g) Persist adaptation data after adaptation is completed for easy analysis.

[0077] 5. Adaptation information collection

[0078] 1) Real-time feedback of adaptation results. When performing a task, the logs during the adaptation process are processed and analyzed, and the status of each node involved in the current task and the task progress of each adaptation module are visually displayed in the form of a web page for easy viewing by operators. After the adaptation task is successfully executed, the results will be retained for 10 minutes and then exit.

[0079] 2) Preservation of adaptation process logs. The adaptation script logs and adaptation tool logs of each execution of the adaptation task are uniformly collected to ensure the traceability of the adaptation results. The logs of the last successful adaptation are saved separately to ensure the accuracy of obtaining adaptation data.

[0080] 3) Persistent storage of adaptation results. After the adaptation task is executed, it supports configuring a persistent database or the Minio address. By executing the corresponding data storage instruction, the adaptation results are stored in the configured persistent library in the corresponding format for easy data storage.

[0081] Embodiment 2, based on Embodiment 1, proposes an adaptation system for an information innovation server automation adaptation method. The system includes:

[0082] A configuration module for setting adaptation node-related information and adaptation tasks through a yaml configuration file;

[0083] A scheduling module, as part of the adaptation framework, performs task scheduling according to the yaml configuration and executes the corresponding adaptation script on the specified server node;

[0084] A management module responsible for the full-process management of the adaptation task, including regularly detecting the status of server nodes, recording adaptation logs, and collecting adaptation results;

[0085] A display module for real-time display of adaptation task execution records;

[0086] A persistence module for persisting adaptation data after adaptation for subsequent analysis;

[0087] It further includes: a script development module for developing adaptation scripts based on the business scenarios to be adapted and automatically completing the function verification of server modules;

[0088] A script management module that supports distinguishing adaptation scripts by module and configuring the dependency relationships between modules to ensure that the adaptation tasks are executed in a predetermined order;

[0089] Among them, the scheduling module further dynamically schedules the adaptation script to the specified adaptation server for execution according to the configuration of the adaptation task;

[0090] A deployment module for manually deploying adaptation tools and adaptation script sets on the initial seed node: the master node;

[0091] The node registration module automatically completes the connection of other adapter nodes (slave nodes), the transmission of the adapter tool, and the node registration through binary tools.

[0092] The automated service module enables the adapter tool to recognize the configuration file, automatically schedules the adapter tasks to the specified execution nodes, and periodically detects the node status to obtain the execution results.

[0093] The timeout policy module sets the timeout for each adapter task to prevent subsequent tasks from being abnormally stuck due to task anomalies.

[0094] The dynamic task scheduling policy module preferentially schedules module tasks executed on different nodes and executes them in the order of entry or dependency of the module tasks.

[0095] The retry policy module supports automatic retry of a single module task within a specified number of times to reduce the risk of interruption of the adapter process caused by occasional anomalies.

[0096] The real-time feedback module is used to process and analyze the logs during the adapter process and visually display the status of each node and the task progress of the adapter module in the form of a web page.

[0097] The log preservation module uniformly collects the adapter script logs and adapter tool logs for each execution of the adapter task to ensure the traceability of the adapter results.

[0098] The result persistence module supports configuring a persistent database or storage address and stores the adapter results in the configured persistent library in the corresponding format for easy data storage and analysis.

[0099] Although the embodiments of the present invention have been shown and described, those of ordinary skill in the art can understand that various changes, modifications, substitutions, and variations can be made to these embodiments without departing from the principles and spirit of the present invention. The scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A method for automatic adaptation of a domestic information technology innovation server, characterized in that: The method includes the following steps: Set the relevant information of the adaptation node and the adaptation task through a yaml configuration file; The adaptation framework performs task scheduling according to the yaml configuration and executes the corresponding adaptation script on the specified server node; Perform full-process management of the adaptation task, including periodically detecting the status of the server node and recording the adaptation log; Collect the adaptation results and display the execution records of the adaptation task in real time; Persist the adaptation data after adaptation is completed for subsequent analysis.

2. The method for automatic adaptation of an information technology application innovation server according to claim 1, wherein: The method further includes: Provide an adaptation script, which is developed based on the business scenario to be adapted and is used to automatically complete the function verification of the server module; The adaptation scripts are distinguished by module and support configuring the dependency relationships between modules to ensure that the adaptation tasks are executed in a predetermined order; The adaptation framework can dynamically schedule the adaptation script to the specified adaptation server for execution based on the configuration of the adaptation task.

3. The method for automatic adaptation of an information technology application innovation server according to claim 2, wherein: The method further includes: Manually deploy the adaptation tool and the set of adaptation scripts on the initial seed node: the master node; Automatically complete the connection, transmission of the adaptation tool, and node registration of other adaptation nodes: slave nodes through binary tools; The adaptation tool recognizes the configuration file, automatically schedules the adaptation task to the specified execution node, and periodically detects the node status to obtain the execution result.

4. The method for automatic adaptation of an information technology application innovation server according to claim 3, wherein: The method further includes: Set a timeout policy, configure a timeout time for each adaptation task to avoid subsequent tasks being stuck due to task anomalies; Adopt a dynamic task scheduling policy, prioritize scheduling module tasks executed on different nodes, and execute them in the input order or dependency relationship of the module tasks; Provide a retry policy, support automatic retry of a single module task within a specified number of times to reduce the risk of interruption of the adaptation process caused by occasional exceptions.

5. The method for automatic adaptation of an information technology application innovation server according to claim 4, wherein: The method further includes: An adaptation result real-time feedback mechanism, which visualizes and displays the status of each node and the task progress of the adaptation module in a web page manner by processing and analyzing the logs during the adaptation process; An adaptation process log preservation mechanism, which uniformly collects the adaptation script logs and adaptation tool logs of each execution of the adaptation task to ensure the traceability of the adaptation results; An adaptation result persistent storage mechanism, which supports configuring a persistent database or storage address and stores the adaptation results in the configured persistent library in the corresponding format for easy data storage and analysis.

6. An adaptation system for the automated adaptation of an information technology application server according to the method described in claim 5, characterized in that: The system includes: A configuration module for setting the relevant information of the adaptation node and the adaptation task through a yaml configuration file; A scheduling module, as part of the adaptation framework, performs task scheduling according to the yaml configuration and executes the corresponding adaptation script on the specified server node; A management module responsible for the full-process management of the adaptation task, including periodically detecting the status of the server node, recording the adaptation log, and collecting the adaptation results; A display module for displaying the execution records of the adaptation task in real time; A persistence module for persisting the adaptation data after adaptation is completed for subsequent analysis.

7. An adaptation system according to claim 6, characterized in that: The system further includes: A script development module for developing adaptation scripts based on the business scenario to be adapted and automatically completing the function verification of the server module; The script management module supports differentiating adaptation scripts by module and configuring the dependency relationships between modules to ensure that adaptation tasks are executed in a predetermined order; Among them, the scheduling module further dynamically schedules adaptation scripts to a specified adaptation server for execution according to the configuration of the adaptation tasks.

8. An adaptation system according to claim 7, characterized in that: The system further includes: The deployment module is used to manually deploy adaptation tools and an adaptation script set on the initial seed node: the master node; The node registration module automatically completes the connection, transmission of adaptation tools, and node registration of other adaptation nodes: slave nodes through binary tools; The automated service module enables the adaptation tools to recognize configuration files, automatically schedules adaptation tasks to specified execution nodes, and periodically detects the node status to obtain execution results.

9. An adaptation system according to claim 8, characterized in that: The system further includes: The timeout policy module sets the timeout for each adaptation task to avoid subsequent tasks being blocked due to task anomalies; The dynamic task scheduling policy module preferentially schedules module tasks executed on different nodes and executes them in the entry order or dependency relationship of the module tasks; The retry policy module supports automatic retry of a single module task within a specified number of times to reduce the risk of interruption of the adaptation process caused by occasional anomalies.

10. An adaptation system according to claim 9, characterized in that: The system further includes: The real-time feedback module is used to process and analyze the logs during the adaptation process and visually display the status of each node and the task progress of the adaptation module in the form of a web page; The log preservation module uniformly collects the adaptation script logs and adaptation tool logs of each execution of the adaptation task to ensure the traceability of the adaptation results; The result persistence module supports configuring a persistent database or storage address and stores the adaptation results in the configured persistent library in the corresponding format for easy data storage and analysis.