CN117827232A - Deployment method and device of network element service - Google Patents

Deployment method and device of network element service Download PDF

Info

Publication number
CN117827232A
CN117827232A CN202311782214.4A CN202311782214A CN117827232A CN 117827232 A CN117827232 A CN 117827232A CN 202311782214 A CN202311782214 A CN 202311782214A CN 117827232 A CN117827232 A CN 117827232A
Authority
CN
China
Prior art keywords
target
instruction
deployment
value
service
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.)
Pending
Application number
CN202311782214.4A
Other languages
Chinese (zh)
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.)
China Telecom Intelligent Network Technology Co ltd
Original Assignee
China Telecom Intelligent Network 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 China Telecom Intelligent Network Technology Co ltd filed Critical China Telecom Intelligent Network Technology Co ltd
Priority to CN202311782214.4A priority Critical patent/CN117827232A/en
Publication of CN117827232A publication Critical patent/CN117827232A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The application discloses a deployment method and device of network element service. Wherein the method comprises the following steps: receiving a deployment instruction for deploying the target service in the target container, wherein the deployment instruction comprises at least one of: installation instructions, upgrading instructions and restarting instructions; determining a target instruction corresponding to the deployment instruction according to a value of an object in a deployment template for deploying the target service, wherein the target instruction is used for indicating a target container to complete a target action; and executing a target action corresponding to the target instruction, wherein the target action is used for deploying the target service. The method and the device solve the technical problem that the data table in the database corresponding to the network element service is abnormal due to the fact that the deployment instructions are the same.

Description

