CN114222001A - Edge device, edge device method, edge device system, electronic device, and storage medium - Google Patents
Edge device, edge device method, edge device system, electronic device, and storage medium Download PDFInfo
- Publication number
- CN114222001A CN114222001A CN202111511569.0A CN202111511569A CN114222001A CN 114222001 A CN114222001 A CN 114222001A CN 202111511569 A CN202111511569 A CN 202111511569A CN 114222001 A CN114222001 A CN 114222001A
- Authority
- CN
- China
- Prior art keywords
- task
- edge device
- server
- configuration information
- file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 238000012217 deletion Methods 0.000 claims abstract description 45
- 230000037430 deletion Effects 0.000 claims abstract description 45
- 230000004044 response Effects 0.000 claims abstract description 12
- 238000004891 communication Methods 0.000 claims description 14
- 238000004590 computer program Methods 0.000 claims description 14
- 238000012545 processing Methods 0.000 abstract description 9
- 238000005516 engineering process Methods 0.000 abstract description 7
- 238000010586 diagram Methods 0.000 description 9
- 238000004140 cleaning Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 238000012937 correction Methods 0.000 description 4
- 238000013459 approach Methods 0.000 description 3
- 239000003795 chemical substances by application Substances 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000013473 artificial intelligence Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000007689 inspection Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000000717 retained effect Effects 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000010267 cellular communication Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000003708 edge detection Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000011017 operating method Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 230000002123 temporal effect Effects 0.000 description 1
- 238000012549 training Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present disclosure provides a method for an edge device, and relates to a data processing technology, in particular to a cloud computing technology. The implementation scheme is as follows: the method is performed by a gateway proxy disposed on an edge device and includes: the method comprises the steps of obtaining a task to be executed and configuration information associated with the task from a server; downloading files required for executing the task to the edge device based on the configuration information; and in response to determining that the task is performed, determining whether to delete the configuration information and/or the file in the edge device based on a deletion policy received from the server that is specific to the task.
Description
Technical Field
The present disclosure relates to data processing technology, in particular to cloud computing technology, and in particular to a method for an edge device, an edge computing system, an electronic device, a computer-readable storage medium, and a computer program product.
Background
Cloud computing (cloud computing) refers to a technology architecture that accesses a flexibly extensible shared physical or virtual resource pool through a network, where resources may include servers, operating systems, networks, software, applications, storage devices, and the like, and may be deployed and managed in an on-demand, self-service manner. Through the cloud computing technology, high-efficiency and strong data processing capacity can be provided for technical application and model training of artificial intelligence, block chains and the like.
Unlike cloud devices, edge devices are generally limited in storage resources and network bandwidth, and therefore invalid files in the edge devices need to be cleaned in time.
The approaches described in this section are not necessarily approaches that have been previously conceived or pursued. Unless otherwise indicated, it should not be assumed that any of the approaches described in this section qualify as prior art merely by virtue of their inclusion in this section. Similarly, unless otherwise indicated, the problems mentioned in this section should not be considered as having been acknowledged in any prior art.
Disclosure of Invention
The present disclosure provides an edge device, an edge device operating method, an edge computing system, an electronic device, a computer-readable storage medium, and a computer program product.
According to an aspect of the present disclosure, there is provided a method for an edge device, wherein a gateway proxy is provided on the edge device, the method being performed by the gateway proxy and comprising: the method comprises the steps of obtaining a task to be executed and configuration information associated with the task from a server; downloading files required for executing the task to the edge device based on the configuration information; and in response to determining that the task is performed, determining whether to delete the configuration information and/or the file in the edge device based on a deletion policy received from the server that is specific to the task.
According to another aspect of the present disclosure, an edge device is provided, and the edge device is provided with a gateway proxy, wherein the gateway proxy further includes: an acquisition module configured to acquire a task to be executed and configuration information associated with the task from a server; a downloading module configured to download a file required to execute the task to the edge device based on the configuration information; and a deletion module configured to determine whether to delete the configuration information and/or the file in the edge device based on a deletion policy specific to the task received from the server in response to determining that the task is executed.
According to another aspect of the present disclosure, there is provided an edge computing system comprising a server and an edge device, wherein the edge device is provided with a gateway proxy thereon, and wherein the server is configured to: creating a task for the edge device; determining configuration information associated with the task; and determining a deletion policy specific to the task; the gateway proxy configured to: acquiring the task and the configuration information, and downloading files required for executing the task to the edge device based on the configuration information; and in response to determining that the task is performed, determining whether to delete the configuration information and/or the file in the edge device based on the deletion policy received from the server.
According to one or more embodiments of the present disclosure, invalid resources in an edge device can be efficiently cleaned.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments of the embodiments and, together with the description, serve to explain the exemplary implementations of the embodiments. The illustrated embodiments are for purposes of illustration only and do not limit the scope of the claims. Throughout the drawings, identical reference numbers designate similar, but not necessarily identical, elements.
Fig. 1 shows a flow diagram of a method for an edge device according to an embodiment of the present disclosure;
FIG. 2 illustrates one example of a method for an edge device according to an embodiment of the present disclosure;
fig. 3 shows a block diagram of a gateway proxy disposed at an edge device according to an embodiment of the present disclosure;
FIG. 4 shows a block diagram of an edge computing system, according to an embodiment of the present disclosure; and
FIG. 5 illustrates a block diagram of an exemplary electronic device that can be used to implement embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In the present disclosure, unless otherwise specified, the use of the terms "first", "second", and the like to describe various elements is not intended to limit the positional relationship, the temporal relationship, or the importance relationship of the elements, and such terms are used only to distinguish one element from another. In some examples, a first element and a second element may refer to the same instance of the element, and in some cases, based on the context, they may also refer to different instances.
The terminology used in the description of the various described examples in this disclosure is for the purpose of describing particular examples only and is not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the elements may be one or more. Furthermore, the term "and/or" as used in this disclosure is intended to encompass any and all possible combinations of the listed items.
Embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
Fig. 1 shows a flow diagram of a method for an edge device according to an embodiment of the present disclosure.
As shown in fig. 1, a gateway proxy is disposed on the edge device, and the method is performed by the gateway proxy and includes: step S101, acquiring a task to be executed and configuration information associated with the task from a server; step S102, downloading files required by executing the task to the edge device based on the configuration information; and step S103, in response to the task is determined to be executed, determining whether to delete the configuration information and/or the file in the edge device based on a deletion strategy which is received from the server and is specific to the task.
The gateway proxy function module is arranged on the edge device to uniformly manage a plurality of applications on the edge device, so that the problem that related files cannot be deleted after a task is stopped or files which can still be used in the future are deleted is solved.
The reason why the configuration information is set by the server is that the edge device is limited to its own hardware resources, cannot obtain appropriate configuration information, and needs to set appropriate configuration information for the task using a server rich in hardware resources.
The gateway agent is a functional module arranged on the edge device and manages a plurality of applications on the edge device in a unified manner. Since the gateway proxy is independent of the task on the edge device and does not stop with the task, deletion of the relevant files after the task stops is realized.
It is noted that in the present disclosure, a "task" may be understood as a process performed by an edge device, including running an application, and a "server" may include a cloud device.
Wherein, the deletion policy (or, the cleaning policy) may include: deleting tasks and configuration information in the edge device; the task and configuration information is retained in the edge device. And when the server judges that the task can not be used any more in the future, setting the deletion strategy as the deletion task and the configuration information. And when the server judges that the task is still used in the future or the running of other tasks comprises the task, setting the deletion strategy as the reserved task and the configuration information. By reserving the effective tasks, the same tasks do not need to be downloaded repeatedly, and the waste of network bandwidth is avoided.
Illustratively, the configuration information may include a download address of the task. The gateway proxy can select the appropriate time to access the download address to download the file required for the task. In general, the size of the download address is much smaller than that of the application, and the edge device can acquire the download address at a lower cost and select a time point when the network is not crowded to download the application, thereby improving the utilization efficiency of the network bandwidth.
In addition, the configuration information may also include an installation path of the task or application on the edge device. The gateway agent can quickly locate the storage position of the task according to the path without scanning the whole storage equipment, thereby accelerating the inspection of the task state.
According to some embodiments, in the case of a task running, the task is skipped directly, and it is checked whether the next task is executed completely. The system abnormity caused by deleting the files related to the task when the task runs is avoided, and the stability of the system is ensured.
According to some embodiments, the execution of the task is sent to the server for the server to adjust the deletion policy. In some cases, the frequency of use of a task may change, for example, an increase in frequency of use indicates that the task may be continued in the future, requiring the task to be preserved. The gateway agent sends the conditions of the use frequency and the like to the service, and the server adjusts a new deletion strategy according to the change of the use frequency, so that the deletion strategy can be more accurately adapted to the current running state of the edge device.
According to some embodiments, a communication connection is maintained with the server to obtain the deletion policy in real time. The connection protocol used for the communication connection between the edge device and the cloud includes, but is not limited to, HTTP, HTTPS, AMQP, MQTT, WebSocket, QUIC and the like, so that the timeliness of information is guaranteed, and the deletion strategy is more accurate.
According to some embodiments, in case the gateway proxy is disconnected from the server, the gateway proxy deletes the configuration information and/or the file in the edge device according to the previous cleaning policy, thereby avoiding interruption of cleaning.
According to some embodiments, determining whether the file has been stored by the edge device based on the configuration information; and skipping downloading the file in response to determining that the file has been stored by the edge device. In the process of downloading the file, the gateway proxy can check whether the device already downloads the file, if other applications have downloaded the file before, the step can be skipped, and the file can be directly shared with the applications, so that the time required by downloading is saved, and the starting of the applications is accelerated.
According to some embodiments, the configuration information comprises execution information required in the course of executing a task, and wherein the deletion policy comprises sub-policies for the stored information and the execution information, respectively. The execution information is information required for the task to run, such as a legal verification code and the like. Typically, the authentication code is not generic information for all applications and will not be reused in the future. The server makes a deletion strategy with finer granularity aiming at the execution information such as the verification codes and the like, so that the invalid file is deleted accurately.
According to some embodiments, the deletion policy comprises a time threshold and/or a file size threshold. When the deletion strategy is configured, the file is set to be cleaned only when the file reaches a certain size or is stored for a certain time. For example, for log class files, it can be appreciated that recent logs are more valuable to use than earlier logs. In this case, according to the length of the log storage time, the recent log with a short storage time may be retained, and the early log with a long storage time may be deleted. The deletion strategy can be flexibly formulated, and whether the relevant files are deleted or not can be judged from the dimension of time and/or file size.
According to some embodiments, it is detected at predetermined intervals whether the task is performed completely. For example, if the storage space of the edge device is small, the predetermined time interval is reduced, the frequency of the gateway proxy for checking the tasks is increased, and it can be ensured that the task execution condition is fed back as soon as possible, and the related files are deleted in time/the deletion strategy is updated.
Fig. 2 illustrates one example of a method for an edge device according to an embodiment of the present disclosure.
Hereinafter, an operation method of an edge device will be described in detail with reference to fig. 2, and in the following description, for convenience of understanding, the gateway proxy and the edge device will be collectively referred to as an "edge", the configuration information will be referred to as a "configuration item", the task will be referred to as an "application", and a file required for the task will be referred to as a "file". In this embodiment, the task performed is to run some kind of application.
Step S201: the cloud creates or configures the application.
In step S201, the cloud acts as a server, stores a plurality of tasks for downloading and use by the edge device, and sets configuration items of the tasks.
Step S202: the edge sync is applied and stored.
In step S202, after configuring the configuration item, the cloud end issues a part of the configuration item to the edge, where the part includes a download address of the application. And reading the download address by the edge, and downloading the application from the cloud, thereby completing the synchronization of the application.
Step S203: and synchronizing the configuration items and the files by the edge and starting the application.
In step S203, in order to start the application, parameters need to be configured for the application. The parameter is stored in the configuration item in the cloud. The edge device may download the parameters together through the download address, but the disclosure is not limited thereto. An application is started when both configuration items and applications are present in the edge device.
Step S204: edge detection has all ceased to be applied.
In step S204, after the edge starts the application, the edge records the application as a check target, and checks the running status of the application at regular time.
Step S205: and whether the application configuration items and the files are cleared or not.
In step S205, after the application of the inspection target stops running, the edge reads the configuration item of the application and determines a deletion policy in the configuration item, where the deletion policy is pre-configured by the cloud in step S301. Since the cloud stores a large number of applications and manages the applications in a unified manner, the cloud can know which files are commonly used by a plurality of applications or will be used again in the future. Therefore, the cloud can select to reserve a file commonly used by the plurality of applications, and configure the deletion strategy of the configuration item corresponding to the file not to be cleaned. After the edge is read and is not cleaned, the file can be reserved, and repeated downloading of the file is avoided.
Step S206: cleaning no longer uses files.
If the cloud determines that the application is not used again in step S201 and the file related to the application is not used by other applications, the cloud configures the configuration items of the application and the file to be cleaned up. In step S206, when the edge device reads for cleaning, the file and the application are deleted from the edge device.
Fig. 3 shows a block diagram of a gateway proxy disposed on an edge device according to an embodiment of the present disclosure.
According to an aspect of the present disclosure, an edge device is disclosed, on which a gateway proxy 300 is disposed, wherein the gateway proxy further includes: an obtaining module 301 configured to obtain a task to be executed and configuration information associated with the task from a server; a downloading module 302 configured to download files required to execute the task to the edge device based on the configuration information; and a deletion module 303 configured to determine whether to delete the configuration information and/or the file in the edge device based on a deletion policy specific to the task received from the server in response to determining that the task is executed.
According to some embodiments, the gateway proxy 300 is configured to send an execution of the task to the server, the execution being used by the server to adjust the deletion policy.
According to some embodiments, the gateway proxy 300 is configured to detect whether the task is performed at predetermined intervals.
FIG. 4 shows a block diagram of an edge computing system 400 according to an embodiment of the present disclosure.
According to one aspect of the present disclosure, an edge computing system 400 is disclosed, comprising a server 401 and an edge device 403, wherein the edge device 403 is provided with a gateway proxy 402, and wherein the server 401 is configured for: creating a task for the edge device 403; determining configuration information associated with the task; and determining a deletion policy specific to the task; the gateway proxy 402 configured to: acquiring the task and the configuration information, and downloading a file required for executing the task to the edge device 403 based on the configuration information; and in response to determining that the task is performed, determining whether to delete the configuration information and/or the file in the edge device 403 based on the deletion policy received from the server 401.
According to some embodiments, the gateway proxy 402 is configured to send an execution of the task to the server 401, and wherein the server 401 is configured to adjust the deletion policy based on the execution.
According to some embodiments, the gateway proxy 402 is configured to maintain a communication connection with the server 401 to obtain the deletion policy in real time.
According to an aspect of the present disclosure, there is also disclosed an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method described above.
According to an aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the above method is also disclosed.
According to an aspect of the disclosure, a computer program product is also disclosed, comprising a computer program, wherein the computer program realizes the above method when executed by a processor.
Referring to fig. 5, a block diagram of a structure of an electronic device 500, which may be a server or a client of the present disclosure, which is an example of a hardware device that may be applied to aspects of the present disclosure, will now be described. Electronic device is intended to represent various forms of digital electronic computer devices, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 5, the apparatus 500 comprises a computing unit 501 which may perform various appropriate actions and processes in accordance with a computer program stored in a Read Only Memory (ROM)502 or a computer program loaded from a storage unit 508 into a Random Access Memory (RAM) 503. In the RAM503, various programs and data required for the operation of the device 500 can also be stored. The calculation unit 501, the ROM 502, and the RAM503 are connected to each other by a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
A number of components in the device 500 are connected to the I/O interface 505, including: an input unit 506, an output unit 507, a storage unit 508, and a communication unit 509. The input unit 506 may be any type of device capable of inputting information to the device 500, and the input unit 506 may receive input numeric or character information and generate key signal inputs related to user settings and/or function controls of the electronic device, and may include, but is not limited to, a mouse, a keyboard, a touch screen, a track pad, a track ball, a joystick, a microphone, and/or a remote controller. Output unit 507 may be any type of device capable of presenting information and may include, but is not limited to, a display, speakers, a video/audio output terminal, a vibrator, and/or a printer. The storage unit 508 may include, but is not limited to, a magnetic disk, an optical disk. The communication unit 509 allows the device 500 to pass through a computer network such as the internet and/or various telecommunication networksThe network exchanges information/data with other devices and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver, and/or a chipset, such as bluetoothTMDevices, 802.11 devices, WiFi devices, WiMax devices, cellular communication devices, and/or the like.
The computing unit 501 may be a variety of general-purpose and/or special-purpose processing components having processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 501 performs the respective methods and processes described above, such as the proper noun error correction method. For example, in some embodiments, the proper noun error correction method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 500 via the ROM 502 and/or the communication unit 509. When the computer program is loaded into RAM503 and executed by the computing unit 501, one or more steps of the proper noun error correction method described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform proper noun error correction methods by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be performed in parallel, sequentially or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
Although embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it is to be understood that the above-described methods, systems and apparatus are merely exemplary embodiments or examples and that the scope of the present invention is not limited by these embodiments or examples, but only by the claims as issued and their equivalents. Various elements in the embodiments or examples may be omitted or may be replaced with equivalents thereof. Further, the steps may be performed in an order different from that described in the present disclosure. Further, various elements in the embodiments or examples may be combined in various ways. It is important that as technology evolves, many of the elements described herein may be replaced with equivalent elements that appear after the present disclosure.
Claims (16)
1. A method for an edge device having a gateway proxy disposed thereon, the method performed by the gateway proxy and comprising:
the method comprises the steps of obtaining a task to be executed and configuration information associated with the task from a server;
downloading files required for executing the task to the edge device based on the configuration information; and
in response to determining that the task is performed, determining whether to delete the configuration information and/or the file in the edge device based on a deletion policy received from the server that is specific to the task.
2. The method of claim 1, further comprising:
and sending the execution condition of the task to the server so that the server can adjust the deletion strategy.
3. The method of claim 1 or 2, further comprising:
and maintaining communication connection with the server to acquire the deletion strategy in real time.
4. The method of any of claims 1 to 3, further comprising:
determining whether the file is stored by the edge device based on the configuration information; and
skipping downloading the file in response to determining that the file has already been stored by the edge device.
5. The method of any of claims 1-4, wherein the configuration information includes execution information needed in the course of executing a task, and wherein the deletion policy includes sub-policies for the stored information and the execution information, respectively.
6. The method of any of claims 1-5, wherein the deletion policy comprises a time threshold and/or a file size threshold.
7. The method of any of claims 1 to 6, further comprising:
and detecting whether the task is executed completely according to a preset interval.
8. An edge device having a gateway proxy disposed thereon, wherein the gateway proxy further comprises:
an acquisition module configured to acquire a task to be executed and configuration information associated with the task from a server;
a downloading module configured to download a file required to execute the task to the edge device based on the configuration information; and
a deletion module configured to determine whether to delete the configuration information and/or the file in the edge device based on a deletion policy specific to the task received from the server in response to determining that the task is executed.
9. The edge device of claim 8, wherein the gateway proxy is configured to send an execution of the task to the server, the execution for the server to adjust the deletion policy.
10. The edge device of claim 8 or 9, wherein the gateway proxy is configured to detect whether the task is performed at predetermined intervals.
11. An edge computing system comprising a server and an edge device, wherein the edge device has a gateway proxy disposed thereon, and wherein,
the server configured to:
creating a task for the edge device;
determining configuration information associated with the task; and
determining a deletion policy specific to the task;
the gateway proxy configured to:
acquiring the task and the configuration information, and downloading files required for executing the task to the edge device based on the configuration information; and
in response to determining that the task is performed, determining whether to delete the configuration information and/or the file in the edge device based on the deletion policy received from the server.
12. The edge computing system of claim 11, wherein the gateway proxy is configured to send performance of the task to the server, and wherein,
the server is configured to adjust the deletion policy based on the execution.
13. The edge computing system of claim 11 or 12, wherein the gateway proxy is configured to maintain a communication connection with the server to obtain the deletion policy in real-time.
14. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 7.
15. A non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of any one of claims 1 to 7.
16. A computer program product comprising a computer program, wherein the computer program realizes the method according to any one of claims 1 to 7 when executed by a processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111511569.0A CN114222001B (en) | 2021-12-06 | 2021-12-06 | Edge device, edge device method, edge device system, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111511569.0A CN114222001B (en) | 2021-12-06 | 2021-12-06 | Edge device, edge device method, edge device system, electronic device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114222001A true CN114222001A (en) | 2022-03-22 |
CN114222001B CN114222001B (en) | 2024-03-15 |
Family
ID=80701014
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111511569.0A Active CN114222001B (en) | 2021-12-06 | 2021-12-06 | Edge device, edge device method, edge device system, electronic device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114222001B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150180963A1 (en) * | 2012-08-19 | 2015-06-25 | Box, Inc. | Enhancement of upload and/or download performance based on client and/or server feedback information |
CN109889862A (en) * | 2019-03-08 | 2019-06-14 | 北京奇艺世纪科技有限公司 | A kind of method of video distribution and system |
CN110471897A (en) * | 2019-08-22 | 2019-11-19 | 湖南快乐阳光互动娱乐传媒有限公司 | File management method and device |
CN110809043A (en) * | 2019-11-01 | 2020-02-18 | 腾讯科技(深圳)有限公司 | Data processing method, device, equipment and storage medium based on Internet of things |
CN113312072A (en) * | 2021-06-11 | 2021-08-27 | 北京百度网讯科技有限公司 | Configuration file updating method and device, electronic equipment and medium |
CN113721938A (en) * | 2021-08-20 | 2021-11-30 | 国网电力科学研究院有限公司 | Edge-edge cooperative task processing method, device and system suitable for power Internet of things |
-
2021
- 2021-12-06 CN CN202111511569.0A patent/CN114222001B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150180963A1 (en) * | 2012-08-19 | 2015-06-25 | Box, Inc. | Enhancement of upload and/or download performance based on client and/or server feedback information |
CN109889862A (en) * | 2019-03-08 | 2019-06-14 | 北京奇艺世纪科技有限公司 | A kind of method of video distribution and system |
CN110471897A (en) * | 2019-08-22 | 2019-11-19 | 湖南快乐阳光互动娱乐传媒有限公司 | File management method and device |
CN110809043A (en) * | 2019-11-01 | 2020-02-18 | 腾讯科技(深圳)有限公司 | Data processing method, device, equipment and storage medium based on Internet of things |
CN113312072A (en) * | 2021-06-11 | 2021-08-27 | 北京百度网讯科技有限公司 | Configuration file updating method and device, electronic equipment and medium |
CN113721938A (en) * | 2021-08-20 | 2021-11-30 | 国网电力科学研究院有限公司 | Edge-edge cooperative task processing method, device and system suitable for power Internet of things |
Also Published As
Publication number | Publication date |
---|---|
CN114222001B (en) | 2024-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11012503B2 (en) | Application deployment engine | |
CN108427616B (en) | Background program monitoring method and monitoring device | |
KR20210027400A (en) | Implementation of compliance settings by mobile devices to comply with configuration scenarios | |
CN113900834B (en) | Data processing method, device, equipment and storage medium based on Internet of things technology | |
US10404568B2 (en) | Agent manager for distributed transaction monitoring system | |
CN112925651A (en) | Application resource deployment method, device, electronic equipment and medium | |
CN113312072A (en) | Configuration file updating method and device, electronic equipment and medium | |
CN107644075B (en) | Method and device for collecting page information | |
US20190340036A1 (en) | Digital Processing System for Event and/or Time Based Triggering Management, and Control of Tasks | |
CN112925652A (en) | Application resource deployment method, device, electronic equipment and medium | |
CN112612513A (en) | Message middleware upgrading method and device, computer equipment and storage medium | |
CN109828830B (en) | Method and apparatus for managing containers | |
CN109144596B (en) | Quick starting method, device, terminal, server and system | |
CN113067769B (en) | Router restarting method, device, equipment and storage medium | |
CN112965799A (en) | Task state prompting method and device, electronic equipment and medium | |
CN112732312A (en) | Method and device for updating application program, electronic equipment and medium | |
CN111930565A (en) | Process fault self-healing method, device and equipment for components in distributed management system | |
CN114222001A (en) | Edge device, edge device method, edge device system, electronic device, and storage medium | |
CN113138772B (en) | Construction method and device of data processing platform, electronic equipment and storage medium | |
CN112925623A (en) | Task processing method and device, electronic equipment and medium | |
CN113691628A (en) | Task switching method and device, system, electronic equipment and computer medium | |
CN113872808B (en) | Application processing method and device | |
CN113676434A (en) | Network resource fusing method and device, electronic equipment and storage medium | |
CN117061433A (en) | Current limiting deployment method and device, electronic equipment and readable storage medium | |
CN112600932B (en) | Quantitative issuing method, console, issuing node, device and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |