CN113783731A - Edge server control method, device, storage medium and electronic device - Google Patents

Edge server control method, device, storage medium and electronic device Download PDF

Info

Publication number
CN113783731A
CN113783731A CN202111082278.4A CN202111082278A CN113783731A CN 113783731 A CN113783731 A CN 113783731A CN 202111082278 A CN202111082278 A CN 202111082278A CN 113783731 A CN113783731 A CN 113783731A
Authority
CN
China
Prior art keywords
task
edge server
log
target
target interface
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
CN202111082278.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.)
Yunmao Internet Intelligent Technology Xiamen Co ltd
Original Assignee
Yunmao Internet Intelligent Technology Xiamen 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 Yunmao Internet Intelligent Technology Xiamen Co ltd filed Critical Yunmao Internet Intelligent Technology Xiamen Co ltd
Priority to CN202111082278.4A priority Critical patent/CN113783731A/en
Publication of CN113783731A publication Critical patent/CN113783731A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0883Semiautomatic configuration, e.g. proposals from system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a control method and device of an edge server, a storage medium and an electronic device. The control method of the edge server comprises the following steps: acquiring a task request for updating or upgrading an edge server; inquiring a task list corresponding to the edge server from a metadata base according to the task request; and sending the task list to the edge server so that the edge server executes target operation according to the task list, namely, the central server can remotely upgrade or deploy the edge server according to the task list inquired in the metadata base, thereby solving the technical problem of low upgrading and maintaining efficiency of each component of the edge server in the prior art.

Description

Edge server control method, device, storage medium and electronic device
Technical Field
The present invention relates to the field of computer related technologies, and in particular, to a method and an apparatus for controlling an edge server, a storage medium, and an electronic apparatus.
Background
With the development of internet technology, the application of remote control technology is wider and wider. First, a PC user with remote control capability can access information on the desktop hard drive, even through the enterprise's network resources when you are away from the office. How to remotely upgrade or deploy a desktop computer is increasingly important.
In the related art, an administrator logs on to a server in an edge network through SSH or a remote desktop, and needs to physically access to the edge network if no remote connection condition exists; the deployment process is performed manually or by script; after the execution is finished, the service state is checked manually, and the upgrading and deploying efficiency of the edge network is low.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a control method and device of an edge server, a storage medium and an electronic device, which are used for at least solving the technical problem that in the prior art, the upgrading and maintenance efficiency of each component of the edge server is low.
According to an aspect of an embodiment of the present invention, there is provided a method for controlling an edge server, including: acquiring a task request for updating or upgrading an edge server; inquiring a task list corresponding to the edge server from a metadata base according to the task request; and sending a task list to the edge server so that the edge server executes target operation according to the task list.
Optionally, after acquiring the task request of the edge server, the method includes: generating a task file according to the content carried by the task request; and creating a first target interface corresponding to the edge server according to the task file.
Optionally, after acquiring the task request of the edge server, the method further includes: and scheduling a second target interface which already exists corresponding to the edge server according to the task request, wherein the first target interface and the second target interface are the same or different.
Optionally, the method includes: receiving the task file after the first target interface or the second target interface is scheduled; splitting a content list in the task characters into task sub-lists; converting the task sub-list and the corresponding expected state into protocol content according to a preset protocol format and writing the protocol content into a message queue, wherein the expected state is used for representing the state which needs to be achieved by the edge server.
Optionally, after sending the task list to the edge server to enable the edge server to execute the target operation according to the task list, the method further includes: the first target interface receives a task message uploaded by the edge server, wherein the task message indicates that the edge server has executed the target operation; and modifying the task state corresponding to the edge server and the task log corresponding to the target operation in the first target interface according to the task message, wherein the task log is the log of the edge server in the process of executing the target operation.
Optionally, after the first target interface receives the task message uploaded by the edge server, the method includes: receiving the task log uploaded by the first target interface; and saving the task log to a target position.
Optionally, after saving the task log to the target location, the method further includes: and generating a report containing task information and a log address, wherein the task information comprises information of the target operation executed by the edge server, and the log address is used for downloading the task log from the target position.
According to another aspect of the embodiments of the present invention, there is also provided a control apparatus of an edge server, including: the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a task request for updating or upgrading an edge server; the query unit is used for querying a task list corresponding to the edge server from a metadata base according to the task request; and the sending unit is used for sending a task list to the edge server so that the edge server executes target operation according to the task list.
Optionally, the apparatus includes: the first generating unit is used for generating a task file according to the content carried by the task request after the task request of the edge server is acquired; and the creating unit is used for creating a first target interface corresponding to the edge server according to the task file.
Optionally, the apparatus further comprises: and a scheduling unit, configured to schedule, after the task request of the edge server is obtained, a second target interface that already exists in correspondence with the edge server according to the task request, where the first target interface and the second target interface are the same or different.
Optionally, the apparatus includes: a first receiving unit, configured to receive the task file after the first target interface or the second target interface is scheduled; the splitting unit is used for splitting the content list in the task characters into task sub-lists; and the writing unit is used for converting the task sub-list and the corresponding expected state into protocol content according to a preset protocol format and writing the protocol content into a message queue, wherein the expected state is used for representing the state which needs to be reached by the edge server.
Optionally, the apparatus further comprises: a second receiving unit, configured to send a task list to the edge server, so that after the edge server executes a target operation according to the task list, the first target interface receives a task message uploaded by the edge server, where the task message indicates that the edge server has executed the target operation; and a modifying unit, configured to modify, according to the task message, a task state corresponding to the edge server in the first target interface and a task log corresponding to the target operation, where the task log is a log of the edge server in the process of executing the target operation.
Optionally, the apparatus includes: a third receiving unit, configured to receive, by the first target interface, the task log uploaded by the first target interface after receiving the task message uploaded by the edge server; and the saving unit is used for saving the task log to a target position.
Optionally, the apparatus further comprises: and a second generating unit, configured to generate a report including task information and a log address after the task log is stored in the target location, where the task information includes information of the target operation executed by the edge server, and the log address is used to download the task log from the target location.
According to a first aspect of embodiments of the present application, there is provided a computer-readable storage medium, wherein a computer program is stored in the storage medium, wherein the computer program is configured to execute the control method of the edge server when running.
According to a first aspect of embodiments of the present application, there is provided an electronic apparatus, including a memory and a processor, wherein the memory stores therein a computer program, and the processor is configured to execute the computer program to perform the control method of the edge server.
In the embodiment of the invention, a task request for updating or upgrading the edge server is obtained; inquiring a task list corresponding to the edge server from a metadata base according to the task request; and sending the task list to the edge server so that the edge server executes target operation according to the task list, namely, the central server can remotely upgrade or deploy the edge server according to the task list inquired in the metadata base, thereby solving the technical problem of low upgrading and maintaining efficiency of each component of the edge server in the prior art.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a mobile terminal according to an alternative control method of an edge server according to an embodiment of the present invention;
FIG. 2 is a flow chart of an alternative method of controlling an edge server according to an embodiment of the invention;
FIG. 3 is a block diagram of an alternative method for automatic upgrade deployment of edge servers, according to an embodiment of the present invention;
fig. 4 is a diagram of an alternative control device for an edge server according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or 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 sequence 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.
The embodiment of the method for controlling the edge server provided by the embodiment of the application can be executed in a mobile terminal, a computer terminal or a similar arithmetic device. Taking the operation on the mobile terminal as an example, fig. 1 is a hardware structure block diagram of the mobile terminal of a control method of an edge server according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal 10 may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and optionally may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program and a module of an application software, such as a computer program corresponding to the control method of the edge server in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the method described above. The 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 instances, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile 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 device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
Fig. 2 is a flowchart of a control method of an edge server according to an embodiment of the present invention, and as shown in fig. 2, the flow of the control method of the edge server includes the following steps:
step S202, a task request for updating or upgrading the edge server is obtained.
And step S204, inquiring a task list corresponding to the edge server from the metadata base according to the task request.
Step S206, sending the task list to the edge server, so that the edge server executes the target operation according to the task list.
In this embodiment, the above-mentioned control method of the edge server may include, but is not limited to, being completed by the central server, the task node created by the central server.
In practical applications, a core server outside the edge network can push tasks to servers in the edge network, so that upgrade services can be automatically deployed even when the core server cannot be remotely connected to the edge network, wherein the central server is responsible for maintaining information of each edge network, such as project party names, deployed services, deployment states and other management information, and also contains descriptions of various services to be deployed in the edge network, such as scripts, container arrangement, environment variables and the like, so as to know where to deploy what services, how to deploy and the like when deploying.
According to the embodiment provided by the application, the task request for updating or upgrading the edge server is obtained; inquiring a task list corresponding to the edge server from a metadata base according to the task request; and sending the task list to the edge server so that the edge server executes target operation according to the task list, namely, the central server can remotely upgrade or deploy the edge server according to the task list inquired in the metadata base, thereby solving the technical problem of low upgrading and maintaining efficiency of each component of the edge server in the prior art.
Optionally, after acquiring the task request of the edge server, the method may include: generating a task file according to the content carried by the task request; and creating a first target interface corresponding to the edge server according to the task file.
In this embodiment, after receiving the action request, the central server queries corresponding edge network information from the metadata base according to the request content, generates a complete task file in combination with the request content, creates a first target interface or schedules an existing second target interface, identifies that the assignment has been delivered to the first target interface after success, and does not accept the homonym assignment initiated by the administrator before the assignment does not return to a well-agreed state.
Optionally, after acquiring the task request of the edge server, the method may further include: and scheduling a second target interface of the corresponding edge server according to the task request, wherein the first target interface and the second target interface are the same or different.
Optionally, the method may include: after the first target interface or the second target interface is scheduled, receiving a task file; splitting a content list in task characters into task sub-lists; converting the task sub-list and the corresponding expected state into protocol content according to a preset protocol format, and writing the protocol content into a message queue, wherein the expected state is used for representing the state which needs to be achieved by the edge server.
In this embodiment, after the first target interface or the second target interface is scheduled, the task file is received, the content list in the task file is split into a list with smaller task granularity, the list and the corresponding expected state are converted into protocol content according to a well-agreed protocol format and written into the message queue middleware, and the first target interface or the second target interface provides service continuously to the outside for the server in the edge network to query the list in the queue.
Optionally, after sending the task list to the edge server to enable the edge server to execute the target operation according to the task list, the method may further include: the method comprises the steps that a first target interface receives a task message uploaded by an edge server, wherein the task message indicates that the edge server executes target operation; and modifying the task state of the corresponding edge server in the first target interface and a task log corresponding to the target operation according to the task message, wherein the task log is a log of the edge server in the process of executing the target operation.
Optionally, after the first target interface receives the task message uploaded by the edge server, the method may include: receiving a task log uploaded by a first target interface; and saving the task log to the target position.
In this embodiment, once the interface returns to the task list, the server in the edge network continuously requests the interface in the core network, and starts to execute according to the task content, and executes the task message that will consume the message queue, and after each step of execution, informs the first target interface to modify the task state and the log of the execution process, if the execution is smooth, and after all tasks are in the expected state, the first target interface informs the central server that the assignment is completed but the archive log is not returned, and after the edge network server executes the last flag, the archive this task information and the full log are uploaded to the first target interface or the second target interface.
Optionally, after saving the task log to the target location, the method may include: and generating a report containing task information and a log address, wherein the task information comprises information of target operation executed by the edge server, and the log address is used for downloading the task log from a target position.
In this embodiment, after receiving the log uploaded by the edge network server, the first target interface or the second target interface stores the log to a designated location, and informs the central server that the log assigned this time has been returned, and a log download path, and the central server generates a report including task information and a log address and outputs the report to an administrator.
It should be noted that, the services of the edge network may use container deployment and kubernets management, so that the deployment process is simpler, and rollback is quicker when a fault occurs, but the deployment method using the patent is not limited to container deployment, and is also applicable to non-container deployment, and only needs to adjust the content in the task file according to the actual situation, for example, the content of the task file will be arranged and expanded around kubernets when using kubernets, and for non-container deployment, the method is similar to remote execution tools such as ansable.
As an optional embodiment, the present application further provides a method for automatically upgrading and deploying an edge server. As shown in fig. 3, a block diagram of a method for automatically upgrading and deploying an edge server is shown.
In this embodiment, the network service logic is deployed: by realizing the service of a server-agent architecture, a core server outside an edge network can push tasks to servers in the edge network, so that the upgrading service can be automatically deployed under the condition that the core server cannot be remotely connected to the edge network, wherein a Controller server is responsible for maintaining information of each edge network, such as project party names, deployed services, deployment states and other management information, and simultaneously contains descriptions of various services needing to be deployed in the edge network, such as scripts, container arrangement, environment variables and the like, so that the user can know where to deploy the services, how to deploy and the like during deployment. The Worker server receives the assignment of the Controller server, is responsible for arranging the deployment task list and communicates with the Agent in the edge network, and the Agent knows what task should be done through the Worker and finally completes the deployment work through the cooperation mode. Different edge network agents claim their task lists respectively without mutual interference.
The specific flow taking edge server deployment as an example is as follows.
Step 1, an administrator initiates a deployment action request;
step 2, after receiving the action request, the Controller server queries corresponding edge network information from a metadata base according to the request content, generates a complete manifest (equivalent to a task file) by combining the request content, creates a Worker (equivalent to a first target interface) or schedules an existing Worker instance (equivalent to a second target interface), and after success, identifies that the assignment is delivered to the Worker, and before the assignment does not return to a well-agreed state, the same-name assignment initiated by an administrator is not accepted;
step 3, after the Worker instance is scheduled, receiving the manifest, splitting a content list in the manifest into a list with smaller task granularity, converting the list and a corresponding expected state into protocol content according to an agreed protocol format, writing the protocol content into a message queue middleware, and continuously providing service for an Agent in the edge network to inquire the list in the queue by the Worker instance;
step 4, the Agent in the edge network continuously requests a Worker Endpoint in the core network, once the interface returns to the task list, the execution starts according to the task content, the execution will consume the task information in the message queue, after each step of execution, the Worker is informed to modify the task state and the log of the execution process, if the execution is smooth, after all the tasks are in the expected state, the Worker is informed that the assignment is completed but the filing log is not returned, and after the Agent finishes executing the last mark, the filing task information and the full log are uploaded to the Worker;
step 5, after the Worker receives the log uploaded by the Agent, the log is stored to a specified position, the Controller is informed that the log assigned this time is returned and a log downloading path is obtained, and the Controller generates a report containing task information and a log address and outputs the report to an administrator;
step 6, the services of the edge network can be deployed by using containers, Kubernets management is carried out, the deployment process is simpler, and rollback is quicker when a fault occurs, but the deployment method using the patent is not limited to container deployment and is also suitable for non-container deployment, and only the content in the manifest needs to be adjusted according to actual conditions, for example, the manifest content is arranged and expanded around the Kubernets when the Kubernets is used, and for the non-container deployment, the remote execution tools like ansile and the like are used.
By the embodiment provided by the application, the condition problem that a part in an edge network cannot be remotely accessed is solved; remote deployment can be realized only by the edge network accessing the core network; manual operation is partially automated, so that the human error rate is reduced, and the deployment efficiency is improved; the audit is easier.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a control device of an edge server is further provided, where the control device is used to implement the foregoing embodiments and preferred embodiments, and details are not repeated for what has been described. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 4 is a block diagram of a control apparatus of an edge server according to an embodiment of the present invention, and as shown in fig. 4, the control apparatus of the edge server includes:
an obtaining unit 41, configured to obtain a task request for updating or upgrading an edge server.
And the query unit 43 is configured to query the metadata base for the task list of the corresponding edge server according to the task request.
And a sending unit 45, configured to send the task list to the edge server, so that the edge server performs the target operation according to the task list.
By the embodiment provided by the application, the obtaining unit 41 obtains a task request for updating or upgrading the edge server; the query unit 43 queries a task list corresponding to the edge server from the metadata base according to the task request; the sending unit 45 sends the task list to the edge server, so that the edge server executes a target operation according to the task list, that is, the central server can remotely upgrade or deploy the edge server according to the task list queried in the metadata base, thereby solving the technical problem of low upgrading and maintaining efficiency of each component of the edge server in the prior art.
Optionally, the apparatus may include: the first generating unit is used for generating a task file according to the content carried by the task request after the task request of the edge server is acquired; and the creating unit is used for creating a first target interface corresponding to the edge server according to the task file.
Optionally, the apparatus may further include: and the scheduling unit is used for scheduling a second target interface which already exists in the corresponding edge server according to the task request after the task request of the edge server is obtained, wherein the first target interface and the second target interface are the same or different.
Optionally, the apparatus may include: the first receiving unit is used for receiving the task file after the first target interface or the second target interface is scheduled; the splitting unit is used for splitting the content list in the task characters into task sub-lists; and the writing unit is used for converting the task sub-list and the corresponding expected state into protocol content according to a preset protocol format and writing the protocol content into the message queue, wherein the expected state is used for representing the state which needs to be reached by the edge server.
Optionally, the apparatus may further include: the second receiving unit is used for sending the task list to the edge server so that the first target interface receives the task message uploaded by the edge server after the edge server executes the target operation according to the task list, wherein the task message indicates that the edge server executes the target operation; and the modifying unit is used for modifying the task state of the corresponding edge server in the first target interface and the task log corresponding to the target operation according to the task message, wherein the task log is the log of the edge server in the process of executing the target operation.
Optionally, the apparatus may include: the third receiving unit is used for receiving the task log uploaded by the first target interface after the first target interface receives the task message uploaded by the edge server; and the saving unit is used for saving the task log to the target position.
Optionally, the apparatus may further include: and the second generation unit is used for generating a report containing task information and a log address after the task log is stored in the target position, wherein the task information comprises information of target operation executed by the edge server, and the log address is used for downloading the task log from the target position.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, acquiring a task request for updating or upgrading the edge server;
s2, according to the task request, inquiring a task list corresponding to the edge server from the metadata base;
and S3, sending the task list to the edge server so that the edge server executes the target operation according to the task list.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring a task request for updating or upgrading the edge server;
s2, according to the task request, inquiring a task list corresponding to the edge server from the metadata base;
and S3, sending the task list to the edge server so that the edge server executes the target operation according to the task list.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (16)

1. A method for controlling an edge server, comprising:
acquiring a task request for updating or upgrading an edge server;
inquiring a task list corresponding to the edge server from a metadata base according to the task request;
and sending a task list to the edge server so that the edge server executes target operation according to the task list.
2. The method of claim 1, wherein after obtaining the task request of the edge server, the method comprises:
generating a task file according to the content carried by the task request;
and creating a first target interface corresponding to the edge server according to the task file.
3. The method of claim 1, wherein after obtaining the task request of the edge server, the method further comprises:
and scheduling a second target interface which already exists corresponding to the edge server according to the task request, wherein the first target interface and the second target interface are the same or different.
4. A method according to claim 2 or 3, characterized in that the method comprises:
receiving the task file after the first target interface or the second target interface is scheduled;
splitting a content list in the task characters into task sub-lists;
converting the task sub-list and the corresponding expected state into protocol content according to a preset protocol format and writing the protocol content into a message queue, wherein the expected state is used for representing the state which needs to be achieved by the edge server.
5. The method of claim 2, wherein after sending the task manifest to the edge server to cause the edge server to perform the target operation according to the task manifest, the method further comprises:
the first target interface receives a task message uploaded by the edge server, wherein the task message indicates that the edge server has executed the target operation;
and modifying the task state corresponding to the edge server and the task log corresponding to the target operation in the first target interface according to the task message, wherein the task log is the log of the edge server in the process of executing the target operation.
6. The method of claim 1, wherein after the first target interface receives the task message uploaded by the edge server, the method comprises:
receiving the task log uploaded by the first target interface;
and saving the task log to a target position.
7. The method of claim 6, wherein after saving the task log to a target location, the method further comprises:
and generating a report containing task information and a log address, wherein the task information comprises information of the target operation executed by the edge server, and the log address is used for downloading the task log from the target position.
8. A control apparatus of an edge server, comprising:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a task request for updating or upgrading an edge server;
the query unit is used for querying a task list corresponding to the edge server from a metadata base according to the task request;
and the sending unit is used for sending a task list to the edge server so that the edge server executes target operation according to the task list.
9. The apparatus of claim 8, wherein the apparatus comprises:
the first generating unit is used for generating a task file according to the content carried by the task request after the task request of the edge server is acquired;
and the creating unit is used for creating a first target interface corresponding to the edge server according to the task file.
10. The apparatus of claim 8, further comprising:
and a scheduling unit, configured to schedule, after the task request of the edge server is obtained, a second target interface that already exists in correspondence with the edge server according to the task request, where the first target interface and the second target interface are the same or different.
11. The apparatus according to claim 9 or 10, characterized in that it comprises:
a first receiving unit, configured to receive the task file after the first target interface or the second target interface is scheduled;
the splitting unit is used for splitting the content list in the task characters into task sub-lists;
and the writing unit is used for converting the task sub-list and the corresponding expected state into protocol content according to a preset protocol format and writing the protocol content into a message queue, wherein the expected state is used for representing the state which needs to be reached by the edge server.
12. The apparatus of claim 11, further comprising:
a second receiving unit, configured to send a task list to the edge server, so that after the edge server executes a target operation according to the task list, the first target interface receives a task message uploaded by the edge server, where the task message indicates that the edge server has executed the target operation;
and a modifying unit, configured to modify, according to the task message, a task state corresponding to the edge server in the first target interface and a task log corresponding to the target operation, where the task log is a log of the edge server in the process of executing the target operation.
13. The apparatus of claim 8, wherein the apparatus comprises:
a third receiving unit, configured to receive, by the first target interface, the task log uploaded by the first target interface after receiving the task message uploaded by the edge server;
and the saving unit is used for saving the task log to a target position.
14. The apparatus of claim 13, further comprising:
and a second generating unit, configured to generate a report including task information and a log address after the task log is stored in the target location, where the task information includes information of the target operation executed by the edge server, and the log address is used to download the task log from the target location.
15. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to carry out the method of any one of claims 1 to 7 when executed.
16. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 7.
CN202111082278.4A 2021-09-15 2021-09-15 Edge server control method, device, storage medium and electronic device Pending CN113783731A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111082278.4A CN113783731A (en) 2021-09-15 2021-09-15 Edge server control method, device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111082278.4A CN113783731A (en) 2021-09-15 2021-09-15 Edge server control method, device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN113783731A true CN113783731A (en) 2021-12-10

Family

ID=78844217

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111082278.4A Pending CN113783731A (en) 2021-09-15 2021-09-15 Edge server control method, device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113783731A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090259667A1 (en) * 2007-05-21 2009-10-15 Huawei Technologies Co., Ltd. Method, device and system for distributing file data
CN107133086A (en) * 2016-02-29 2017-09-05 阿里巴巴集团控股有限公司 Task processing method, device and system based on distributed system
US20190104173A1 (en) * 2017-10-02 2019-04-04 Fujitsu Limited Distributed process management system, distributed process management method, and information processing apparatus
CN109861842A (en) * 2018-11-23 2019-06-07 阿里巴巴集团控股有限公司 O&M method, apparatus, electronic equipment and the storage medium of server cluster
CN110191007A (en) * 2019-06-27 2019-08-30 广州虎牙科技有限公司 Node administration method, system and computer readable storage medium
CN110532077A (en) * 2019-08-22 2019-12-03 腾讯科技(深圳)有限公司 Task processing method, device and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090259667A1 (en) * 2007-05-21 2009-10-15 Huawei Technologies Co., Ltd. Method, device and system for distributing file data
CN107133086A (en) * 2016-02-29 2017-09-05 阿里巴巴集团控股有限公司 Task processing method, device and system based on distributed system
US20190104173A1 (en) * 2017-10-02 2019-04-04 Fujitsu Limited Distributed process management system, distributed process management method, and information processing apparatus
CN109861842A (en) * 2018-11-23 2019-06-07 阿里巴巴集团控股有限公司 O&M method, apparatus, electronic equipment and the storage medium of server cluster
CN110191007A (en) * 2019-06-27 2019-08-30 广州虎牙科技有限公司 Node administration method, system and computer readable storage medium
CN110532077A (en) * 2019-08-22 2019-12-03 腾讯科技(深圳)有限公司 Task processing method, device and storage medium

