CN112083971A - Component processing method, device and storage medium - Google Patents

Component processing method, device and storage medium Download PDF

Info

Publication number
CN112083971A
CN112083971A CN202010967802.5A CN202010967802A CN112083971A CN 112083971 A CN112083971 A CN 112083971A CN 202010967802 A CN202010967802 A CN 202010967802A CN 112083971 A CN112083971 A CN 112083971A
Authority
CN
China
Prior art keywords
component
computer program
changed configuration
information
resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010967802.5A
Other languages
Chinese (zh)
Other versions
CN112083971B (en
Inventor
闫航
何晓曦
范子逸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Ling Skylark Technology Co ltd
Original Assignee
Beijing Ling Skylark Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Ling Skylark Technology Co ltd filed Critical Beijing Ling Skylark Technology Co ltd
Priority to CN202010967802.5A priority Critical patent/CN112083971B/en
Publication of CN112083971A publication Critical patent/CN112083971A/en
Application granted granted Critical
Publication of CN112083971B publication Critical patent/CN112083971B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/283Multi-dimensional databases or data warehouses, e.g. MOLAP or ROLAP
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a component processing method, equipment and a storage medium, wherein the method comprises the following steps: and monitoring whether each configuration parameter of the preset user-defined resource changes or not through the logic controller, and if so, installing or updating the corresponding component according to each changed configuration parameter. According to the method and the device, the corresponding component is installed or updated according to the changed configuration parameters, compared with the prior art, a large number of use problems are avoided, so that the user experience is improved, and the resource conflict problem faced when the component is deployed is greatly reduced.

Description

Component processing method, device and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a component processing method, device, and storage medium.
Background
Kubernets is the most widely applied container platform at present, and Helm is generally adopted in the kubernets platform to conveniently manage more complex application. Where Helm is a client tool under a command line that describes the resources that an application contains through a component (Chart).
Currently, components are generally installed and updated by inputting a command line, and as user-defined resources (CRDs) are increased, the method has a great number of problems in use.
Disclosure of Invention
The present application aims to provide a component processing method, a device and a storage medium to solve the problem of a large number of applications in the prior art when a component is installed or updated through a command line, aiming at the above disadvantages in the prior art.
In order to achieve the above purpose, the technical solutions adopted in the embodiments of the present application are as follows:
in a first aspect, an embodiment of the present application provides a component processing method, including:
monitoring whether each configuration parameter of a preset user-defined resource changes through a logic controller;
if yes, installing or updating the corresponding components in the target service cluster according to the changed configuration parameters.
Optionally, the installing or updating the corresponding component in the target service cluster according to the changed configuration parameters includes:
carrying out validity check on each changed configuration parameter;
and if the verification is passed, installing or updating the corresponding components in the target service cluster according to the changed configuration parameters.
Optionally, the method further comprises:
and generating a corresponding Software Development Kit (SDK) according to the preset self-defined resource through a preset code generation tool, wherein the SDK is provided with an application program interface.
Optionally, the preset custom resource includes: a component deployment request and a component template repository.
Optionally, the configuration information of the component deployment request includes at least one of the following information: the method comprises the steps that version information, identification information, resource parameter configuration information and identification information of a corresponding component template warehouse of a component to be processed are obtained; and the component template warehouse is a warehouse where the component template corresponding to the component to be processed is located.
Optionally, the configuration information of the component template repository includes at least one of the following information: authentication information and access addresses of the component template repository.
In a second aspect, another embodiment of the present application provides a component processing method, including:
acquiring the changed configuration parameters of the user-defined resources in the management cluster and/or the plurality of service clusters;
and installing or updating corresponding components in other service clusters according to the changed configuration parameters by calling application program interfaces of other service clusters.
In a third aspect, another embodiment of the present application provides a component processing apparatus, including:
the monitoring module is used for monitoring whether each configuration parameter of the preset custom resource changes through the logic controller;
and if so, the processing module is used for installing or updating the corresponding component in the target service cluster according to the changed configuration parameters.
Optionally, the processing module is specifically configured to:
carrying out validity check on each changed configuration parameter;
and if the verification is passed, installing or updating the corresponding components in the target service cluster according to the changed configuration parameters.
Optionally, the processing module is further configured to:
and generating a corresponding Software Development Kit (SDK) according to the preset custom resource through a preset code generation tool, wherein the SDK is provided with an application program interface.
Optionally, the preset custom resource includes: a component deployment request and a component template repository.
Optionally, the configuration information of the component deployment request includes at least one of the following information: the method comprises the steps that version information, identification information, resource parameter configuration information and identification information of a corresponding component template warehouse of a component to be processed are obtained; and the component template warehouse is a warehouse where the component template corresponding to the component to be processed is located.
Optionally, the configuration information of the component template repository includes at least one of the following information: authentication information and access addresses of the component template repository.
In a fourth aspect, another embodiment of the present application provides a component handling apparatus, including:
the acquisition module is used for acquiring the changed configuration parameters of the user-defined resources in the management cluster and/or the plurality of service clusters;
and the processing module is used for installing or updating corresponding components in other service clusters according to the changed configuration parameters by calling application program interfaces of the other service clusters.
In a fifth aspect, another embodiment of the present application provides a computer device, including: a memory in which a computer program is stored, the computer program being executable on the processor, and the processor implementing the method of any of the first aspect when executing the computer program.
In a sixth aspect, another embodiment of the present application provides a computer device, including: a memory in which a computer program is stored, the computer program being executable on the processor, and the processor implementing the method of the second aspect when executing the computer program.
In a seventh aspect, another embodiment of the present application provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method of any one of the first and second aspects is implemented.
The application provides a component processing method, a device and a storage medium, wherein the method comprises the following steps: and monitoring whether each configuration parameter of the preset user-defined resource changes or not through the logic controller, and if so, installing or updating the corresponding component according to each changed configuration parameter. According to the method and the device, the corresponding component is installed or updated according to the changed configuration parameters, compared with the prior art, a large number of use problems are avoided, so that the user experience is improved, and the resource conflict problem faced when the component is deployed is greatly reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
FIG. 1 is a block diagram illustrating an architecture of a component processing system provided by an embodiment of the present application;
FIG. 2 is a first flowchart illustrating a component processing method according to an embodiment of the present disclosure;
FIG. 3 is a second flowchart illustrating a component processing method according to an embodiment of the present disclosure;
FIG. 4 is a third flowchart illustrating a component processing method according to an embodiment of the present disclosure;
FIG. 5 is a first schematic structural diagram of a component handling apparatus provided in an embodiment of the present application;
fig. 6 shows a schematic structural diagram ii of an assembly processing apparatus provided in the embodiment of the present application;
FIG. 7 is a first schematic structural diagram of a computer device provided by an embodiment of the present application;
fig. 8 shows a schematic structural diagram ii of a computer device provided in the embodiment of the present application.
Detailed Description
In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for illustrative and descriptive purposes only and are not used to limit the scope of protection of the present application. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and steps without logical context may be performed in reverse order or simultaneously. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.
In addition, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that in the embodiments of the present application, the term "comprising" is used to indicate the presence of the features stated hereinafter, but does not exclude the addition of further features.
Before the technical solution of the present application is introduced, the prior art related to the present application is first explained:
kubernets is the most widely applied container platform at present, people increasingly want to conveniently manage more complex applications, and Helm comes. Helm contains a command line tool, and installs or upgrades the component through the command line tool, but Helm's own processing to the resource is not perfect enough, can bring the problem in using a large amount, and with the use of customized resource CRD more and more, Helm's processing to CRD also has not a few problems, and more serious, its client-server framework that adopts itself user is difficult to understand, also has carried a lot of problems in using simultaneously, for example, when deleting the component of deployment, can lead to not deleting clean, can report mistake when reinstalling the component, cause the resource conflict problem.
Based on this, an embodiment of the present application provides a component processing method, where a large number of usage problems are avoided by monitoring each configuration parameter of a preset custom resource and installing or updating a corresponding component according to the changed configuration parameter when each configuration parameter changes, compared with the prior art, so that user experience is improved, and the problem of resource conflict faced when the component is deployed is greatly reduced.
Fig. 1 shows an architecture schematic diagram of a component processing system provided in an embodiment of the present application, and as shown in fig. 1, a cluster system 100 includes: a management cluster 200 and a plurality of service clusters 300 which are connected in a communication manner, wherein the management cluster 200 and each service cluster 300 are respectively composed of a plurality of servers. In Kubernetes, a component is used to describe a resource included in one application, that is, the component runs on a plurality of service clusters 300, a client actually accesses a corresponding server on the service cluster 300, and the management cluster 200 is used to manage the plurality of service clusters 300.
The component processing method provided in the embodiment of the present application is described in detail below with reference to the content described in the cluster system shown in fig. 1.
Fig. 2 is a schematic flowchart illustrating a first flowchart of a component processing method provided in an embodiment of the present application, where an execution main body of the embodiment may be the cluster system shown in fig. 1. As shown in fig. 2, the method comprises the steps of:
s101, monitoring whether each configuration parameter of the preset custom resource changes or not through a logic controller.
And S102, if so, installing or updating the corresponding components in the target service cluster according to the changed configuration parameters.
Wherein, a logic controller (english name: controller) may be disposed on each server in the cluster system for implementing the monitoring function.
In the development process, when a new application is developed or a new version of the application exists, a developer can configure each configuration parameter of the self-defined resource in the background, wherein in the configuration process, each configuration parameter of the self-defined resource has a default parameter, and the developer only needs to change each default parameter of each defined resource according to actual requirements.
In this embodiment, the cluster system may monitor, through the logic controller, whether each configuration parameter of the preset custom resource changes every preset time, specifically, each configuration parameter of the custom resource monitored last time is stored in advance, and when each configuration parameter of the custom resource is monitored this time, it is determined whether each configuration parameter of the custom resource changes through comparison.
And if each preset configuration parameter of the user-defined resource changes, the cluster system installs or updates the corresponding component in the target service cluster according to each changed configuration parameter.
In an optional embodiment, if the configuration parameters of the user-defined resource are monitored, which indicates that a new component needs to be installed, a target service cluster in the cluster system and a target server in the target service cluster are determined, and a corresponding component is installed on the target server according to each changed configuration parameter.
In another optional implementation, if the last monitored configuration parameter is a configuration parameter of an old version of an application, and the monitored configuration parameter changes from the configuration parameter of the old version, indicating that the component needs to be updated, determining a target service cluster in the cluster system and a target server in the target service cluster, and updating the corresponding component on the target server according to each changed configuration parameter.
Optionally, the preset custom resources include: a component deployment request and a component template repository.
Wherein, the component deployment request (English name: HelmRequest) defines the deployment requirement of a component; the component template repository (english name: ChartRepo) defines a component repository, which includes component templates.
It should be noted that the component deployment request may exist in any server in the cluster system, the component template repository may exist in any server in the management cluster, but the access address of the component template repository generally exists in other devices outside the cluster system.
Optionally, the configuration information of the component deployment request includes at least one of the following information: the method comprises the steps that version information, identification information, resource parameter configuration information and identification information of a corresponding component template warehouse of a component to be processed are obtained; the component template warehouse is a warehouse where the component template corresponding to the component to be processed is located.
The configuration information of the component template repository includes at least one of the following information: authentication information and access addresses of the component template repository.
The version information of the to-be-processed component may include a version number, and if the to-be-processed component is an unmounted component, the version information may be, for example, a first version, and if the to-be-processed component is an updated component, the version information may be, for example, a second version, a third version, and the like.
The resource parameter configuration information includes the size and resource type of the occupied resource when the to-be-processed component operates.
The identification information of the corresponding component template repository represents identification information of a repository where the component template corresponding to the component to be processed is located, and may be, for example, a component template repository No. 1.
The authentication information of the component template repository is used for indicating that a developer is required to input corresponding authentication information when the component template repository is called, that is, the developer can call the component template in the component template repository after inputting the authentication information.
The access address of the component template repository may be a web page link through which a component template in the component template repository may be accessed.
Optionally, the method further comprises:
and generating a corresponding Software Development Kit (SDK) according to a preset user-defined resource through a preset code generation tool, wherein the SDK is provided with an application program interface.
The cluster system can generate a corresponding software development kit SDK according to preset custom resources through the code generation tool, wherein the SDK is provided with an application program interface API.
The component processing method provided by the embodiment comprises the following steps: and monitoring whether each configuration parameter of the preset user-defined resource changes or not through the logic controller, and if so, installing or updating the corresponding component according to each changed configuration parameter. According to the method and the device, the corresponding component is installed or updated according to the changed configuration parameters, compared with the prior art, a large number of use problems are avoided, so that the user experience is improved, and the resource conflict problem faced when the component is deployed is greatly reduced.
In an alternative implementation, a specific implementation of step S102 is described below with reference to the embodiment in fig. 3. Fig. 3 shows a second flowchart of the component processing method according to the embodiment of the present application. As shown in fig. 3, step S102 specifically includes:
s201, carrying out validity check on each changed configuration parameter.
And S202, if the verification is passed, installing or updating the corresponding components in the target service cluster according to the changed configuration parameters.
The cluster system may register valid and state Webhook for performing validity check on each changed configuration parameter and configuring a default configuration parameter, where if each changed configuration parameter is a preset validity parameter, the check is passed, and if each changed configuration parameter is not a preset validity parameter, the check is not passed. And when the verification is passed, installing or updating the corresponding components in the target service cluster according to the changed configuration parameters. Therefore, the legality of the configured configuration parameters is ensured, and the condition that the components are illegal due to the fact that the components are installed or updated according to the illegal configuration parameters is avoided. The default configuration parameter may be the latest configuration parameter of the latest version application.
On the basis of the foregoing embodiment, the management cluster in the embodiment of fig. 1 may further install or update a corresponding component in another service cluster except the target service cluster in the cluster system according to the changed configuration parameter of the custom resource. The following description is made with reference to the embodiment of fig. 4.
Fig. 4 is a flowchart illustrating a third example of a component processing method provided in the embodiment of the present application, where an execution main body in the embodiment is a management cluster. As shown in fig. 4, the method includes the steps of:
s301, obtaining the changed configuration parameters of the self-defined resources in the management cluster and/or the plurality of service clusters.
S302, installing or updating corresponding components in other service clusters according to the changed configuration parameters by calling application program interfaces of other service clusters specified by the components to be processed.
Wherein the custom resource may be stored in the management cluster and/or the plurality of service clusters. In this embodiment, the changed configuration parameters of the user-defined resources in the management cluster and/or the plurality of service clusters are obtained, and then the corresponding components are installed or updated in other service clusters according to the changed configuration parameters by calling application program interfaces of other service clusters.
The number of the other service clusters may be at least one, as long as the corresponding component is installed or updated in the target service cluster, the management cluster calls the application program interface of the other service cluster in which the corresponding component needs to be installed or updated according to the actual requirement, and the corresponding component is installed or updated in the other service cluster according to the changed configuration parameter. Therefore, the components can be installed or updated to one or more clusters only by configuring the parameters once, and the efficiency of installing or updating the components is improved.
The component processing method provided by the embodiment comprises the following steps: the changed configuration parameters of the self-defined resources in the management cluster and/or the plurality of service clusters are obtained, the corresponding components are installed or updated in other service clusters according to the changed configuration parameters by calling application program interfaces of other service clusters appointed by the components to be processed, so that the components can be installed or updated to one or more clusters only by configuring the parameters once.
Fig. 5 is a schematic structural diagram of a component processing apparatus provided in an embodiment of the present application, and as shown in fig. 5, a component processing apparatus 50 may be integrated in the computer device in the embodiment of fig. 7. The component handling apparatus 50 includes:
a monitoring module 501, configured to monitor whether each configuration parameter of a preset custom resource changes through a logic controller;
if yes, the processing module 502 is configured to install or update the corresponding component in the target service cluster according to the changed configuration parameters.
Optionally, the processing module 502 is specifically configured to:
carrying out validity check on each changed configuration parameter;
and if the verification is passed, installing or updating the corresponding components in the target service cluster according to the changed configuration parameters.
Optionally, the processing module 502 is further configured to:
and generating a corresponding Software Development Kit (SDK) according to the preset custom resource through a preset code generation tool, wherein the SDK is provided with an application program interface.
Optionally, the preset custom resource includes: a component deployment request and a component template repository.
Optionally, the configuration information of the component deployment request includes at least one of the following information: the method comprises the steps that version information, identification information, resource parameter configuration information and identification information of a corresponding component template warehouse of a component to be processed are obtained; and the component template warehouse is a warehouse where the component template corresponding to the component to be processed is located.
Optionally, the configuration information of the component template repository includes at least one of the following information: authentication information and access addresses of the component template repository.
The description of the processing flow of each module in the device and the interaction flow between the modules may refer to the related description in the above method embodiments, and will not be described in detail here.
Fig. 6 shows a schematic structural diagram of a component processing apparatus provided in an embodiment of the present application, and as shown in fig. 6, the component processing apparatus 60 may be integrated in the computer device in the embodiment of fig. 8, where the component processing apparatus 60 includes:
an obtaining module 601, configured to obtain changed configuration parameters of the custom resources in the management cluster and/or the multiple service clusters;
a processing module 602, configured to install or update a corresponding component in another service cluster according to the changed configuration parameter by calling an application program interface of the other service cluster.
The description of the processing flow of each module in the device and the interaction flow between the modules may refer to the related description in the above method embodiments, and will not be described in detail here.
Fig. 7 shows a schematic structural diagram of a computer device provided in the embodiment of the present application, where the computer device 70 may be any server in a cluster system. As shown in fig. 7, the computer device 70 includes: the system comprises a memory 701 and a processor 702, wherein the memory 701 stores a computer program which can run on the processor 702, and when the processor 702 executes the computer program, the method executed by the cluster system in the above method embodiments is implemented.
Optionally, the memory 701 and the processor 702 are connected by a bus 703.
Fig. 8 shows a schematic structural diagram of a computer device provided in the embodiment of the present application, where the computer device 80 may be a server in a management cluster. As shown in fig. 8, the computer device 80 includes: a memory 801 and a processor 802, wherein the memory 801 stores a computer program operable on the processor 802, and when the processor 802 executes the computer program, the method performed by the management cluster in the above method embodiment is implemented.
Optionally, the memory 801 and the processor 802 are connected by a bus 803.
Another embodiment of the present application provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the method described in the above method embodiment.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to corresponding processes in the method embodiments, and are not described in detail in this application. In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and there may be other divisions in actual implementation, and for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or modules through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application.

Claims (10)

1. A method of component handling, the method comprising:
monitoring whether each configuration parameter of a preset user-defined resource changes through a logic controller;
if yes, installing or updating the corresponding components in the target service cluster according to the changed configuration parameters.
2. The method according to claim 1, wherein the installing or updating the corresponding component in the target service cluster according to the changed configuration parameters includes:
carrying out validity check on each changed configuration parameter;
and if the verification is passed, installing or updating the corresponding components in the target service cluster according to the changed configuration parameters.
3. The method of claim 1, further comprising:
and generating a corresponding Software Development Kit (SDK) according to the preset custom resource through a preset code generation tool, wherein the SDK is provided with an application program interface.
4. The method of claim 1, wherein the preset custom resource comprises: a component deployment request and a component template repository.
5. The method of claim 4, wherein the configuration information of the component deployment request comprises at least one of the following information: the method comprises the steps that version information, identification information, resource parameter configuration information and identification information of a corresponding component template warehouse of a component to be processed are obtained; and the component template warehouse is a warehouse where the component template corresponding to the component to be processed is located.
6. The method of claim 4, wherein the configuration information of the component template repository comprises at least one of: authentication information and access addresses of the component template repository.
7. A component handling method, applied to a management cluster, the method comprising:
acquiring the changed configuration parameters of the user-defined resources in the management cluster and/or the plurality of service clusters;
and installing or updating corresponding components in other service clusters according to the changed configuration parameters by calling application program interfaces of other service clusters.
8. A computer device, comprising: memory in which a computer program is stored, the computer program being executable on the processor, the processor implementing the method of any of the preceding claims 1 to 6 when executing the computer program.
9. A computer device, comprising: a memory in which a computer program is stored, the computer program being executable on the processor, the processor implementing the method of claim 7 when executing the computer program.
10. A storage medium, characterized in that the storage medium has stored thereon a computer program which, when executed by a processor, implements the method of any one of claims 1 to 7.
CN202010967802.5A 2020-09-15 2020-09-15 Component processing method, device and storage medium Active CN112083971B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010967802.5A CN112083971B (en) 2020-09-15 2020-09-15 Component processing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010967802.5A CN112083971B (en) 2020-09-15 2020-09-15 Component processing method, device and storage medium

Publications (2)

Publication Number Publication Date
CN112083971A true CN112083971A (en) 2020-12-15
CN112083971B CN112083971B (en) 2023-04-11

Family

ID=73737158

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010967802.5A Active CN112083971B (en) 2020-09-15 2020-09-15 Component processing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN112083971B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113672267A (en) * 2021-09-03 2021-11-19 中国银行股份有限公司 Parameter updating method and device
CN114079615A (en) * 2021-11-17 2022-02-22 上海道客网络科技有限公司 Application synchronization method, system, medium and electronic device in multi-cluster environment
CN115118626A (en) * 2022-07-27 2022-09-27 济南浪潮数据技术有限公司 Management method, computer readable storage medium, system and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660397A (en) * 2018-12-21 2019-04-19 北京百度网讯科技有限公司 For acquiring system, the method and apparatus of log
CN110768833A (en) * 2019-10-25 2020-02-07 北京宝兰德软件股份有限公司 Application arrangement and deployment method and device based on kubernets
CN111324417A (en) * 2020-01-19 2020-06-23 北京百度网讯科技有限公司 Kubernetes cluster component control method and device, electronic equipment and medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660397A (en) * 2018-12-21 2019-04-19 北京百度网讯科技有限公司 For acquiring system, the method and apparatus of log
CN110768833A (en) * 2019-10-25 2020-02-07 北京宝兰德软件股份有限公司 Application arrangement and deployment method and device based on kubernets
CN111324417A (en) * 2020-01-19 2020-06-23 北京百度网讯科技有限公司 Kubernetes cluster component control method and device, electronic equipment and medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113672267A (en) * 2021-09-03 2021-11-19 中国银行股份有限公司 Parameter updating method and device
CN114079615A (en) * 2021-11-17 2022-02-22 上海道客网络科技有限公司 Application synchronization method, system, medium and electronic device in multi-cluster environment
CN114079615B (en) * 2021-11-17 2023-08-11 上海道客网络科技有限公司 Application synchronization method, system, medium and electronic equipment in multi-cluster environment
CN115118626A (en) * 2022-07-27 2022-09-27 济南浪潮数据技术有限公司 Management method, computer readable storage medium, system and device

Also Published As

Publication number Publication date
CN112083971B (en) 2023-04-11

Similar Documents

Publication Publication Date Title
CN112083971B (en) Component processing method, device and storage medium
CN107896162B (en) Deployment method and device of monitoring system, computer equipment and storage medium
CN108462760B (en) Electronic device, automatic cluster access domain name generation method and storage medium
CN111373366A (en) Generating and deploying machine learning model software packages
CN110096424B (en) Test processing method and device, electronic equipment and storage medium
CN108416449B (en) Operation and maintenance method and device
CN111414391A (en) Method and system for accessing multiple data sources
CN106897093A (en) A kind of dispositions method and device of windows operating systems
CN110673923A (en) XWIKI system configuration method, system and computer equipment
CN108776587B (en) Data acquisition method and device, computer equipment and storage medium
CN106126303B (en) Installation method, the apparatus and system of (SuSE) Linux OS
CN111158715A (en) Gray scale release control method and system
CN106873970A (en) The installation method and device of a kind of operating system
CN114780080A (en) Micro front end integration method, device and monitoring method
CN108563472B (en) Service plug-in loading method and device based on multi-open application
CN111770174A (en) Cloud platform deployment method, device, equipment and readable storage medium
CN112947907B (en) Method for creating code branches
CN111857847A (en) Method, device, equipment and storage medium for dynamically configuring BIOS character string
CN110308914B (en) Upgrade processing method, device, equipment, system and computer readable storage medium
CN116450165A (en) Method, system, terminal and storage medium for quickly building environment and deploying program
CN113312148B (en) Big data service deployment method, device, equipment and medium
CN108062224A (en) Data read-write method, device and computing device based on file handle
JP4882291B2 (en) Module update program
CN112000354A (en) Version information updating method, version information updating device, version information updating equipment and storage medium
CN113515299A (en) Software development kit SDK hot upgrading method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant