Deployment method and device of operating system, equipment, medium and program product
By determining the operating system image and target configuration group according to the server type of the server to be deployed, the customized and automated installation of the operating system is realized, which solves the problem of low operating system deployment efficiency and accuracy in the existing technology and improves the deployment efficiency. and accuracy.
Patent Information
- Application Number
- CN202411333886.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2025-01-24
AI Technical Summary
In the prior art, the operating system deployment efficiency and deployment accuracy are low, mainly because there are a large number of configuration items during the system installation process, and there are differences in configuration items required by servers of different purposes.
In response to receiving the operating system deployment request, based on the server type of the server to be deployed, the operating system image corresponding to the server is determined, and installed in the server to be deployed based on the system configuration script. At the same time, the target configuration group for the server to be deployed is determined based on the server type, and the target configuration group is run in the initial operating system to achieve customized and automated installation of the operating system.
The customized and rapid installation of the operating system and configuration items are realized, which improves the efficiency and accuracy of the operation system deployment, and solves the problem of lower deployment efficiency and accuracy.
Smart Images

Figure CN119356696A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of artificial intelligence technology, and in particular to a method, device, equipment, medium and program product for deploying an operating system. Background Art
[0002] The operating system is the most basic system software, which is used to organize and schedule the work of the server and the allocation of server resources. Therefore, the operating system needs to be deployed for the server before the server works. Currently, the operating system is mostly deployed manually, that is, multiple interactive operations need to be performed on each server to complete the deployment of the operating system.
[0003] In the process of realizing the concept of the present invention, the inventors found that there are at least the following problems in the related technology: since there are a large number of configuration items in the system installation process, and the configuration items required by servers for different purposes are also different, therefore, manual deployment of the operating system may result in low deployment efficiency and deployment accuracy. Summary of the invention
[0004] In view of the above problems, the present disclosure provides a method, apparatus, device, medium and program product for deploying an operating system.
[0005] One aspect of the present disclosure provides a method for deploying an operating system, comprising: in response to receiving an operating system deployment request, determining an operating system image corresponding to the server to be deployed based on the server type of the server to be deployed carried in the operating system deployment request, wherein the operating system image is customized based on the operating requirements of the server to be deployed; installing the operating system image to the server to be deployed based on a system configuration script to obtain an initial operating system; determining a target configuration group for the server to be deployed based on the server type, wherein the target configuration group is obtained by combining target atomic configurations determined based on the server type from multiple initial atomic configurations, and the initial atomic configuration is a configuration script obtained according to configuration items configured in a historical deployment server; and running the target configuration group in the initial operating system based on a configuration running instruction to obtain a configured target operating system.
[0006] According to an embodiment of the present disclosure, multiple target atomic configurations include: fixed atomic configurations and variable atomic configurations; wherein the target atomic configuration is determined in the following manner: determining a target historical deployment server corresponding to the server type, wherein the original operating system has been deployed in the target historical server, and the original operating system includes the target operating system and configuration items other than the target operating system; using the target historical deployment server to simulate processing of multiple business requests to obtain processing records; based on the processing records, determining variable configuration items related to the process of the historical deployment server processing multiple business requests; based on the fixed configuration item list, determining the fixed configuration items included in the original operating system; and obtaining the target atomic configuration based on the initial atomic configuration corresponding to the variable configuration item and the initial atomic configuration corresponding to the fixed configuration item.
[0007] According to an embodiment of the present disclosure, variable configuration items include: application software configuration items and system service configuration items; determining the variable configuration items used in the process of a historical deployment server processing multiple business requests based on processing records includes: extracting keywords from the processing records to determine the application software information and system service information used in the process of processing multiple business requests; determining the application software configuration items based on the application software information; and determining the system service configuration items based on the system service information.
[0008] According to an embodiment of the present disclosure, the target atomic configuration is determined in the following manner: based on the configuration item logs and configuration files of each of the multiple historical deployment servers, the configuration items of each of the multiple historical deployment servers are determined, wherein the server types of the multiple historical deployment servers are different, and the historical deployment servers are servers on which the original operating system has been deployed; based on the configuration item identifiers and the occurrence frequencies of configuration item parameters included in the configuration items of each of the multiple historical deployment servers, the configuration items of each of the multiple historical deployment servers are screened to obtain multiple configuration items to be processed, wherein the configuration item identifiers of the multiple configuration items to be processed are different; based on the configuration item identifiers of the multiple configuration items to be processed, the multiple configuration item key-value pairs are input into the corresponding script generation template to obtain multiple initial atomic configurations.
[0009] According to an embodiment of the present disclosure, the original operating system also includes a target operating system and system components other than the target operating system; the system components include: firmware, kernel modules and drivers; wherein, after simulating the processing of multiple business requests using a target historical deployment server and obtaining processing records, the following steps are performed: based on the kernel module log of the target historical deployment server, determining the target kernel module used in the process of processing multiple business requests; based on the hardware log of the historical deployment server, determining the target hardware used in the process of processing multiple business requests; based on the target hardware, determining the target driver for connecting to the target hardware and the target firmware for controlling the target hardware; based on the server type, determining the file system type; based on the target firmware, the target kernel module, the target driver and the file system corresponding to the file system type, determining the operating system image corresponding to the server type.
[0010] According to an embodiment of the present disclosure, based on the configuration running instruction, the target configuration group is run in the initial operating system, and before the configured target operating system is obtained, it also includes: in response to having received a system configuration requirement table, matching the configuration item identifier to be updated included in the system configuration requirement table with the configuration item identifier corresponding to the target atomic configuration in the target configuration group to obtain the atomic configuration to be updated, wherein the configuration requirement table to be updated also includes the parameters to be updated corresponding to the configuration item identifier to be updated; passing the parameters to be updated into the atomic configuration to be updated whose configuration item identifier is the configuration item identifier to be updated, to obtain the updated target configuration group.
[0011] According to an embodiment of the present disclosure, the above method also includes: running a configuration information collection script to collect configuration item information of the target operating system to obtain multiple target configuration items; comparing the configuration item identifiers of each of the multiple target configuration items with the configuration requirement table including the configuration item identifier to be updated to obtain a first comparison result; comparing the configuration item parameters of the target configuration item whose configuration item identifier is the configuration item identifier to be updated with the parameters to be updated to obtain a second comparison result; and visually displaying the first comparison result and the second comparison result.
[0012] Another aspect of the present disclosure provides an operating system deployment device, including: a first determination module, for determining, in response to receiving an operating system deployment request, an operating system image corresponding to the server to be deployed based on the server type of the server to be deployed carried in the operating system deployment request, wherein the operating system image is customized based on the operating requirements of the server to be deployed; an installation module, for installing the operating system image into the server to be deployed based on a system configuration script to obtain an initial operating system; a second determination module, for determining a target configuration group for the server to be deployed based on the server type, wherein the target configuration group is obtained by combining target atomic configurations determined based on the server type from multiple initial atomic configurations, and the initial atomic configuration is a configuration script obtained according to configuration items configured in a historical deployment server; a configuration module, for running the target configuration group in the initial operating system based on a configuration run instruction to obtain a configured target operating system.
[0013] Another aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more computer programs, wherein the one or more processors execute the one or more computer programs to implement the steps of the above method.
[0014] Another aspect of the present disclosure further provides a computer-readable storage medium having a computer program or instruction stored thereon, which implements the steps of the above method when the computer program or instruction is executed by a processor.
[0015] Another aspect of the present disclosure further provides a computer program product, including a computer program or instructions, which implement the steps of the above method when executed by a processor.
[0016] The operating system deployment method disclosed in the present invention determines the operating system image that can meet the running requirements of the server to be deployed through the server type of the server to be deployed carried in the operating system deployment request, and determines the target configuration group required by the server type based on the server type, so as to achieve the customization and automatic installation of the operating system for the server to be deployed by installing the system image and running the target configuration group. Since the operating system that can meet the running requirements of the server to be deployed is customized in advance, and the configuration items are converted into the initial atomic configuration, i.e., the configuration script, in advance, and freely combined into the target configuration group corresponding to each server type, when the server to be deployed is deployed, by selecting and installing the operating system image corresponding to the server type, and selecting and running the target configuration group corresponding to the server type, customized and fast installation from the two levels of the operating system and the configuration items can be achieved, thereby at least partially solving the technical problems of low operating system deployment efficiency and deployment accuracy existing in the related technology, and achieving the technical effects of improving the operating system deployment efficiency, the operating system accuracy, etc. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0018] Figure 1 The application scenario diagram of the method, apparatus, device, medium and program product for deploying an operating system according to an embodiment of the present disclosure is schematically shown;
[0019] Figure 2 A flowchart schematically shows a method for deploying an operating system according to an embodiment of the present disclosure;
[0020] Figure 3 Schematically shows a flow chart of determining a target atomic configuration according to an embodiment of the present disclosure;
[0021] Figure 4 A flowchart of a method for deploying an operating system according to another embodiment of the present disclosure is schematically shown;
[0022] Figure 5 A structural block diagram schematically shows an operating system deployment device according to an embodiment of the present disclosure; and
[0023] Figure 6 A block diagram of an electronic device suitable for implementing a method for deploying an operating system according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0024] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0025] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0026] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0027] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0028] It should be noted that the operating system deployment method and device disclosed in the present invention can be used in the field of artificial intelligence technology, and can also be used in any field other than the field of artificial intelligence technology, such as the field of financial technology, the field of computer technology, etc. The present disclosure does not limit the application field of the operating system deployment method and device.
[0029] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0030] In the technical solution of the present disclosure, the user information (including but not limited to user personal information, user image information, user device information, such as location information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0031] During the research, it was found that manual installation and configuration of the operating system involve a lot of interactive configurations, which takes a lot of time. At the same time, there are too many configuration items, and manual configuration cannot ensure the accuracy of each configuration, which is not conducive to later operation and maintenance. Moreover, the configuration items are solidified and cannot be freely combined, and cannot be applied to different needs.
[0032] An embodiment of the present disclosure provides a method for deploying an operating system. In response to receiving an operating system deployment request, an operating system image corresponding to the server to be deployed is determined based on the server type of the server to be deployed carried in the operating system deployment request, wherein the operating system image is customized based on the operating requirements of the server to be deployed; based on a system configuration script, the operating system image is installed in the server to be deployed to obtain an initial operating system; based on the server type, a target configuration group for the server to be deployed is determined, wherein the target configuration group is obtained by combining target atomic configurations determined based on the server type from multiple initial atomic configurations, and the initial atomic configuration is a configuration script obtained according to configuration items configured in a historical deployment server; based on a configuration running instruction, the target configuration group is run in the initial operating system to obtain a configured target operating system.
[0033] Figure 1 The application scenario diagram of the method, apparatus, device, medium and program product for deploying an operating system according to an embodiment of the present disclosure is schematically shown.
[0034] like Figure 1 As shown, the application scenario 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.
[0035] The user can use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).
[0036] The first terminal device 101, the second terminal device 102, and the third terminal device 103 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0037] The server 105 may be a server that provides various services, such as a background management server (only as an example) that provides support for websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.
[0038] It should be noted that the operating system deployment method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the operating system deployment device provided in the embodiment of the present disclosure can generally be set in the server 105. The operating system deployment method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105. Correspondingly, the operating system deployment device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105.
[0039] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0040] The following will be based on Figure 1 The scene described by Figure 2~Figure 4 The deployment method of the operating system of the disclosed embodiment is described in detail.
[0041] Figure 2 The flowchart of the method for deploying an operating system according to an embodiment of the present disclosure is schematically shown.
[0042] like Figure 2 As shown, the method includes operations S210 to S240.
[0043] In operation S210, in response to receiving an operating system deployment request, an operating system image corresponding to the server to be deployed is determined based on the server type of the server to be deployed carried in the operating system deployment request, wherein the operating system image is customized based on the operating requirements of the server to be deployed.
[0044] In operation S220, based on the system configuration script, the operating system image is installed in the server to be deployed to obtain an initial operating system.
[0045] In operation S230, a target configuration group for the server to be deployed is determined based on the server type, wherein the target configuration group is obtained by combining target atomic configurations determined based on the server type from multiple initial atomic configurations, and the initial atomic configuration is a configuration script obtained based on configuration items configured in the historical deployment server.
[0046] In operation S240, based on the configuration execution instruction, the target configuration group is executed in the initial operating system to obtain a configured target operating system.
[0047] According to the embodiments of the present disclosure, there is no limitation on the sender of the operating system deployment request, which may be a server to be deployed or a central server for managing servers.
[0048] According to the embodiments of the present disclosure, there is no limitation on the server for executing the operating system deployment method, and it can be executed by a server for managing system updates or by a server to be deployed, such as: a central server sends an operating system deployment request, and a module for system updates of the server to be deployed receives the operating system deployment request and executes the operating system deployment method.
[0049] According to an embodiment of the present disclosure, the operating system deployment request includes the server type and the server address of the server to be deployed, so as to deploy the operating system image and the target configuration group to the server to be deployed based on the server address.
[0050] According to an embodiment of the present disclosure, the server type may be determined according to the purpose of the server to be deployed, for example: if the server to be deployed is a database server, then its server type is a database type; or if the deployment server is a middleware server, then its server type is a middleware type.
[0051] According to an embodiment of the present disclosure, the operating system image includes basic configurations such as system components and file servers required for the server to be deployed to perform business processing.
[0052] According to an embodiment of the present disclosure, the system configuration script is an automated configuration script customized based on the operating system image, and the system configuration script is used to automatically install the operating system image into the server to be deployed without manual intervention.
[0053] According to an embodiment of the present disclosure, the operating system image, the target configuration group, and the atomic configuration group may be stored in a database or a memory, and may be called from the database or the memory when used.
[0054] According to an embodiment of the present disclosure, the configuration execution instruction may be an instruction corresponding to the target configuration group and used to execute the target configuration group.
[0055] The operating system deployment method disclosed in the present invention determines the operating system image that can meet the running requirements of the server to be deployed through the server type of the server to be deployed carried in the operating system deployment request, and determines the target configuration group required by the server type based on the server type, so as to achieve the customization and automatic installation of the operating system for the server to be deployed by installing the system image and running the target configuration group. Since the operating system that can meet the running requirements of the server to be deployed is customized in advance, and the configuration items are converted into the initial atomic configuration, i.e., the configuration script, in advance, and freely combined into the target configuration group corresponding to each server type, when the server to be deployed is deployed, by selecting and installing the operating system image corresponding to the server type, and selecting and running the target configuration group corresponding to the server type, customized and fast installation from the two levels of the operating system and the configuration items can be achieved, thereby at least partially solving the technical problems of low operating system deployment efficiency and deployment accuracy existing in the related technology, and achieving the technical effects of improving the operating system deployment efficiency, the operating system accuracy, etc.
[0056] Figure 3 The flowchart of determining the target atomic configuration according to an embodiment of the present disclosure is schematically shown.
[0057] like Figure 3 As shown, determining the target atomic configuration includes operations S310 to S350.
[0058] In operation S310, a target historical deployment server corresponding to the server type is determined, wherein an original operating system has been deployed in the target historical server, and the original operating system includes a target operating system and configuration items other than the target operating system.
[0059] In operation S320, the target historical deployment server is used to simulate processing of various business requests to obtain processing records.
[0060] In operation S330 , variable configuration items related to a process in which a historical deployment server processes multiple business requests are determined based on the processing record.
[0061] In operation S340, fixed configuration items included in the original operating system are determined based on the fixed configuration item list.
[0062] In operation S350 , a target atomic configuration is obtained based on the initial atomic configuration corresponding to the variable configuration item and the initial atomic configuration corresponding to the fixed configuration item.
[0063] According to an embodiment of the present disclosure, the original operating system may be a system including all configuration items and system components, which can meet the operation requirements of servers of multiple server types. The target operating system may be a system obtained by streamlining the configuration items and system components of the original operating system.
[0064] According to the embodiments of the present disclosure, there is no limitation on the operating system type of the original operating system, and it can be any operating system.
[0065] According to the embodiments of the present disclosure, variable configuration items may be configuration items customized based on the operating requirements of the server, and fixed configuration items may be configuration items determined to ensure the normal operation of the server. Different server types may correspond to different variable configuration items and fixed configuration items. For example, variable configuration items may include application software configuration items, system service configuration items, operating system user configuration items, password complexity configuration items, etc., and fixed configuration items may include system parameter configuration items, system log configuration items, routing, firewall configuration items, etc.
[0066] According to an embodiment of the present disclosure, the fixed configuration item list includes fixed configuration items corresponding to the server type of the server to be deployed, and the fixed configuration item list is a list suitable for the server type determined based on multiple experiments.
[0067] According to an embodiment of the present disclosure, the service request may be a service request that may be processed by a server of the server type based on a simulation of the server type.
[0068] According to an embodiment of the present disclosure, in the case where there is a target historical deployment server corresponding to the server type, the target configuration group corresponding to the server type can be determined based on the target historical deployment server. In the case where there is no target historical deployment server corresponding to the server type, the original operating system can be deployed to the server to be deployed, and the target atomic configuration is determined for the server to be deployed based on the step of determining the target atomic configuration.
[0069] According to an embodiment of the present disclosure, a configuration item includes a configuration item identifier and a configuration item parameter, and an initial atomic configuration corresponding to the configuration item identifier is determined from multiple initial atomic configurations through the configuration item identifier of the variable configuration item and the configuration item identifier of the fixed configuration item.
[0070] According to an embodiment of the present disclosure, by simulating multiple business requests that the historical deployment server may receive, and based on the processing results of the business requests, the variable configuration items involved in the business processing of the historical deployment server are determined, and the fixed configuration items required by the server of this server type are determined based on the fixed configuration item list, and other variable configuration items and other fixed configuration items are screened out from the original operating system, so as to obtain a target atomic configuration group by combining the initial atomic configuration based on the obtained variable configuration items and the initial atomic configuration based on the obtained fixed configuration items, thereby achieving the screening of useless configuration items, obtaining a targeted configuration group, accelerating the system deployment rate and realizing personalized configuration.
[0071] According to an embodiment of the present disclosure, variable configuration items include: application software configuration items and system service configuration items; determining the variable configuration items used in the process of a historical deployment server processing multiple business requests based on processing records may include the following operations.
[0072] Keywords are extracted from the processing records to determine the application software information and system service information used in the process of processing multiple business requests; based on the application software information, application software configuration items are determined; based on the system service information, system service configuration items are determined.
[0073] According to an embodiment of the present disclosure, the application software information includes an identifier of a target application software involved in a business processing process, and the system service information includes an identifier of a target system service involved in a business processing process.
[0074] According to the embodiments of the present disclosure, the processing records can be segmented and keyword extraction can be performed after the word segmentation. The specific means of word segmentation are not limited, and it can be word segmentation based on an n-gram model, word segmentation based on a neural network, etc. The specific means of keyword extraction are not limited, and it can be keyword extraction based on identifier matching, keyword extraction based on a support vector machine, Word2Vec, etc.
[0075] According to an embodiment of the present disclosure, by performing word segmentation and keyword extraction on processing records, the target application software and target system services involved in the business processing process are determined, thereby achieving rapid and accurate determination of application software configuration items and system service configuration items.
[0076] According to an embodiment of the present disclosure, the target atomic configuration is determined in the following manner.
[0077] Based on the configuration item logs and configuration files of the multiple historical deployment servers, the configuration items of the multiple historical deployment servers are determined, wherein the server types of the multiple historical deployment servers are different, and the historical deployment servers are servers on which the original operating system has been deployed; based on the configuration item identifiers and the occurrence frequencies of configuration item parameters included in the configuration items of the multiple historical deployment servers, the configuration items of the multiple historical deployment servers are screened to obtain multiple configuration items to be processed, wherein the configuration item identifiers of the multiple configuration items to be processed are different; based on the configuration item identifiers of the multiple configuration items to be processed, the multiple configuration item key-value pairs are input into the corresponding script generation template to obtain multiple initial atomic configurations.
[0078] According to an embodiment of the present disclosure, the configuration item log and the configuration file may be obtained from respective preset storage directories. For example, the configuration item log may be a system log including system configuration item information and system event information, and the configuration file may be a configuration file related to each configuration item.
[0079] According to an embodiment of the present disclosure, determining the configuration items included in each historical deployment server by starting from two files containing configuration item information, namely, a system log and a configuration file, can make the determined configuration items more comprehensive and avoid missing configuration items.
[0080] According to an embodiment of the present disclosure, multiple configuration items can be deduplicated based on the configuration item identifiers and the occurrence frequencies of configuration item parameters included in the configuration items of each of the multiple historical deployment servers. Specifically, the configuration items can be grouped based on the configuration item identifier of each configuration item, that is, the configuration items with the same configuration item identifier are grouped together. For each configuration group, the configuration items can be sorted according to the occurrence frequencies of the configuration item parameters of each configuration item, and the configuration item whose sorting indicates the highest occurrence frequency of the configuration item parameter is retained, and other configuration items in the group are removed.
[0081] According to an embodiment of the present disclosure, each configuration item identifier may correspond to a script generation template. The development language of the script generation template is not limited. For example, the script generation template may be a shell script template, a u-boot script template, a Cron script template, etc.
[0082] According to an embodiment of the present disclosure, a shell script template includes an executable file composed of shell commands, in which some shell syntax and instructions are written to perform the processing logic of configuration items. The script generation template may include blank fields for embedding configuration item identifiers and configuration item parameters. By embedding the configuration item identifiers and configuration item parameters into their respective corresponding blank fields, the initial atomic configuration corresponding to the configuration item is obtained. The same is true for other script templates.
[0083] According to the embodiments of the present disclosure, the shell script template has the advantages of being easy to write and debug, cross-platform compatibility, and rapid prototyping development.
[0084] According to the embodiments of the present disclosure, in some embodiments, a configuration item identifier and a configuration item parameter correspondence table corresponding to each server type can be constructed, so that after obtaining multiple initial atomic configurations determined in the above manner, the configuration item parameters in the multiple initial atomic configurations are replaced according to the configuration item identifier and the configuration item parameter correspondence table, thereby constructing a set of initial atomic configurations for each server type, and the configuration item identifier and the configuration item parameter correspondence table includes, for each server type, the configuration item parameters to which the configuration item identifier should correspond.
[0085] According to an embodiment of the present disclosure, by deduplicating configuration item data through the configuration item identifiers and the occurrence frequencies of configuration item parameters included in the configuration items of each of multiple historical deployment servers, it is possible to avoid the existence of duplicate configuration items to be processed, which would lead to the subsequent generation of duplicate initial atomic configurations. By using the occurrence frequency of configuration item parameters as a reference factor for deduplication, configuration items with a large number of occurrences of configuration item parameters can be retained, thereby reducing the probability of changing the initial configuration item parameters in the subsequently generated initial atomic configuration, and reducing resource waste in subsequent processing.
[0086] According to an embodiment of the present disclosure, the original operating system also includes a target operating system and system components other than the target operating system; the system components include: firmware, kernel modules and drivers; wherein, after simulating the processing of multiple business requests using the target historical deployment server and obtaining the processing records, the following operations may be included.
[0087] Based on the kernel module log of the target historical deployment server, determine the target kernel module used in the process of processing multiple business requests; based on the hardware log of the historical deployment server, determine the target hardware used in the process of processing multiple business requests; based on the target hardware, determine the target driver for connecting to the target hardware and the target firmware for controlling the target hardware; based on the target firmware, the target kernel module, the target driver and the file system corresponding to the file system type, determine the operating system image corresponding to the server type.
[0088] According to an embodiment of the present disclosure, the kernel module log may be a system log obtained in a preset storage directory and including kernel module loading information.
[0089] According to an embodiment of the present disclosure, in some embodiments, the target kernel module used in the process of processing multiple business requests can also be jointly determined based on the target instructions and / or system logs to improve the accuracy of the determination result.
[0090] According to an embodiment of the present disclosure, the hardware log may be a log recording the status and activities of hardware components, and may be obtained through commands for obtaining hardware detection information, a preset hardware log directory, or a hardware status monitoring tool.
[0091] According to an embodiment of the present disclosure, the time period of the server in processing multiple business requests can be deployed based on the target history, and the kernel module log and hardware log corresponding to the time period can be determined, and the kernel module log can be segmented and keyword extracted to determine the target kernel module used in the time period.
[0092] According to an embodiment of the present disclosure, since both the driver and the firmware are related to the hardware device, the target firmware and the target driver related to the target hardware can be determined, thereby filtering out the drivers and firmware related to the hardware devices that are not needed for the server of this server type when performing business processing, thereby achieving streamlining of the original operating system.
[0093] According to an embodiment of the present disclosure, different server types may correspond to different file system types. For example, when the server type is a database type, a file system type corresponding to the database type with high reliability and advanced storage management functions is selected.
[0094] According to an embodiment of the present disclosure, by determining the kernel modules, firmware, and drivers required by the target historical deployment server when performing business processing, and determining a suitable file system based on the type of the target server, an operating system image corresponding to the server type can be obtained. This allows customization of the operating system for the server type, and because the original operating system has been streamlined, the installation speed of the operating system can be accelerated.
[0095] According to an embodiment of the present disclosure, based on the configuration running instruction, before running the target configuration group in the initial operating system to obtain the configured target operating system, the following operations are also included.
[0096] In response to having received the system configuration requirement table, the configuration item identifier to be updated included in the system configuration requirement table is matched with the configuration item identifier corresponding to the target atomic configuration in the target configuration group to obtain the target atomic configuration to be updated, wherein the configuration requirement table to be updated also includes parameters to be updated corresponding to the configuration item identifier to be updated; the parameters to be updated are passed into the target atomic configuration to be updated whose configuration item identifier is the configuration item identifier to be updated, to obtain an updated target configuration group.
[0097] According to an embodiment of the present disclosure, the system configuration requirement table may be filled in and sent by a target object, and the target object may be a manager of the server to be deployed.
[0098] According to an embodiment of the present disclosure, a system configuration requirement table can be used to determine new configuration items or configuration items to be updated of a server to be deployed. The system configuration requirement table includes an identifier of the configuration item to be updated or to be added and parameters to be updated corresponding to the identifier of the configuration item to be updated or to be added. The new configuration items or the configuration items to be updated can be one or more.
[0099] According to an embodiment of the present disclosure, the system requirement configuration table also includes configuration item combinations and single configuration items. The configuration item combination can be a combination obtained by combining single configuration items according to configuration item categories. The target atomic configurations in the target configuration group can be arranged according to the configuration item combinations in the system requirement configuration table, thereby facilitating finding each target atomic configuration based on the configuration item combination.
[0100] According to an embodiment of the present disclosure, the configuration item categories may include: system users, system parameters, software packages, system services, security reinforcement, etc.
[0101] According to an embodiment of the present disclosure, the process of passing the parameter to be updated into the atomic configuration to be updated may be a process of replacing the parameter to be updated with the configuration item parameter in the atomic configuration to be updated. It should be noted that if the configuration item parameter is the same as the parameter to be updated, no replacement is required.
[0102] According to an embodiment of the present disclosure, by matching the configuration item identifier to be updated with the configuration item identifier corresponding to the target atomic configuration, it can be determined whether the configuration item identifier to be updated is the identifier corresponding to the target atomic configuration. When it is determined that the configuration identifier to be updated is the configuration item identifier, it can be determined that there is an atomic configuration to be updated in the target atomic configuration, and the parameters to be updated can be passed as parameters or variables into the corresponding atomic configuration to be updated, thereby realizing the update of the target configuration group.
[0103] According to an embodiment of the present disclosure, when it is determined that there are other configuration item identifiers that are not the configuration item identifier among the configuration item identifiers to be updated, it can be determined that there are new configuration items and that a new target atomic configuration needs to be added to the target configuration group; a new atomic configuration corresponding to other configuration item identifiers can be determined from multiple initial atomic configurations, and the parameters to be updated corresponding to the other configuration item identifiers in the system configuration requirement table can be passed into the new configuration item, and the new configuration item can be added to the target configuration group.
[0104] According to the embodiments of the present disclosure, the system configuration requirement table can be received in real time, and the target atomic configurations in the target configuration group can be updated and added in real time according to the user requirements in the configuration requirement table, so as to meet the user requirements as much as possible and realize the customized requirements for different users.
[0105] According to an embodiment of the present disclosure, the operating system deployment method may further include the following operations.
[0106] Run the configuration information collection script to collect configuration item information of the target operating system to obtain multiple target configuration items; compare the configuration item identifiers of the multiple target configuration items with the configuration requirement table including the configuration item identifier to be updated to obtain a first comparison result; compare the configuration item parameters of the target configuration item whose configuration item identifier is the configuration item identifier to be updated with the parameters to be updated to obtain a second comparison result; and visualize the first comparison result and the second comparison result.
[0107] According to an embodiment of the present disclosure, the configuration information collection script may be a script for collecting configuration item information in a target operating system.
[0108] According to an embodiment of the present disclosure, the configuration item identifiers of multiple target configuration items may be compared with the configuration item identifiers to be updated, thereby determining whether there are any missing configuration items in the target operating system.
[0109] According to an embodiment of the present disclosure, configuration item parameters of multiple target configuration items may be compared with identifications of configuration items to be updated, thereby determining whether there are configuration items in the target operating system whose parameters to be updated are not correctly changed.
[0110] According to an embodiment of the present disclosure, the first comparison result and the second comparison result can be visualized in a variety of ways, so that it can be intuitively and quickly determined whether the configuration of the server to be deployed meets the user's needs.
[0111] Figure 4 A flowchart of a method for deploying an operating system according to another embodiment of the present disclosure is schematically shown.
[0112] like Figure 4 As shown, the method includes operations S401 to S411.
[0113] In operation S401, based on the server type of the server to be deployed, an operating system image corresponding to the server to be deployed is determined.
[0114] In operation S402, based on the system configuration script, the operating system image is installed in the server to be deployed to obtain an initial operating system.
[0115] In operation S403 , a target configuration group for the server to be deployed is determined based on the server type.
[0116] In operation S404, it is determined whether a system configuration requirement table is received. In the case where the system configuration requirement table is received, operation S405 is performed. In the case where the system configuration requirement table is not received, operation S407 is performed.
[0117] In operation S405, the configuration item identifier to be updated included in the system configuration requirement table is matched with the configuration item identifier corresponding to the target atomic configuration in the target configuration group to obtain the atomic configuration to be updated, wherein the configuration requirement table to be updated also includes parameters to be updated corresponding to the configuration item identifier to be updated.
[0118] In operation S406, the parameter to be updated is passed into the atomic configuration to be updated whose configuration item identifier is the configuration item identifier to be updated, to obtain an updated target configuration group.
[0119] In operation S407, based on the configuration running instruction, the target configuration group is run in the initial operating system to obtain a configured target operating system.
[0120] In operation S408, a configuration information collection script is run to collect configuration item information of the target operating system to obtain a plurality of target configuration items.
[0121] In operation S409, the configuration item identifiers of the multiple target configuration items are compared with the configuration item identifiers to be updated included in the configuration requirement table to obtain a first comparison result.
[0122] In operation S410, the configuration item parameters of the target configuration item whose configuration item identifier is the configuration item identifier to be updated are compared with the parameters to be updated to obtain a second comparison result.
[0123] In operation S411, the first comparison result and the second comparison result are visually displayed.
[0124] Based on the above operating system deployment method, the present disclosure also provides an operating system deployment device. Figure 5 The device is described in detail.
[0125] Figure 5 The structural block diagram of the deployment device of the operating system according to the embodiment of the present disclosure is schematically shown.
[0126] like Figure 5 As shown, the operating system deployment device 500 of this embodiment includes a first determination module 510 , an installation module 520 , a second determination module 530 and a configuration module 540 .
[0127] The first determination module 510 is used to determine the operating system image corresponding to the server to be deployed in response to receiving the operating system deployment request and based on the server type of the server to be deployed carried in the operating system deployment request, wherein the operating system image is customized based on the operating requirements of the server to be deployed.
[0128] The installation module 520 is used to install the operating system image into the server to be deployed based on the system configuration script to obtain the initial operating system.
[0129] The second determination module 530 is used to determine the target configuration group for the server to be deployed based on the server type, wherein the target configuration group is obtained by combining the target atomic configurations determined based on the server type from multiple initial atomic configurations, and the initial atomic configuration is a configuration script obtained based on the configuration items configured in the historical deployment server.
[0130] The configuration module 540 is used to run the target configuration group in the initial operating system based on the configuration running instruction to obtain the configured target operating system.
[0131] According to an embodiment of the present disclosure, the multiple target atomic configurations include: fixed atomic configurations and variable atomic configurations. The operating system deployment device 500 also includes: a server determination module, a simulation module, a first configuration item determination module, a second configuration item determination module and a configuration determination module.
[0132] The server determination module is used to determine a target historical deployment server corresponding to the server type, wherein the target historical server has deployed an original operating system, and the original operating system includes a target operating system and configuration items other than the target operating system.
[0133] The simulation module is used to simulate the processing of various business requests using the target historical deployment server to obtain processing records.
[0134] The first configuration item determination module is used to determine, based on the processing record, variable configuration items related to the process in which the historical deployment server processes multiple business requests.
[0135] The second configuration item determination module is used to determine the fixed configuration items included in the original operating system based on the fixed configuration item list.
[0136] The configuration determination module is used to obtain a target atomic configuration based on an initial atomic configuration corresponding to a variable configuration item and an initial atomic configuration corresponding to a fixed configuration item.
[0137] According to an embodiment of the present disclosure, the variable configuration items include: application software configuration items and system service configuration items. The first configuration item determination module includes: an extraction submodule, an application software determination submodule, and a system service determination submodule.
[0138] The extraction submodule is used to extract keywords from the processing records and determine the application software information and system service information used in the process of processing multiple business requests.
[0139] The application software determination submodule is used to determine application software configuration items based on application software information.
[0140] The system service determination submodule is used to determine system service configuration items based on system service information.
[0141] According to an embodiment of the present disclosure, the operating system deployment device 500 further includes: a historical configuration item determination module, a screening module, and an input module.
[0142] The historical configuration item determination module is used to determine the configuration items of multiple historical deployment servers based on their respective configuration item logs and configuration files, wherein the multiple historical deployment servers are of different server types and the historical deployment servers are servers on which the original operating system has been deployed.
[0143] The screening module is used to screen out the configuration items of the multiple historical deployment servers based on the configuration item identifiers and the occurrence frequencies of the configuration item parameters included in the configuration items of the multiple historical deployment servers, so as to obtain multiple configuration items to be processed, wherein the configuration item identifiers of the multiple configuration items to be processed are different.
[0144] The input module is used to input multiple configuration item key-value pairs into the corresponding script generation template based on the configuration item identifiers of the multiple configuration items to be processed, so as to obtain multiple initial atomic configurations.
[0145] According to an embodiment of the present disclosure, the original operating system also includes a target operating system and system components other than the target operating system. The system components include: firmware, kernel modules and drivers. The operating system deployment device 500 also includes: a kernel determination module, a hardware determination module, a firmware determination module, a type determination module and an image determination module.
[0146] The kernel determination module is used to determine the target kernel module used in the process of processing multiple business requests based on the kernel module log of the target historical deployment server.
[0147] The hardware determination module is used to determine the target hardware used in the process of processing multiple business requests based on the hardware logs of the historical deployment server.
[0148] The firmware determination module is used to determine a target driver for connecting to the target hardware and a target firmware for controlling the target hardware based on the target hardware.
[0149] The type determination module is used to determine the file system type based on the server type.
[0150] The image determination module is used to determine the operating system image corresponding to the server type based on the target firmware, the target kernel module, the target driver and the file system corresponding to the file system type.
[0151] According to an embodiment of the present disclosure, the operating system deployment device 500 further includes: a configuration item to be updated determining module and an updating module.
[0152] The module for determining configuration items to be updated is used to, in response to having received a system configuration requirement table, match the configuration item identifiers to be updated included in the system configuration requirement table with the configuration item identifiers corresponding to the target atomic configuration in the target configuration group to obtain the atomic configuration to be updated, wherein the configuration requirement table to be updated also includes parameters to be updated corresponding to the configuration item identifiers to be updated.
[0153] The update module is used to pass the parameters to be updated into the atomic configuration to be updated whose configuration item identifier is the configuration item identifier to be updated, so as to obtain the updated target configuration group.
[0154] According to an embodiment of the present disclosure, the operating system deployment device 500 further includes: an information collection module, a first comparison module, a second comparison module, and a display module.
[0155] The information collection module is used to run the configuration information collection script to collect the configuration item information of the target operating system to obtain multiple target configuration items.
[0156] The first comparison module is used to compare the configuration item identifiers of the multiple target configuration items with the configuration requirement table including the configuration item identifiers to be updated to obtain a first comparison result.
[0157] The second comparison module is used to compare the configuration item parameters of the target configuration item whose configuration item identifier is the configuration item identifier to be updated with the parameters to be updated to obtain a second comparison result.
[0158] The display module is used to visually display the first comparison result and the second comparison result.
[0159] According to an embodiment of the present disclosure, any multiple modules of the first determination module 510, the installation module 520, the second determination module 530, and the configuration module 540 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the first determination module 510, the installation module 520, the second determination module 530, and the configuration module 540 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, at least one of the first determination module 510 , the installation module 520 , the second determination module 530 , and the configuration module 540 may be at least partially implemented as a computer program module, and when the computer program module is executed, a corresponding function may be performed.
[0160] Figure 6 A block diagram of an electronic device suitable for implementing a method for deploying an operating system according to an embodiment of the present disclosure is schematically shown.
[0161] like Figure 6 As shown, the electronic device 600 according to an embodiment of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 to a random access memory (RAM) 603. The processor 601 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a dedicated microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 601 may also include an onboard memory for caching purposes. The processor 601 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0162] In RAM 603, various programs and data required for the operation of electronic device 600 are stored. Processor 601, ROM 602 and RAM 603 are connected to each other via bus 604. Processor 601 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 602 and / or RAM 603. It should be noted that the program can also be stored in one or more memories other than ROM 602 and RAM 603. Processor 601 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.
[0163] According to an embodiment of the present disclosure, the electronic device 600 may further include an input / output (I / O) interface 605, which is also connected to the bus 604. The electronic device 600 may further include one or more of the following components connected to the input / output (I / O) interface 605: an input portion 606 including a keyboard, a mouse, etc.; an output portion 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 608 including a hard disk, etc.; and a communication portion 609 including a network interface card such as a LAN card, a modem, etc. The communication portion 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the input / output (I / O) interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage portion 608 as needed.
[0164] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0165] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 602 and / or RAM 603 described above and / or one or more memories other than ROM 602 and RAM 603.
[0166] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the operating system deployment method provided by the embodiment of the present disclosure.
[0167] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 601. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0168] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 609, and / or installed from a removable medium 611. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0169] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the processor 601, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, apparatus, module, unit, etc. described above can be implemented by a computer program module.
[0170] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0171] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0172] It will be appreciated by those skilled in the art that the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations or combinations are not explicitly described in the present disclosure. In particular, without departing from the spirit and teachings of the present disclosure, the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0173] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A method for deploying an operating system, characterized in that: The method comprises: In response to receiving an operating system deployment request, determining an operating system image corresponding to the server to be deployed based on a server type of the server to be deployed carried in the operating system deployment request, wherein the operating system image is customized based on an operating requirement of the server to be deployed; Based on the system configuration script, the operating system image is installed into the server to be deployed to obtain an initial operating system; Determine a target configuration group for the server to be deployed based on the server type, wherein the target configuration group is obtained by combining target atomic configurations determined from multiple initial atomic configurations based on the server type, and the initial atomic configuration is a configuration script obtained according to configuration items configured in a historical deployment server; Based on the configuration running instruction, the target configuration group is run in the initial operating system to obtain a configured target operating system.
2. The method according to claim 1, characterized in that The plurality of target atomic configurations include: a fixed atomic configuration and a variable atomic configuration; wherein the target atomic configuration is determined by: Determine a target historical deployment server corresponding to the server type, wherein an original operating system has been deployed in the target historical server, and the original operating system includes the target operating system and configuration items other than the target operating system; Using the target historical deployment server to simulate processing of multiple business requests to obtain processing records; Determining, based on the processing record, variable configuration items related to a process in which the historical deployment server processes the plurality of service requests; Determining fixed configuration items included in the original operating system based on the fixed configuration item list; The target atomic configuration is obtained based on the initial atomic configuration corresponding to the variable configuration item and the initial atomic configuration corresponding to the fixed configuration item.
3. The method according to claim 2, characterized in that The variable configuration items include: application software configuration items and system service configuration items; The determining, based on the processing record, the variable configuration items used by the historical deployment server in the process of processing the plurality of business requests comprises: Extract keywords from the processing records to determine application software information and system service information used in the process of processing the plurality of business requests; Based on the application software information, determining the application software configuration item; Based on the system service information, the system service configuration item is determined.
4. The method according to claim 1, characterized in that The target atomic configuration is determined by: Determine the configuration items of the plurality of historical deployment servers based on their respective configuration item logs and configuration files, wherein the plurality of historical deployment servers are of different server types, and the historical deployment servers are servers on which the original operating system has been deployed; Based on the configuration item identifiers and the occurrence frequencies of configuration item parameters included in the configuration items of the plurality of historical deployment servers, the configuration items of the plurality of historical deployment servers are screened out to obtain a plurality of configuration items to be processed, wherein the configuration item identifiers of the plurality of configuration items to be processed are different; Based on the configuration item identifiers of the plurality of configuration items to be processed, the plurality of configuration item key-value pairs are input into a corresponding script generation template to obtain a plurality of initial atomic configurations.
5. The method according to claim 2, characterized in that: The original operating system also includes the target operating system and system components other than the target operating system; the system components include: firmware, kernel modules and drivers; Wherein, the use of the target historical deployment server to simulate and process multiple business requests, after obtaining the processing records, includes: Determining a target kernel module used in the process of processing a plurality of the service requests based on the kernel module log of the target historical deployment server; Determining target hardware used in the process of processing the plurality of service requests based on the hardware log of the historical deployment server; Determine, based on the target hardware, a target driver for connecting to the target hardware and a target firmware for controlling the target hardware; Determining a file system type based on the server type; An operating system image corresponding to the server type is determined based on the target firmware, the target kernel module, the target driver, and a file system corresponding to the file system type.
6. The method according to claim 1, characterized in that Before the target configuration group is run in the initial operating system based on the configuration running instruction to obtain the configured target operating system, the method further includes: In response to having received the system configuration requirement table, matching the configuration item identifier to be updated included in the system configuration requirement table with the configuration item identifier corresponding to the target atomic configuration in the target configuration group to obtain the atomic configuration to be updated, wherein the configuration requirement table to be updated also includes the parameters to be updated corresponding to the configuration item identifier to be updated; The parameter to be updated is passed into the atomic configuration to be updated whose configuration item identifier is the configuration item identifier to be updated, to obtain an updated target configuration group.
7. The method according to claim 6, characterized in that The method further comprises: Running a configuration information collection script to collect configuration item information of the target operating system to obtain multiple target configuration items; Compare the configuration item identifiers of each of the plurality of target configuration items with the configuration item identifiers to be updated included in the configuration requirement table to obtain a first comparison result; Compare the configuration item parameter of the target configuration item whose configuration item identifier is the configuration item identifier to be updated with the parameter to be updated to obtain a second comparison result; The first comparison result and the second comparison result are visually displayed.
8. A deployment device for an operating system, characterized in that: The device comprises: A first determination module is used to, in response to receiving an operating system deployment request, determine an operating system image corresponding to the server to be deployed based on the server type of the server to be deployed carried in the operating system deployment request, wherein the operating system image is customized based on the operation requirements of the server to be deployed; An installation module, used to install the operating system image into the server to be deployed based on a system configuration script to obtain an initial operating system; A second determination module is used to determine a target configuration group for the server to be deployed based on the server type, wherein the target configuration group is obtained by combining target atomic configurations determined from multiple initial atomic configurations based on the server type, and the initial atomic configuration is a configuration script obtained according to configuration items configured in a historical deployment server; The configuration module is used to run the target configuration group in the initial operating system based on the configuration running instruction to obtain the configured target operating system.
9. An electronic device, comprising: one or more processors; a memory for storing one or more computer programs, It is characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
11. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Operating system deployment method and device, equipment, storage medium and program product
CN119883305A
Operating system deployment method and apparatus, device, storage medium, and program product
WO2026200199A1