Similar Documents

Publication Publication Date Title
CN106548262B (en) Scheduling method, device and system for resources for processing tasks
CN110248355B (en) Internet of things equipment eUICC card-based code number management method, equipment, platform and system
CN109582466A (en) A kind of timed task executes method, distributed server cluster and electronic equipment
CN110187912B (en) Node selection method and device
US20120005325A1 (en) Systems and methods for automated processing of devices
CN103019757A (en) Method, device and system for synchronizing software among multiple clients
CN109120444B (en) Cloud resource management method, processor and storage medium
WO2016026329A1 (en) Terminal upgrade method and apparatus
CN114546588A (en) Task deployment method and device, storage medium and electronic device
CN113687932A (en) Task scheduling method, device and system, electronic equipment and storage medium
CN107526584B (en) Data access method and device
CN110569129A (en) Resource allocation method and device, storage medium and electronic device
CN115357198B (en) Mounting method and device of storage volume, storage medium and electronic equipment
CN113783731A (en) Edge server control method, device, storage medium and electronic device
CN110620754B (en) NF (NF) required resource deployment method and device, storage medium and electronic device
EP4162649A1 (en) Stable references for network function life cycle management automation
CN112130864A (en) Deployment method and deployment device of private cloud platform service software
CN114675940A (en) Application instance construction method, device and equipment
CN111694807B (en) Processing method, system, equipment and storage medium of nonvolatile storage file
CN115543491A (en) Microservice processing method and device
CN112698948A (en) Method and device for acquiring product resources, storage medium and electronic device
CN114443059A (en) Kubernets cluster deployment method, device and equipment
CN112394946A (en) Operation and maintenance platform based on DevOps background
CN112650815A (en) Method and device for synchronizing environmental data, storage medium and electronic device
CN112199161A (en) Cloud platform service management method and device and related components

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20211210