Deployment method and device of network element service
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for deploying a network element service.
Background
The service of each network element of a 5GC (5G Core, core network part of a fifth generation mobile communication technology) product is deployed in a container of a K8S pod (minimum deployment unit in a deployment system), wherein a database is a component for storing various configuration data of the 5GC product, when the pod is started or upgraded for the first time, the 5GC product needs to initialize or upgrade data list items through a command issuing interface of the container and persist the data, and then the list items are not initialized or upgraded again in the process of restarting the hardware failure and pod failure, and the persisted data is directly used for loading. In the prior art, the starting default of the container is that the starting mode of the container is not distinguished, namely, the same instruction is executed in the processes of starting, restarting and upgrading the container for the first time, so that a database corresponding to the network element service cannot identify specific deployment actions, and the database data table is updated in disorder.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the application provides a deployment method and device of network element service, which are used for at least solving the technical problem of abnormal data table in a database corresponding to the network element service due to the same deployment instruction.
According to an aspect of an embodiment of the present application, there is provided a method for deploying a network element service, including: receiving a deployment instruction for deploying a target service in a target container, wherein the deployment instruction comprises at least one of the following: installation instructions, upgrading instructions and restarting instructions; determining a target instruction corresponding to the deployment instruction according to a value of an object built in a deployment template for deploying the target service, wherein the target instruction is used for indicating the target container to complete a target action; and executing a target action corresponding to the target instruction, wherein the target action is used for deploying the target service.
Optionally, determining the target instruction corresponding to the deployment instruction according to the value of the built-in object in the deployment template for deploying the target service includes: sequentially acquiring a value of a first object and a value of a second object in the built-in object; and determining target instructions corresponding to the deployment instructions according to the values of the first object and the second object, wherein the values of the first object and the second object are respectively used for indicating different target instructions.
Optionally, determining, according to the values of the first object and the second object, a target instruction corresponding to the deployment instruction includes: determining that the target instruction is the installation instruction under the condition that the value of the first object is a valid value; determining that the target instruction is the restart instruction if the value of the first object is an invalid value and the value of the second object is an invalid value; and determining that the target instruction is the upgrade instruction when the value of the first object is an invalid value and the value of the second object is a valid value.
Optionally, after executing the target action corresponding to the target instruction, the method includes: resetting the value of the first object to an invalid value after the installation instruction is executed under the condition that the target instruction is the installation instruction; and resetting the value of the second object to an invalid value after the upgrade instruction is executed under the condition that the target instruction is the upgrade instruction.
Optionally, after determining the target instruction corresponding to the deployment instruction, the method includes: determining the deployment action of the database table item corresponding to the target service according to the type of the target instruction; and executing the deployment action of the database table item corresponding to the target service while executing the target action.
Optionally, determining the deployment action of the database table entry corresponding to the target service according to the type of the target instruction includes: under the condition that the target instruction is the installation instruction, determining the deployment action as a database table item corresponding to the target service newly built in a database corresponding to the target service; under the condition that the target instruction is the installation instruction, determining the deployment action as a database table item corresponding to the target service in a database corresponding to the target service; and determining that the deployment action is a null value under the condition that the target instruction is the installation instruction.
Optionally, executing the target action corresponding to the target instruction, completing the deployment of the target service, including: receiving an operation instruction corresponding to the target action, wherein the format of the operation instruction is a command instruction format; and executing the target action according to the operation instruction.
According to another aspect of the embodiment of the present application, there is further provided a deployment apparatus for a network element service, including: the system comprises a receiving module, a deploying module and a deploying module, wherein the receiving module is used for receiving a deploying instruction for deploying the target service in the target container, and the deploying instruction comprises at least one of the following steps: installation instructions, upgrading instructions and restarting instructions; the determining module is used for determining a target instruction corresponding to the deployment instruction according to the value of the built-in object in the deployment template for deploying the target service, wherein the target instruction is used for indicating the target container to complete a target action; and the execution module is used for executing the target action corresponding to the target instruction, wherein the target action is used for deploying the target service.
According to still another aspect of the embodiments of the present application, there is further provided a nonvolatile storage medium, where the nonvolatile storage medium includes a stored program, and when the program runs, the device where the nonvolatile storage medium is controlled to execute the deployment method of the network element service described above.
According to still another aspect of the embodiments of the present application, there is further provided a computer device, including a memory and a processor, where the processor is configured to execute a program, and the program executes the deployment method of the network element service.
In an embodiment of the present application, receiving a deployment instruction for deploying a target service in a target container is adopted, where the deployment instruction includes at least one of the following: installation instructions, upgrading instructions and restarting instructions; determining a target instruction corresponding to the deployment instruction according to a value of an object built in a deployment template for deploying the target service, wherein the target instruction is used for indicating the target container to complete a target action; and executing the target action corresponding to the target instruction, wherein the target action is used for deploying the target service, and determining the target instruction corresponding to the deployment instruction according to the value of the built-in object in the deployment template for deploying the target service, so that the aim of accurately identifying the deployment instruction is fulfilled, the technical effect of updating the data table in the database corresponding to the network element service normally is realized, and the technical problem of abnormal data table in the database corresponding to the network element service due to the fact that the deployment instructions are identical is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
fig. 1 is a hardware block diagram of a computer terminal (or mobile device) for a deployment method of a network element service according to an embodiment of the present application;
fig. 2 is a flowchart of a deployment method of a network element service according to the present application;
fig. 3 is a flowchart of a deployment method of a network element service in the related art;
fig. 4 is a flowchart of another method for deploying a network element service according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an alternative deployment device of a network element service according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an alternative deployment device for network element services according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to embodiments of the present application, there is also provided an embodiment of a method for deploying a network element service, it is to be noted that the steps shown in the flowchart of the drawing may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowchart, in some cases the steps shown or described may be performed in an order different from that herein.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, a cloud server, or similar computing devices. Fig. 1 shows a block diagram of the hardware architecture of a computer terminal (or mobile device) for implementing a deployment method for network element services. As shown in fig. 1, the computer terminal 10 (or mobile device 10) may include one or more processors 102 (shown as 102a, 102b, … …,102 n) which may include, but are not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA, a memory 104 for storing data, and a transmission module 106 for communication functions. In addition, the method may further include: a display, an input/output interface (I/O interface), a Universal Serial Bus (USB) port (which may be included as one of the ports of the I/O interface), a network interface, a power supply, and/or a camera. It will be appreciated by those of ordinary skill in the art that the configuration shown in fig. 1 is merely illustrative and is not intended to limit the configuration of the electronic device described above. For example, the computer terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
It should be noted that the one or more processors 102 and/or other data processing circuits described above may be referred to generally herein as "data processing circuits. The data processing circuit may be embodied in whole or in part in software, hardware, firmware, or any other combination. Furthermore, the data processing circuitry may be a single stand-alone processing module, or incorporated, in whole or in part, into any of the other elements in the computer terminal 10 (or mobile device). As referred to in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of the path of the variable resistor termination to interface).
The memory 104 may be configured to store software programs and modules of application software, such as program instructions/data storage devices corresponding to the deployment method of the network element service in the embodiment of the present application, and the processor 102 executes the software programs and modules stored in the memory 104, thereby executing various functional applications and data processing, that is, implementing the deployment method of the network element service described above. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission module 106 is used to receive or transmit data via a network. The specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission module 106 includes a network adapter (Network Interface Controller, NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission module 106 may be a Radio Frequency (RF) module for communicating with the internet wirelessly.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the computer terminal 10 (or mobile device).
According to embodiments of the present application, there is provided an embodiment of a method for deploying a network element service, it is to be noted that the steps shown in the flowchart of the figures may be performed in a computer system, such as a set of computer executable instructions, and that although a logical order is shown in the flowchart, in some cases the steps shown or described may be performed in an order different from that herein.
Fig. 2 is a flowchart of a method for deploying a network element service according to an embodiment of the present application, as shown in fig. 2, the method includes the following steps:
step S202, receiving a deployment instruction for deploying the target service in the target container, wherein the deployment instruction comprises at least one of the following steps: installation instructions, upgrading instructions and restarting instructions;
step S204, determining a target instruction corresponding to the deployment instruction according to a value of an object built in a deployment template for deploying the target service, wherein the target instruction is used for indicating the target container to complete a target action;
step S206, executing a target action corresponding to the target instruction, wherein the target action is used for deploying the target service.
By the steps, the method can realize receiving the deployment instruction for deploying the target service in the target container, wherein the deployment instruction comprises at least one of the following steps: installation instructions, upgrading instructions and restarting instructions; determining a target instruction corresponding to the deployment instruction according to a value of an object built in a deployment template for deploying the target service, wherein the target instruction is used for indicating the target container to complete a target action; and executing the target action corresponding to the target instruction, wherein the target action is used for deploying the target service, and determining the target instruction corresponding to the deployment instruction according to the value of the built-in object in the deployment template for deploying the target service, so that the aim of accurately identifying the deployment instruction is fulfilled, the technical effect of updating the data table in the database corresponding to the network element service normally is realized, and the technical problem of abnormal data table in the database corresponding to the network element service due to the fact that the deployment instructions are identical is solved.
It should be noted that, in the related art, the deployment default of the container is to not distinguish the deployment mode of the container, that is, the same operation instruction is executed during the processes of first starting (installing), restarting and upgrading the container. This applies to most application scenarios, but if for some special scenarios it is necessary to use built-in objects of a helm plug-in (plug-ins in the deployment system Kubernetes) at the time of container startup by distinguishing startup and upgrades in the deployment template (resource object for defining and managing deployment of Pod), for example: release. IsInstallal (an inbuilt object), release. IsUpgrade (an inbuilt object). Fig. 3 shows a target service deployment method in the related art, as shown in fig. 3, the specific method is as follows:
step 1-3: when the 5GC is installed, judging that the operation is currently a starting operation by using a release. IsInstallal flag bit as TRUE, and executing an instruction related to installation by a cmd instruction. Step 4-5: when the container is restarted after 5GC installation, the installation-related cmd instruction is again executed because the Release. IsInstallation flag is still TRUE. Step 6-8: when 5GC is updated, the Release. IsUpgrade flag bit is TRUE to judge that the operation is currently the updating operation, and the cmd instruction executes the instruction related to updating. Step 9-10: when the container is restarted after the 5GC upgrade, the relevant cmd instruction is executed again. Because the release. Isupgrade flag is still TRUE at this time.
It can be seen from the method in the related art that the related art can only identify whether the container in the pod is installed or upgraded, and cannot identify the restart. For some demand scenarios: for example, the initialization and the upgrade of the database table are only required to be executed when the pod content is installed and upgraded respectively, and are not required to be executed when the pod content is restarted. At this time, faults such as table item loss and table item disorder can occur, whether the current starting mode of the container in the pod inner area is installation, pod fault or restarting caused by the container fault or upgrading can not occur, so when the command issuing interface of the pod inner container of the K8S executes the initialization or upgrading of the data table item, the corresponding initialization or upgrading operation can be executed again when the pod rebuilds or the container restarts, the data table item is abnormal, and even the fault can be caused by repeated initialization of the data table. Finally, the initialization and the upgrading of the database table items cannot be automatically managed and completed in the container, and can only be performed by a manual method after the installation or the upgrading is completed.
The above steps S202 to S206 are described in detail below by specific embodiments.
In step S204, according to the value of the built-in object in the deployment template for deploying the target service, the specific process of determining the target instruction corresponding to the deployment instruction is as follows: sequentially acquiring a value of a first object and a value of a second object in the built-in object; and determining target instructions corresponding to the deployment instructions according to the values of the first object and the second object, wherein the values of the first object and the second object are respectively used for indicating different target instructions.
It will be appreciated that the first object may be release. IsIntal and the second object may be release. IsUpgrade;
the specific process of determining the target instruction corresponding to the deployment instruction according to the values of the first object and the second object comprises the following steps: determining that the target instruction is the installation instruction under the condition that the value of the first object is a valid value; determining that the target instruction is the restart instruction if the value of the first object is an invalid value and the value of the second object is an invalid value; and determining that the target instruction is the upgrade instruction when the value of the first object is an invalid value and the value of the second object is a valid value.
It will be appreciated that the valid value is TRUE and the invalid value is FALSE.
After the target action corresponding to the target instruction is executed, resetting the value of the first object to an invalid value after the installation instruction is executed under the condition that the target instruction is the installation instruction; and resetting the value of the second object to an invalid value after the upgrade instruction is executed under the condition that the target instruction is the upgrade instruction.
Taking 5GC as an example of the target service, fig. 4 shows a deployment method of the network element service, as shown in fig. 4, including: step 1-2: when the 5GC is installed, the release. IsInstallal value in the deployment template deleyment is TRUE, and the current container starting mode is determined to be the installation. Step 3: the pod inner container performs operation a for TRUE according to the release. Isital value, which is performed only at installation time. Step 4: after 5GC installation, the release. Isinstall value was reset to FALSE. Step 5-6: after 5GC is installed, when various restarting is encountered, the starting mode of the current container is judged to be restarting by judging that the Release. IsInstallal value is FALSE, and operation B which is only needed to be executed when restarting is executed. Step 7-8: when the 5GC is upgraded, the Release. IsUpgrade value in the palm char deployment template depoyment is TRUE, and the current container starting mode is considered to be upgrading. Step 9: the POD inner container performs operation C for TRUE according to the release. Isupgrade value, which is performed only at the time of upgrade. Step 10: after 5GC upgrades, the release. Isupgrade value is reset to FALSE. Step 11-12: after 5GC upgrading is finished, when various restarting is encountered, the starting mode of the current container is determined to be restarting by judging the release value IsUpgrade value as FALSE, and the operation B which is only needed to be executed when restarting is executed. And judging the container starting mode of the pod by referring to the deployment template after using built-in objects of the palm, namely release. IsInstall and release. IsUpgrade, and resetting the values of the built-in objects, so that the different business programs in different starting modes can be operated in the pod inner container. The different starting modes of the containers are distinguished to solve the problem that the 5GC products need to strictly distinguish the starting modes of the containers to realize differentiated and accurate service processing scenes. Meanwhile, the problem of various faults caused by repeated execution of the installation and upgrading instructions under various abnormal restarting conditions in the pod is solved. The method reduces the complexity of application deployment in k8s and improves the flexibility of the container in k8 s.
After determining a target instruction corresponding to the deployment instruction, determining a deployment action of a database table item corresponding to the target service according to the type of the target instruction; and executing the deployment action of the database table item corresponding to the target service while executing the target action. Under the condition that the target instruction is the installation instruction, determining the deployment action as a database table item corresponding to the target service newly built in a database corresponding to the target service; under the condition that the target instruction is the installation instruction, determining the deployment action as a database table item corresponding to the target service in a database corresponding to the target service; and determining that the deployment action is a null value under the condition that the target instruction is the installation instruction.
The initialization and the upgrading of the database table items can be performed by distinguishing the current operation modes of installation, upgrading and restarting to control the service behavior in the pod when the database deployment template is designed by the method provided by the application, and automatic table building and upgrading operation is performed without manually building and upgrading the table after the database is started. The database entry status can be checked before the above network element is installed and upgraded, and no check is made at restart. And the automation and differentiation processing of the dependence among the pod is realized.
Executing the target action corresponding to the target instruction, and completing the specific process of deploying the target service comprises the following steps: receiving an operation instruction corresponding to the target action, wherein the format of the operation instruction is a command instruction format; and executing the target action according to the operation instruction.
The deployment method of the network element service provided by the embodiment of the application is also applied to the data modification method device of the database provided by the embodiment of the application, as shown in fig. 5, and includes: a receiving module 50, configured to receive a deployment instruction for deploying a target service in a target container, where the deployment instruction includes at least one of: installation instructions, upgrading instructions and restarting instructions; a determining module 52, configured to determine, according to a value of an object built in a deployment template for deploying the target service, a target instruction corresponding to the deployment instruction, where the target instruction is used to instruct the target container to complete a target action; and the execution module 54 is configured to execute a target action corresponding to the target instruction, where the target action is used to deploy the target service.
The determining module 52 includes: the determining submodule is used for sequentially acquiring the value of the first object and the value of the second object in the built-in object; and determining target instructions corresponding to the deployment instructions according to the values of the first object and the second object, wherein the values of the first object and the second object are respectively used for indicating different target instructions.
Determining a sub-module comprising: a determining unit configured to determine that the target instruction is the installation instruction, in a case where the value of the first object is a valid value; determining that the target instruction is the restart instruction if the value of the first object is an invalid value and the value of the second object is an invalid value; and determining that the target instruction is the upgrade instruction when the value of the first object is an invalid value and the value of the second object is a valid value.
Execution module 54, comprising: a resetting sub-module, configured to reset, when the target instruction is the installation instruction, a value of the first object to an invalid value after the installation instruction is executed; and resetting the value of the second object to an invalid value after the upgrade instruction is executed under the condition that the target instruction is the upgrade instruction.
Execution module 54, further includes: the deployment sub-module is used for determining the deployment action of the database table item corresponding to the target service according to the type of the target instruction; and executing the deployment action of the database table item corresponding to the target service while executing the target action.
A deployment sub-module, comprising: the action unit is used for determining the deployment action as a database table item corresponding to the target service newly built in a database corresponding to the target service under the condition that the target instruction is the installation instruction; under the condition that the target instruction is the installation instruction, determining the deployment action as a database table item corresponding to the target service in a database corresponding to the target service; and determining that the deployment action is a null value under the condition that the target instruction is the installation instruction.
Execution module 54, further includes: the execution sub-module is used for receiving an operation instruction corresponding to the target action, wherein the format of the operation instruction is a command instruction format; and executing the target action according to the operation instruction.
The application also provides a deployment system of the network element service, as shown in fig. 6, including: the system comprises a built-in object module, a deployment template module and a business process module, wherein the built-in object module comprises a release. IsInstall and a release. IsUpgrade built-in object and is used for indicating a current deployment instruction, wherein the release. IsInstall indicates that if the current operation is installation, the value is set to true, the installation is finished, and the value is set to false; the release. Isupgrade indicates that if the current operation is an upgrade or rollback, the value will be set to true, the upgrade is over, and the value is set to false. And deploying a template module, judging the starting mode of the current container by receiving the Release. IsInstallal and Release. IsUpgrade objects, and enabling command of the container to issue different instructions to a business process in the container. Wherein the 5GC contains a plurality of service network elements, such as: AMF: an application management function of the core network, which is responsible for processing functions of network and service management; SMF: a session management function of the core network, which is responsible for processing session management and policy control functions; UDM: user data management, which is responsible for managing personal information and configuration data of users; PCF: and the policy control function is responsible for handling policy control and traffic management in the network. Business process module: and executing differentiated deployment actions according to the instructions issued by the container commands, so that the purpose that the 5GC service executes different operation instructions by acquiring different operation types through the depoyment is achieved.
According to another aspect of the embodiments of the present application, there is further provided a nonvolatile storage medium, including a stored program, where when the program runs, a device where the nonvolatile storage medium is controlled to execute the deployment method of the network element service described above.
According to another aspect of the embodiment of the present application, there is further provided a computer device, including a memory and a processor, where the processor is configured to execute a program, and the program executes the deployment method of the network element service.
The method for deploying the network element service by the computer equipment comprises the steps of receiving a deployment instruction for deploying the target service in a target container, wherein the deployment instruction comprises at least one of the following steps: installation instructions, upgrading instructions and restarting instructions; determining a target instruction corresponding to the deployment instruction according to a value of an object built in a deployment template for deploying the target service, wherein the target instruction is used for indicating the target container to complete a target action; and executing the target action corresponding to the target instruction, wherein the target action is used for deploying the target service, and determining the target instruction corresponding to the deployment instruction according to the value of the built-in object in the deployment template for deploying the target service, so that the aim of accurately identifying the deployment instruction is fulfilled, the technical effect of updating the data table in the database corresponding to the network element service normally is realized, and the technical problem of abnormal data table in the database corresponding to the network element service due to the fact that the deployment instructions are identical is solved.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology content may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of units may be a logic function division, and there may be another division manner in actual implementation, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution, in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application and are intended to be comprehended within the scope of the present application.

Claims (10)

1. A method for deploying a network element service, comprising:
receiving a deployment instruction for deploying a target service in a target container, wherein the deployment instruction comprises at least one of the following: installation instructions, upgrading instructions and restarting instructions;
determining a target instruction corresponding to the deployment instruction according to a value of an object built in a deployment template for deploying the target service, wherein the target instruction is used for indicating the target container to complete a target action;
and executing a target action corresponding to the target instruction, wherein the target action is used for deploying the target service.
2. The method of claim 1, wherein determining the target instruction corresponding to the deployment instruction according to the value of the object built in the deployment template for deploying the target service comprises:
sequentially acquiring a value of a first object and a value of a second object in the built-in object;
and determining target instructions corresponding to the deployment instructions according to the values of the first object and the second object, wherein the values of the first object and the second object are respectively used for indicating different target instructions.
3. The method of claim 2, wherein determining a target instruction corresponding to the deployment instruction from the values of the first object and the second object comprises:
determining that the target instruction is the installation instruction under the condition that the value of the first object is a valid value;
determining that the target instruction is the restart instruction if the value of the first object is an invalid value and the value of the second object is an invalid value;
and determining that the target instruction is the upgrade instruction when the value of the first object is an invalid value and the value of the second object is a valid value.
4. A method according to claim 3, comprising, after executing the target action corresponding to the target instruction:
resetting the value of the first object to an invalid value after the installation instruction is executed under the condition that the target instruction is the installation instruction;
and resetting the value of the second object to an invalid value after the upgrade instruction is executed under the condition that the target instruction is the upgrade instruction.
5. The method of claim 1, wherein after determining the target instruction to which the deployment instruction corresponds, comprising:
determining the deployment action of the database table item corresponding to the target service according to the type of the target instruction; and executing the deployment action of the database table item corresponding to the target service while executing the target action.
6. The method of claim 5, wherein determining the deployment of the database entry corresponding to the target service according to the type of the target instruction comprises:
under the condition that the target instruction is the installation instruction, determining the deployment action as a database table item corresponding to the target service newly built in a database corresponding to the target service;
under the condition that the target instruction is the installation instruction, determining the deployment action as a database table item corresponding to the target service in a database corresponding to the target service;
and determining that the deployment action is a null value under the condition that the target instruction is the installation instruction.
7. The method of claim 1, wherein executing the target action corresponding to the target instruction, completing the deployment of the target service, comprises:
receiving an operation instruction corresponding to the target action, wherein the format of the operation instruction is a command instruction format;
and executing the target action according to the operation instruction.
8. A deployment apparatus for a network element service, comprising:
the system comprises a receiving module, a deploying module and a deploying module, wherein the receiving module is used for receiving a deploying instruction for deploying the target service in the target container, and the deploying instruction comprises at least one of the following steps: installation instructions, upgrading instructions and restarting instructions;
the determining module is used for determining a target instruction corresponding to the deployment instruction according to the value of the built-in object in the deployment template for deploying the target service, wherein the target instruction is used for indicating the target container to complete a target action;
and the execution module is used for executing the target action corresponding to the target instruction, wherein the target action is used for deploying the target service.
9. A non-volatile storage medium, characterized in that the non-volatile storage medium comprises a stored program, wherein the program, when run, controls a device in which the non-volatile storage medium is located to perform the deployment method of the network element service according to any one of claims 1 to 7.
10. A computer device comprising a memory and a processor for running a program, wherein the program is run to perform the method of deploying a network element service according to any one of claims 1 to 7.
CN202311782214.4A 2023-12-21 2023-12-21 Deployment method and device of network element service Pending CN117827232A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311782214.4A CN117827232A (en) 2023-12-21 2023-12-21 Deployment method and device of network element service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311782214.4A CN117827232A (en) 2023-12-21 2023-12-21 Deployment method and device of network element service

Publications (1)

Publication Number Publication Date
CN117827232A true CN117827232A (en) 2024-04-05

Family

ID=90514518

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311782214.4A Pending CN117827232A (en) 2023-12-21 2023-12-21 Deployment method and device of network element service

Country Status (1)

Country Link
CN (1) CN117827232A (en)

Similar Documents

Publication Publication Date Title
US10162646B2 (en) System for programmably configuring a motherboard
US20180267908A1 (en) Method, apparatus and system of managing external devices, memory and unmanned aerial vehicle
CN109032846A (en) Equipment remote backup upgrade method, device, computer storage medium and equipment
CN103885802A (en) Driver installation method and device and client
CN109582372A (en) A kind of starting method and device of system
CN113885971A (en) State management method and device based on self-adaptive platform system
CN110362416A (en) Page assembly loading method and device, electronic equipment, storage medium
CN106484442B (en) Server system and method for updating startup mapping file
CN117827232A (en) Deployment method and device of network element service
CN111984287A (en) Equipment upgrading method and system
US11425203B2 (en) Commissioning a virtualized network function
CN106375461A (en) Configuration resource near-field transmission method and device
CN113472611A (en) Method and device for acquiring WiFi signal strength and readable storage medium
CN112306843A (en) Test method, test device and storage medium
CN113452550A (en) Information acquisition device, firmware updating method and system of embedded system device
CN117234544B (en) Method and device for recovering system of server equipment
CN104641305A (en) System for account setup and/or device installation
CN112885296B (en) Method and device for acquiring fault information, storage medium and electronic device
CN113791810B (en) ZYNQ platform-based remote upgrading method, device and system
CN117311890B (en) Picture display method and device in starting process of server
CN117762504A (en) System migration method and device
CN116126369A (en) Method, device and storage medium for issuing configuration file
CN106445565A (en) Field programmable gate array (FPGA) upgrading method and device
CN116382637A (en) Task demand processing method, processing system and processing device
CN117336172A (en) Service data configuration method and device and electronic equipment

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