WO2023055295A2 - Method and apparatus for task writing in edge terminal, terminal, and readable storage medium - Google Patents

Method and apparatus for task writing in edge terminal, terminal, and readable storage medium Download PDF

Info

Publication number
WO2023055295A2
WO2023055295A2 PCT/SG2022/050691 SG2022050691W WO2023055295A2 WO 2023055295 A2 WO2023055295 A2 WO 2023055295A2 SG 2022050691 W SG2022050691 W SG 2022050691W WO 2023055295 A2 WO2023055295 A2 WO 2023055295A2
Authority
WO
WIPO (PCT)
Prior art keywords
task
edge terminal
target
writing speed
writing
Prior art date
Application number
PCT/SG2022/050691
Other languages
French (fr)
Other versions
WO2023055295A3 (en
Inventor
Yang Zhang
Changdong CUI
Jialin QIAN
Meng CHAI
Original Assignee
Envision Digital International Pte. Ltd.
Spic Envision Digital (Jiangsu) 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 Envision Digital International Pte. Ltd., Spic Envision Digital (Jiangsu) Co. Ltd. filed Critical Envision Digital International Pte. Ltd.
Publication of WO2023055295A2 publication Critical patent/WO2023055295A2/en
Publication of WO2023055295A3 publication Critical patent/WO2023055295A3/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching

Definitions

  • the present disclosure relates to the field of Internet of things (loT) technologies, and in particular, relates to a method and apparatus for task writing in an edge terminal, a device, and a readable storage medium.
  • LoT Internet of things
  • Message queues are used for inter-process communications for asynchronous processing of tasks to improve an overall performance of the system.
  • a publisher publishes a task to a message queue, and a subscriber takes out the task from the message queue and processes the task where the subscriber has a demand or is idle. During this process, the subscriber has to write the task.
  • the subscriber of task is implemented as a plurality of edge terminals in a same edge terminal group.
  • the plurality of edge terminals simultaneously acquire the task from the message queue and write the task locally for backup.
  • Embodiments of the present disclosure provide a method and apparatus for task writing in an edge terminal, a device, and a readable storage medium, which may improve the work efficiency of an edge terminal group.
  • a method for task writing in an edge terminal includes:
  • determining a target task wherein the target task is a task currently in a writing process in a target edge terminal
  • determining a candidate edge terminal wherein the candidate edge terminal and the target edge terminal are in a same edge terminal group, the edge terminal group including at least two edge terminals
  • an apparatus for determining a service level agreement includes:
  • a determining module configured to determine a target task, wherein the target task is a task currently in a writing process in a target edge terminal;
  • the determining module is further configured to determine a candidate edge terminal, wherein the candidate edge terminal and the target edge terminal are in a same edge terminal group, the edge terminal group including at least two edge terminals;
  • the determining module is further configured to determine a first task transfer scheme of the target task based on a first current writing speed in the target edge terminal and a second current writing speed in the candidate edge terminal;
  • a transferring module configured to transfer the target task to the candidate edge terminal based on the first task transfer scheme.
  • a computer device includes a processor and a writer device, wherein the writer device stores at least one instraction, at least one program, a code set, or an instruction set, wherein the processor, when loading and executing the at least one instruction, tire at least one program, tire code set, or the instruction set, is caused to perform the method for task writing in an edge terminal as described above.
  • a non-transitory computer-readable storage medium stores at least one instruction, at least one program, a code set, or an instruction set, wherein the at least one instruction, the at least one program, the code set, or the instruction set, when loaded and executed by a processor of a computer device, cause the computer device to perform the method for task writing in an edge terminal as described above.
  • a computer program product or a computer program includes one or more computer instructions, and the one or more computer instructions are stored in a non-transitory computer-readable storage medium.
  • the one or more computer instructions when loaded and executed by a process of a computer device, cause the computer device to perform the method for task writing in an edge terminal as described above.
  • the task transfer scheme is determined based on the writing speeds of the target edge terminal and the candidate edge terminal, and the target task being currently written by the target edge terminal is transferred according to the first task scheme corresponding to the task transfer scheme.
  • the task transfer scheme is determined based on the writing speeds of the target edge terminal and the candidate edge terminal, and the target task being currently written by the target edge terminal is transferred according to the first task scheme corresponding to the task transfer scheme.
  • a single edge terminal when the writing resources thereof are limited, transfers the task writing process to other edge terminals in time, which reduces the possibility of writing failures and improves the work efficiency of the edge terminal group.
  • FIG. 1 is a schematic structural diagram of a message queue according to an exemplary embodiment of the present disclosure
  • FIG. 2 is a flowchart of a method for task writing in an edge terminal according to an exemplary embodiment of the present disclosure
  • FIG. 3 is a schematic structural diagram of an edge terminal group according to an exemplary embodiment of the present disclosure.
  • FIG. 4 is a flowchart of another method for task writing in an edge terminal according to an exemplary embodiment of the present disclosure
  • FIG. 5 is a flowchart of still another method for task writing in an edge terminal according to an exemplary embodiment of the present disclosure
  • FIG. 6 is a schematic structural diagram of another edge terminal group according to an exemplary embodiment of the present disclosure.
  • FIG. 7 is a structural block diagram of an apparatus for task writing in an edge terminal according to an exemplary embodiment of the present disclosure
  • FIG. 8 is a structural block diagram of another apparatus for task writing in an edge terminal according to an exemplary embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of a sever according to exemplary embodiments of the present disclosure.
  • An edge terminal refers to a terminal, in an edge computing scenario in loT.
  • the edge terminal is implemented as a node in the edge computing scenario.
  • the edge terminal is implemented as an loT device with a storage function.
  • the edge terminal receives and processes dada, the edge terminal simultaneously downloads the data to the local for the purpose of persisting the data.
  • a message queue is used for inter-process communications in the edge terminal.
  • the massage queue 101 includes at least a task 110.
  • a task publisher 120 sends the task 110 to the message queue 101.
  • a task subscriber 130 takes out the task from the message queue 101 and processes the task.
  • the task 110 may be implemented as a data set, and the publisher 120 and the task subscriber 130 are both implemented as the edge terminals.
  • the task subscriber 130 may process the task 110 not in accordance with a chronological order in which the task 110 is published. That is, the processing of the task 110 by the task subscriber 130 may not be synchronized with the publication of the publisher 120 to the task 110. Therefore, the message queue has functions of decoupling the service and peak-cutting and valley-filling of the number of the tasks.
  • each task is correspondingly written to one of the edge terminals.
  • the writing capability of a single edge terminal is limited, in the case that a single edge terminal operates under a high load, the work efficiency of an edge terminal group including the edge terminal is wholly lowered.
  • FIG. 2 is a flowchart of a method for task writing in an edge terminal according to an exemplary embodiment of the present disclosure. Description is given using a scenario where the method is applied in an loT device as an example. The method includes the following steps.
  • a target task is determined.
  • the target task is a task that is currently in a writing process in a target edge terminal.
  • the target edge terminal is implemented as an loT device with a data storage function.
  • the loT device further has a work function.
  • the target edge terminal is implemented as a smart water meter.
  • the smart water meter further has a function of measuring water flow in addition to the data storage function.
  • the target task is a task in a message queue.
  • the target task is published and sent to the message queue by a task publisher.
  • the target edge terminal is a subscriber of the task.
  • the target edge terminal receives the target task in the message queue, to satisfy task requirements of the target task, or to ensure the reliability of performing the target task, the target task needs to be persisted. That is, the target task is written to a disk of the target task.
  • a candidate edge terminal is determined.
  • the candidate edge terminal and the target edge terminal are in a same edge terminal group, and the edge terminal group includes at least two edge terminals.
  • the edge terminal group includes at least two edge terminals, including the candidate edge terminal and the target edge terminal.
  • the edge terminal group is a group composed of loT devices. That is, the edge terminal group includes at least two of the loT devices, and a communication connection is established between each loT in the same edge terminal group.
  • hierarchical relationships are present between different edge terminals. Referring to FIG. 3, in an edge terminal group 300, a first hierarchy 310, a second hierarchy 320, and a third hierarchy 330 are correspondingly present.
  • the first hierarchy 310 includes an edge terminal 311 corresponding to the first hierarchy.
  • the second hierarchy 320 includes an edge terminal 321 and an edge terminal 322 that both have established a communication connection with the edge terminal 311.
  • the third hierarchy 330 includes an edge terminal 331 that has established a communication connection with the edge terminal 321 and an edge terminal 332 and an edge terminal 333 that both have established a communication connection with the edge terminal 322.
  • the edge terminal in the case that any of the edge terminals needs to be communicated with another edge terminal, the edge terminal is capable of directly establishing a communication connection with the another edge terminal, or the edge terminal is capable of forwarding data by other edge terminals to communicate with the another edge terminal.
  • different edge terminals do not have hierarchical relationships.
  • the functions of all the edge terminals are the same.
  • all the edge terminals in the edge terminal group are smart water meters.
  • the functions of all the edge terminals are not exactly the same.
  • the edge terminal group includes two smart water meters, and a smart water pump as an upper hierarchy of the two smart water meters. The specific implementation forms and hierarchical contents of the edge terminal group are not limited herein.
  • the edge terminal group includes the target edge terminal and the candidate edge terminal.
  • the target edge terminal is a terminal currently writing the target task.
  • the candidate edge terminal is a terminal that is not currently writing the target task.
  • a first task transfer scheme of the target task is determined based on a first current writing speed in the target edge terminal and a second current writing speed in the candidate edge terminal.
  • the edge terminal is also involved a process of storing other tasks of the massage queue.
  • Each edge terminal stores different tasks, and therefore writing speeds of the edge terminals for storing the tasks are different, and thus different edge terminals correspond to different writing speeds.
  • the target edge terminal corresponds to the first current writing speed
  • the candidate edge terminal corresponds to the second current writing speed.
  • the edge terminal includes a storage device.
  • the storage device is implemented as a disk.
  • the disk corresponds to a maximum writing speed, a rated writing speed, and a current writing speed.
  • a maximum writing speed in the disk of the edge terminal is 30 MB/s, a rated writing speed is 20 MB/s, and a current writing speed in the edge terminal is 15 MB/s, and in this case, the current writing speed in the disk is less than the rated writing speed in the disk, and thus the disk is in a secure writing state; and in another example, a maximum writing speed in the disk of the edge terminal is 30 MB/s, a rated writing speed is 20 MB/s, and a current writing speed in the edge terminal is 25 MB/s, and in this case, the current writing speed in the disk is greater than the rated writing speed in the disk, and thus the disk is in an unsecure writing state.
  • the target edge terminal may be an edge terminal in the unsecure writing state
  • the candidate edge terminal may be an edge terminal in the secure writing state.
  • the target edge terminal is required to transfer the target task to the candidate edge terminal.
  • the first task transfer scheme corresponding to the transfer of the target task is determined.
  • the first task transfer scheme indicates time for transferring the target task
  • the first task transfer scheme indicates a proportion of the target task to be transferred.
  • the target task is transferred to the candidate edge terminal based on the first task transfer scheme.
  • the first task transfer scheme indicates the proportion for transferring the target task.
  • 30% of the target task is transferred from the target edge terminal to the candidate edge terminal, and then the target edge terminal transfers 30% of the target task based on the first task transfer scheme; and in another example, in the first task transfer scheme, 100% of the target task is transferred from the target edge terminal to the candidate edge terminal, and then the target edge terminal completely transfers the target task to the candidate edge terminal.
  • the target edge terminal when the first task transfer scheme indicates the proportion of the target task to be transferred, in the case that the task transfer scheme is transferred, in the case that the stored proportion of the target task by the target edge terminal is exceeded the proportion determined by the first task transfer scheme, then the target edge terminal sends the stored data to the candidate edge terminal to acquire space corresponding to the first task transfer scheme.
  • the task transfer scheme is determined based on the writing speeds of the target edge terminal and the candidate edge terminal, and the target task being currently written by the target edge terminal is transferred according to the first task scheme corresponding to the task transfer scheme.
  • each edge terminal of the edge terminal group by determining the task transfer scheme and transferring the task according to the corresponding task transfer scheme, a single edge terminal, when the writing resources thereof are limited, transfers the task writing process to other edge terminals in time, which reduces the possibility of writing failures and improves the work efficiency of the edge terminal group.
  • the first transfer scheme indicates the proportion of the target task to be transferred. Because the writing speed at which the edge terminal writes the task is positively correlated with a proportion of the task stored by the edge terminal, the first transfer scheme is determined according to writing capabilities of the target edge terminal and the candidate edge terminal.
  • FIG. 4 is a flowchart of another method for task writing in an edge terminal according to an exemplary embodiment of the present disclosure. The method may replace step 203 in the embodiment shown in FIG. 2, and is implemented as step 401 to step 404. Description is given using a scenario where the method is applied in the edge terminal as an example. The method includes the following steps.
  • a first difference value between a first rated writing speed and the first current writing speed, and a second difference value between a second rated writing speed and the second current writing speed are determined.
  • the first rated writing speed is a rated writing speed in the target edge terminal
  • the first current writing speed is a current writing speed in the target edge terminal.
  • the first current writing speed is greater than the first rated writing speed. That is, the target edge terminal is in an unsecure writing state, and the target edge terminal is required to transfer the target task to the candidate edge terminal.
  • the second rated writing speed is a rated writing speed in the candidate edge terminal
  • the second current writing speed is a current writing speed in the candidate edge terminal.
  • the second current writing speed is less than the second rated writing speed. That is, the candidate edge terminal is in a secure writing state, and the candidate edge terminal may receive the transfer of the target task.
  • the target edge terminal and the candidate edge terminal are two determined edge terminals in the edge terminal group.
  • the first rated writing speed in the target edge terminal is consistent with the second rated writing speed in the candidate edge terminal; or, the first rated writing speed in the target edge terminal is different from the second rated writing speed in the candidate edge terminal.
  • a relationship between the rated writing speeds in the target edge terminal and the candidate edge terminal is not limited herein.
  • the first difference value is an absolute value of a difference value between the first rated writing speed and the first current writing speed.
  • the second difference value is an absolute value of a difference value between the second rated writing speed and the second current writing speed.
  • a comparison difference value is determined according to the first difference value and the second difference value.
  • the comparison difference value is a minimum value of the first difference value and the second difference value.
  • the first difference value indicates an overflow writing speed in the target edge terminal
  • the second difference value indicates a writing speed that the candidate edge terminal may continue to bear.
  • the step is a process of determining the minimum value of the first difference value and the second difference value.
  • the first task transfer scheme in response to a target task writing speed being less than the comparison difference value, is determined as a total transfer scheme.
  • the target edge terminal transfers an entirety of the target task to the candidate edge terminal for writing.
  • the target task writing speed corresponding to the target task is less than the comparison difference value, that is, in the case that the target task is determined to be transferred, the first current writing speed is still greater than the first rated writing speed, and the second rated writing speed is still greater than the second current writing speed.
  • the first task transfer scheme corresponding to the target task is the total transfer scheme. That is, the target edge terminal transfers the entirety of the target task to the candidate edge terminal for writing.
  • the first writing speed is less than the overflow writing speed in the target edge terminal. Therefore, in the case that the target task is transferred by the target edge terminal, a second task subsequent to the target task is determined, a candidate edge terminal corresponding to the second task is selected, and the second edge terminal is transferred, until the first writing speed is less than the rated writing speed.
  • the first task transfer scheme is determined as a partial transfer scheme. In the partial transfer scheme, the target edge terminal transfers a portion of the target task to the candidate edge terminal for writing.
  • the target task writing speed is greater than comparison difference value, that is, in the case that the entirety of the target task is transferred, the second current writing speed in the candidate task terminal is less than the comparison difference value, or the first current writing speed in the target task terminal is less than the first rated writing speed; or, the second current writing speed in the candidate task terminal is less than the comparison difference value, meanwhile, the first current writing speed in the target task terminal is less than the first rated writing speed.
  • the target task is partially transferred.
  • a proportion of the partial transfer is a ratio of the comparison difference value to the target task writing speed.
  • the first writing speed is greater than the overflow writing speed in the target edge terminal and a smaller value of writing speeds that the candidate edge terminal may continue to bear. Therefore, when the overflow writing speed in the target edge terminal is great, and is greater than the writing speed that the candidate edge terminal may continue to bear, in the case that the portion of the target task is transferred, the target edge terminal still has the probability of writing speed overflow. Thus the subsequent second task is continued to be determined and transferred, until the first current writing speed in the target edge terminal is less than the first rated writing speed.
  • the task transfer scheme is determined based on the writing speeds of the target edge terminal and the candidate edge terminal, and the target task being currently written by the target edge terminal is transferred according to the first task scheme corresponding to the task transfer scheme.
  • the task transfer scheme is determined based on the writing speeds of the target edge terminal and the candidate edge terminal, and the target task being currently written by the target edge terminal is transferred according to the first task scheme corresponding to the task transfer scheme.
  • a single edge terminal when the writing resources thereof are limited, transfers the task writing process to other edge terminals in time, which reduces the possibility of writing failures and improves the work efficiency of the edge terminal group.
  • the task transfer scheme is determined. In this way, the writing capabilities of the target edge terminal and the candidate edge terminal are rationalized, such that tire possibility of writing failures is further lowered, and thus the work efficiency of the edge terminal group is improved.
  • two transfer schemes are designed for the target task, corresponding to the overflow writing speed in the target edge terminal and the writing speed that the candidate edge terminal may still bear.
  • the transfer proportion of the partial transfer scheme is correlated with the comparison difference value and the target task writing speed, such that the rationality of the write allocation for the target task is improved.
  • FIG. 5 is a flowchart of still another method for task writing in an edge terminal according to an exemplary embodiment of the present disclosure. Description is given using a scenario where the method is applied in an loT device as an example. The method includes the following steps.
  • the edge terminal group includes at least two edge terminals.
  • the at least two edge terminals include the target edge terminal and the candidate edge terminal in the following steps.
  • an edge terminal group 600 includes a first edge terminal 601 , a second edge terminal 602, a third edge terminal 603, and a fourth edge terminal 604.
  • the fourth edge terminal 604 is disposed in a first hierarchy 611 of the edge terminal group 600.
  • the first edge terminal 601, the second edge terminal 602, and the third edge terminal 603 are disposed in a second hierarchy 612 of the edge terminal group 600.
  • the first edge terminal 601 performs a persistent process on a first task 621, a second task 622, and a third task 623 simultaneously. Meanwhile, the second edge terminal 602, the third edge terminal 603, and the fourth edge terminal 604 synchronously acquire tasks from the message queue and perform the persistent process on the tasks.
  • the loT device is implemented as any edge terminal of the edge terminal group, or an loT device connected with the edge terminal group. The loT device acquires an edge terminal writing set, that is, the loT device acquire a current writing speed in each edge terminal in the edge terminal group for the task.
  • the first current writing speed is determined from the edge terminal writing speed set.
  • the first current writing speed is a maximum writing speed in the edge terminal writing speed set.
  • a current writing speed in the first edge terminal 601 is 22 MB/s
  • a current writing speed in the second edge terminal 602 is 18 MB/s
  • a current writing speed in the third edge terminal 603 is 14 MB/s
  • a current writing speed in the fourth edge terminal 604 is 16 MB/s
  • the maximum value of 22 MB/s is determined as the first current writing speed.
  • the target edge terminal is determined based on the first current writing speed.
  • the first edge terminal 601 is determined as the target edge terminal based on the first writing speed.
  • an edge terminal in the case that current writing speeds of the at least two edge terminals in the edge terminal group are equal, an edge terminal is randomly selected from the at least two edge terminals as the target edge terminal; or, based on duration of writing speeds of the at least two edge terminals, an edge terminal of which the writing speed is the first current speed and the duration is longer is selected as the target edge terminal.
  • the loT device in the case that the target edge terminal is determined, the loT device further acquires a task list of tasks being currently acquired by the target edge terminal from the massage queue and stored.
  • tasks being currently processed by the first edge terminal 601 include the first task 621 , the second task 622, and the third task 623.
  • the target task is determined from the writing task list.
  • the target task is a task of which a corresponding writing speed is a maximum writing speed in the writing task list.
  • a writing speed in the first task 621 corresponding to the first edge terminal 601 is 9 MB/s
  • a writing speed in the second task 622 is 6 MB/s
  • a writing speed in the third task is 7 MB/s.
  • the target task is the first task 621 .
  • an overflow writing speed in the first edge terminal may be further determined.
  • the candidate edge terminal is determined.
  • the candidate edge terminal is also determined according to the current writing speeds of the edge terminals.
  • the current writing speed in the third edge terminal is 14 MB/s, and in the edge terminal group 600, an allowance of the current writing speed in the third edge terminal is the greatest. Therefore, the third edge terminal is determined as the candidate edge terminal. That is, the first edge terminal transfers the target task to the third edge terminal.
  • the first difference value between the first rated writing speed and the first current writing speed and the second difference value between the second rated writing speed and the second current writing speed are determined.
  • the loT device determines the overflow writing speed in the target edge terminal and the writing speed that the candidate edge terminal may continue to bear.
  • the first task transfer scheme is determined by comparing the target task writing speed with the first rated writing speed and the second rated writing speed.
  • the first task transfer scheme includes the total transfer scheme and the partial transfer scheme.
  • a persistent file corresponding to the target task is generated according to a storage condition of the target task.
  • a maximum size of a single persistent file is 100 MB
  • a type identification of the persistent file is a first type identification
  • the type identification of the persistent file is a second type identification.
  • a type of the first type identification is 0, indicating a local storage
  • a type of the second type identification is 1, indicating a non-local storage.
  • a message body format includes a total message length and message content; and in the case that the type identification is 1, in addition to the total message length and the message content, the message body format also includes a network protocol code with a length of 4 bytes, a file format code with a length of 2 bytes, and an offset code with a length of 4 bytes.
  • a third current writing speed in the target edge terminal is determined in the case that the target task is transferred.
  • the current writing speed in the target edge terminal is lowered to the third current writing speed.
  • the third current writing speed in the first edge terminal 601 used as the target edge terminal is 18.5 MB/s.
  • a second task transfer scheme is determined based on a difference value between the third current writing speed and the first rated writing speed.
  • a new task is re-determined in the edge terminal group, and a subsequent writing process is performed.
  • a portion of the first task 621 is reallocated to further adjust the writing speed in the target edge terminal.
  • the second task transfer scheme is determined based on the difference value between the third current writing speed and the first rated writing speed.
  • the writing speed in the first task is still 8 MB/s
  • a writing speed allowance of the first terminal 601 is 1.5 MB/s
  • the second task is transferred to the candidate edge terminal based on the second task transfer scheme.
  • the remaining target task is written and persisted by the target edge terminal without subsequent reallocation.
  • the task transfer scheme is determined based on the writing speeds of the target edge terminal and the candidate edge terminal, and the target task being currently written by the target edge terminal is transferred according to the first task scheme corresponding to the task transfer scheme.
  • each edge terminal of the edge terminal group by determining the task transfer scheme and transferring the task according to the corresponding task transfer scheme, a single edge terminal, when the writing resources thereof are limited, transfers the task writing process to other edge terminals in time, which reduces the possibility of writing failures and improves the work efficiency of the edge terminal group.
  • the edge terminal with the maximum writing speed is determined as the target edge terminal, and the task with the maximum writing speed is determined as the target task.
  • the edge terminal and the task that have the greatest effect on the work of the edge terminal group are first processed, such that the work efficiency of the edge terminal group is further improved.
  • the stored proportion of the target task is reallocated corresponding to a subsequent condition of the target edge terminal. In this way, the proportion allocation of the target task is more reasonable, and thus the work efficiency of the edge terminal group is further improved.
  • FIG. 7 is a structural block diagram of an apparatus for task writing in an edge terminal according to an exemplary embodiment of the present disclosure.
  • the apparatus includes: a determining module 701 and a transferring module 702.
  • the determining module 701 is configured to determine a target task, wherein the target task is a task currently in a writing process in a target edge terminal.
  • the determining module 701 is further configured to determine a candidate edge terminal, wherein the candidate edge terminal and the target edge terminal are in a same edge terminal group, the edge terminal group including at least two edge terminals.
  • the determining module 701 is further configured to determine a first task transfer scheme of the target task based on a first current writing speed in the target edge terminal and a second current writing speed in the candidate writing speed.
  • the transferring module 702 is configured to transfer the target task to the candidate edge terminal based on the first task transfer scheme.
  • the target edge terminal corresponds to a first rated writing speed
  • the candidate edge terminal corresponds to a second rated writing speed
  • the target task corresponds to a target task writing speed
  • the determining module 701 is further configured to determine a first difference value between the first rated writing speed and the first current writing speed and a second difference value between the second rated writing speed and the second current writing speed;
  • the apparatus further includes: a comparing module 703, configured to determine the first task transfer scheme by comparing the target task writing speed with the first rated writing speed and the second rated writing speed.
  • the first task transfer scheme includes a total transfer scheme and a partial transfer scheme; wherein
  • the determining module 701 is further configured to determine a comparison difference value based on the first difference value and the second difference value, wherein the comparison difference value is a minimum value of the first difference value and the second difference value;
  • the determining module 701 is further configured to determine the first task transfer scheme as the total transfer scheme in response to the target task writing speed being less than the comparison difference value, wherein in the total transfer scheme, the target edge terminal transfers an entirety of the target task to the candidate edge terminal for writing;
  • the determining module 701 is further configured to determine the first task transfer scheme as the partial transfer scheme in response to the target task writing speed being greater than the comparison difference value, wherein in the partial transfer scheme, the target edge terminal transfers a portion of the target task to the candidate edge terminal for writing.
  • the apparatus further includes: an acquiring module 704, configured to acquire an edge terminal writing speed set in the edge terminal group; wherein [00115] the determining module 701 is further configured to determine the first current writing speed from the edge terminal writing speed set, wherein the first current writing speed is a maximum writing speed in the edge terminal writing speed set; and
  • the determining module 701 is further configured to determine the target edge terminal based on the first current writing speed.
  • the acquisition module 704 is further configured to acquire a writing task list of the target edge terminal, wherein the writing task list includes at least two candidate tasks in writing processes and writing speeds corresponding to the candidate tasks; and [00118] the determining module 701 is further configured to determine the target task from the writing task list, wherein the writing speed corresponding to the target task is the maximum writing speed in the writing task list.
  • the determining module 701 is further configured to determine a third current writing speed in the target edge terminal in the case the target task is transferred;
  • the determining module 701 is further configured to determine a second task transfer scheme based on a difference value between the third current writing speed and the first rated writing speed in response to the third current writing speed being less than the first rated writing speed;
  • the transferring module 702 is further configured to transfer the target task to the candidate edge terminal based on the second task transfer scheme.
  • the apparatus further includes: a generating module 705, configured to generate a persistent file corresponding to the target task based on a stored condition of the target task;
  • a type identification of the persistent file is a first type identification, in response to the target task being stored in the target edge terminal;
  • a type identification of the persistent file is a second type identification, in response to the target task being stored in other edge terminals in the edge terminal group.
  • the task transfer scheme is determined based on the writing speeds of the target edge terminal and the candidate edge terminal, and the target task being currently written by the target edge terminal is transferred according to the first task scheme corresponding to the task transfer scheme.
  • the task transfer scheme is determined based on the writing speeds of the target edge terminal and the candidate edge terminal, and the target task being currently written by the target edge terminal is transferred according to the first task scheme corresponding to the task transfer scheme.
  • a single edge terminal when the writing resources thereof are limited, transfers the task writing process to other edge terminals in time, which reduces the possibility of writing failures and improves the work efficiency of the edge terminal group.
  • the present disclosure further provides a server, including a processor and a writer.
  • the writer stores one or more instructions, wherein the one or more instructions, when loaded and run by the processor, cause the processor to perform the method for task writing in an edge terminal as described above.
  • the server may be a server according to FIG. 9 below.
  • FIG. 9 is a schematic structural diagram of a sever according to exemplary embodiments of the present disclosure.
  • tire server 900 includes a central processing unit (CPU) 901, a random-access memory (RAM) 902, a system writer 904 of a read-only memory (ROM) 903, and a system bus 905 connecting the system writer 904 to the central processing unit 901.
  • the server 900 further includes an input/output (I/O system) 906 that facilitates information transfer between each device in the server, and a mass storage device 907 configured to store an operating system 913, an application program 914, and a program module 915.
  • I/O system input/output
  • the I/O system 906 includes a display 908 configured to display information, and an input device 909 such as a mouse, a keyboard, and the like, configured for users to input information.
  • the display 908 and the input device 909 are both connected to the central processing unit 901 by an input and output controller 910 connected to the system bus 905.
  • the I/O system 906 may further include the input and output controller 910 to receive and process input from a plurality of other devices such as the keyboard, the mouse, an electronic stylus, and the like.
  • the input and output controller 910 may further provide outputs to other output devices such as a display screen, a printer, and the like.
  • the mass storage device 907 is connected to the central processing unit 901 by a mass storage controller (not shown) connected to the system bus 905.
  • the mass storage device 907 and related computer-readable medium provide a nonvolatile storage for the server 900. That is, the mass storage device 907 may include computer-readable medium (not shown) such as a hard disk, a compact disc read-only memory (CD-ROM), or a driver.
  • computer-readable medium such as a hard disk, a compact disc read-only memory (CD-ROM), or a driver.
  • the computer-readable medium may include computer storage medium and communication medium.
  • the computer storage medium includes volatile and nonvolatile, and removable and unremovable medium, which is practiced by any method or technology configured to store information such as a computer-readable instruction, a data structure, a program module, or other data.
  • the computer storage medium includes a RAM, a ROM, an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory or other solid-state memories, a CD-ROM, a digital video disc (DVD), or other optical storages, a tap box, a tap, a disk storage or other magnetic storage devices.
  • the personnel of skill in the art know that the computer storage medium is not limited to the above.
  • the system writer 904 and the mass storage device 907 collectively refer to as a writer.
  • the writer is written with one or more instructions, which are configured to be performed by one or more central processing units 901.
  • the one or more instructions include instructions for achieving the above method for task writing in an edge terminal.
  • the central processing unit 901 performs the one or more instructions to achieve the method for task writing in an edge terminal as described above.
  • the server 900 may be connected to a remote computer on a network to run by networks such as the Internet. That is, the server 900 may be connected to the network 912 by a network interface unit 911 connected to the system bus 905. In other words, the network interface unit 911 may be connected to other types of network or remote computer systems (not shown).
  • the writer further includes one or more instructions written in the writer.
  • the one or more instructions include steps, performed by the server, in the method for task writing in an edge terminal according to the embodiments of the present disclosure.
  • An embodiment of the present disclosure provides a non-transitory computer- readable storage medium storing at least one instruction, at least one program, a code set, or an instruction set.
  • the at least one instruction, the at least one program, the code set, or the instruction set when loaded and executed by a processor of a computer device, causes the computer device to perform the method for task writing in an edge terminal as described above.
  • the computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a solid state drives (SSD), or a disk.
  • the random access memory may include a resistance random-access memory' (ReRAM) and a dynamic random-access memory' (DRAM).
  • ReRAM resistance random-access memory'
  • DRAM dynamic random-access memory'
  • An embodiment of the present disclosure further provides a computer program product or a computer program.
  • the computer program product or the computer program includes one or more computer instructions stored in a non-transitory computer-readable storage medium.
  • the one or more computer instructions when loaded and executed by a processor of a computer device, cause the computer device to perform the method for task writing in an edge terminal as described above.
  • Tire computer-readable storage medium may be the computer-readable storage medium included in the writer described above; and the computer-readable storage medium may be also a computer-readable storage medium that exists separately and is not assembled into a terminal.
  • the computer- readable storage medium stores at least one instruction, at least one program, a code set, or an instruction set thereon. The at least one instruction, the at least one program, the code set, or the instruction set, when loaded and executed by a processor of a computer device, cause the computer device to perform the method for task writing in an edge terminal as described above.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Debugging And Monitoring (AREA)
  • Hall/Mr Elements (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Disclosed are a method and apparatus for task writing in an edge terminal. The method includes: determining a target task; determining a candidate edge terminal; determining a first task transfer scheme of the target task; and transferring the target task to the candidate edge terminal according to the first task transfer scheme. The task transfer scheme is determined based on the writing speed in the target edge terminal and the candidate edge terminal, and the target task being currently written by the target edge terminal is transferred according to a corresponding first task transfer scheme of the task transfer scheme.

Description

METHOD AND APPARATUS FOR TASK WRITING IN EDGE
TERMINAL, TERMINAL, AND READABLE STORAGE MEDIUM
TECHNICAL FIELD
[0001] The present disclosure relates to the field of Internet of things (loT) technologies, and in particular, relates to a method and apparatus for task writing in an edge terminal, a device, and a readable storage medium.
BACKGROUND
[0002] Message queues are used for inter-process communications for asynchronous processing of tasks to improve an overall performance of the system. A publisher publishes a task to a message queue, and a subscriber takes out the task from the message queue and processes the task where the subscriber has a demand or is idle. During this process, the subscriber has to write the task.
[0003] In an edge computing scenario based on the loT technologies, the subscriber of task is implemented as a plurality of edge terminals in a same edge terminal group. Upon acquiring the task from the message queue, the plurality of edge terminals simultaneously acquire the task from the message queue and write the task locally for backup.
[0004] However, in some practices, during the process of acquiring and writing the task by the plurality of edge terminals, write failures often occur due to limited writing resources of a single edge terminal, such that the work efficiency of the edge terminal group is lowered.
SUMMARY
[0005] Embodiments of the present disclosure provide a method and apparatus for task writing in an edge terminal, a device, and a readable storage medium, which may improve the work efficiency of an edge terminal group.
[0006] In one aspect of the embodiments of the present disclosure, a method for task writing in an edge terminal is provided. The method includes:
[0007] determining a target task, wherein the target task is a task currently in a writing process in a target edge terminal; [0008] determining a candidate edge terminal, wherein the candidate edge terminal and the target edge terminal are in a same edge terminal group, the edge terminal group including at least two edge terminals;
[0009] determining a first task transfer scheme of the target task based on a first current writing speed in the target edge terminal and a second current writing speed in the candidate edge terminal; and
[0010] transferring the target task to the candidate edge terminal based on the first task transfer scheme.
[0011] In another aspect of the embodiments of the present disclosure, an apparatus for determining a service level agreement is provided. The apparatus includes:
[0012] a determining module, configured to determine a target task, wherein the target task is a task currently in a writing process in a target edge terminal; wherein
[0013] the determining module is further configured to determine a candidate edge terminal, wherein the candidate edge terminal and the target edge terminal are in a same edge terminal group, the edge terminal group including at least two edge terminals; and
[0014] the determining module is further configured to determine a first task transfer scheme of the target task based on a first current writing speed in the target edge terminal and a second current writing speed in the candidate edge terminal; and
[0015] a transferring module, configured to transfer the target task to the candidate edge terminal based on the first task transfer scheme.
[0016] In still another aspect of the embodiments of the present disclosure, a computer device is provided. The computer device includes a processor and a writer device, wherein the writer device stores at least one instraction, at least one program, a code set, or an instruction set, wherein the processor, when loading and executing the at least one instruction, tire at least one program, tire code set, or the instruction set, is caused to perform the method for task writing in an edge terminal as described above.
[0017] In yet still another aspect of the embodiments of the present disclosure, a non- transitory computer-readable storage medium is provided. The non-transitory computer- readable storage medium stores at least one instruction, at least one program, a code set, or an instruction set, wherein the at least one instruction, the at least one program, the code set, or the instruction set, when loaded and executed by a processor of a computer device, cause the computer device to perform the method for task writing in an edge terminal as described above.
[0018] In yet still another aspect of the embodiments of the present disclosure, a computer program product or a computer program is provided. The computer program product or the 2 computer program includes one or more computer instructions, and the one or more computer instructions are stored in a non-transitory computer-readable storage medium. The one or more computer instructions, when loaded and executed by a process of a computer device, cause the computer device to perform the method for task writing in an edge terminal as described above.
[0019] The technical solutions according to the embodiments of the present disclosure achieve at least the following beneficial effects.
[0020] In the case that the target edge terminal and the candidate edge terminal of the edge terminal group are determined, the task transfer scheme is determined based on the writing speeds of the target edge terminal and the candidate edge terminal, and the target task being currently written by the target edge terminal is transferred according to the first task scheme corresponding to the task transfer scheme. In each edge terminal of the edge terminal group, by determining the task transfer scheme and transferring the task according to the corresponding task transfer scheme, a single edge terminal, when the writing resources thereof are limited, transfers the task writing process to other edge terminals in time, which reduces the possibility of writing failures and improves the work efficiency of the edge terminal group.
BRIEF DESCRIPTION OF THE DRAWINGS
[0021] For clearer descriptions of the technical solutions in various embodiments of the present disclosure, the following briefly introduces the accompanying drawings required for describing the embodiments. Apparently, the accompanying drawings in the following description show merely some embodiments of the present disclosure, and a person of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.
[0022] FIG. 1 is a schematic structural diagram of a message queue according to an exemplary embodiment of the present disclosure;
[0023] FIG. 2 is a flowchart of a method for task writing in an edge terminal according to an exemplary embodiment of the present disclosure;
[0024] FIG. 3 is a schematic structural diagram of an edge terminal group according to an exemplary embodiment of the present disclosure;
[0025] FIG. 4 is a flowchart of another method for task writing in an edge terminal according to an exemplary embodiment of the present disclosure; [0026] FIG. 5 is a flowchart of still another method for task writing in an edge terminal according to an exemplary embodiment of the present disclosure;
[0027] FIG. 6 is a schematic structural diagram of another edge terminal group according to an exemplary embodiment of the present disclosure;
[0028] FIG. 7 is a structural block diagram of an apparatus for task writing in an edge terminal according to an exemplary embodiment of the present disclosure;
[0029] FIG. 8 is a structural block diagram of another apparatus for task writing in an edge terminal according to an exemplary embodiment of the present disclosure; and
[0030] FIG. 9 is a schematic structural diagram of a sever according to exemplary embodiments of the present disclosure.
DETAILED DESCRIPTION
[0031] The embodiments of the present disclosure are described in further detail with reference to the enclosed drawings, to clearly present the objects, technical solutions, and advantages of the present disclosure.
[0032] The terms involved in the embodiments of the present disclosure are described hereinafter first.
[0033] An edge terminal refers to a terminal, in an edge computing scenario in loT. The edge terminal is implemented as a node in the edge computing scenario. In the present disclosure, the edge terminal is implemented as an loT device with a storage function. In the case that the edge terminal receives and processes dada, the edge terminal simultaneously downloads the data to the local for the purpose of persisting the data.
[0034] A message queue is used for inter-process communications in the edge terminal. Referring to FIG. 1, the massage queue 101 includes at least a task 110. Upon generating the task 110, a task publisher 120 sends the task 110 to the message queue 101. In the case that the task 110 is within the message queue 101, a task subscriber 130 takes out the task from the message queue 101 and processes the task. In the present disclosure, the task 110 may be implemented as a data set, and the publisher 120 and the task subscriber 130 are both implemented as the edge terminals. During processing contents of the message queue, in the case that the publisher 120 sends the task 110 to the message queue 101, the task subscriber 130 may process the task 110 not in accordance with a chronological order in which the task 110 is published. That is, the processing of the task 110 by the task subscriber 130 may not be synchronized with the publication of the publisher 120 to the task 110. Therefore, the message queue has functions of decoupling the service and peak-cutting and valley-filling of the number of the tasks.
[0035] In some practices, in the case that the edge terminal processes the task in the message queue and writes the task to a disk corresponding the edge terminal, generally each task is correspondingly written to one of the edge terminals. However, the writing capability of a single edge terminal is limited, in the case that a single edge terminal operates under a high load, the work efficiency of an edge terminal group including the edge terminal is wholly lowered.
[0036] FIG. 2 is a flowchart of a method for task writing in an edge terminal according to an exemplary embodiment of the present disclosure. Description is given using a scenario where the method is applied in an loT device as an example. The method includes the following steps.
[0037] In 201, a target task is determined. The target task is a task that is currently in a writing process in a target edge terminal.
[0038] In the embodiments of the present disclosure, the target edge terminal is implemented as an loT device with a data storage function. Optionally, in addition to the data storage function, the loT device further has a work function. In an example, the target edge terminal is implemented as a smart water meter. The smart water meter further has a function of measuring water flow in addition to the data storage function.
[0039] In the embodiments of the present disclosure, the target task is a task in a message queue. The target task is published and sent to the message queue by a task publisher. The target edge terminal is a subscriber of the task.
[0040] In the case that the target edge terminal receives the target task in the message queue, to satisfy task requirements of the target task, or to ensure the reliability of performing the target task, the target task needs to be persisted. That is, the target task is written to a disk of the target task.
[0041] In 202, a candidate edge terminal is determined. The candidate edge terminal and the target edge terminal are in a same edge terminal group, and the edge terminal group includes at least two edge terminals.
[0042] In the embodiments of the present disclosure, the edge terminal group includes at least two edge terminals, including the candidate edge terminal and the target edge terminal. The edge terminal group is a group composed of loT devices. That is, the edge terminal group includes at least two of the loT devices, and a communication connection is established between each loT in the same edge terminal group. Optionally, in the same edge terminal group, hierarchical relationships are present between different edge terminals. Referring to FIG. 3, in an edge terminal group 300, a first hierarchy 310, a second hierarchy 320, and a third hierarchy 330 are correspondingly present. The first hierarchy 310 includes an edge terminal 311 corresponding to the first hierarchy. The second hierarchy 320 includes an edge terminal 321 and an edge terminal 322 that both have established a communication connection with the edge terminal 311. The third hierarchy 330 includes an edge terminal 331 that has established a communication connection with the edge terminal 321 and an edge terminal 332 and an edge terminal 333 that both have established a communication connection with the edge terminal 322. In the edge terminal group, in the case that any of the edge terminals needs to be communicated with another edge terminal, the edge terminal is capable of directly establishing a communication connection with the another edge terminal, or the edge terminal is capable of forwarding data by other edge terminals to communicate with the another edge terminal. In other embodiments of the present disclosure, in the same edge terminal group, different edge terminals do not have hierarchical relationships. Optionally, in the edge terminal group, the functions of all the edge terminals are the same. In an example, all the edge terminals in the edge terminal group are smart water meters. Alternatively, in the edge terminal group, the functions of all the edge terminals are not exactly the same. In an example, the edge terminal group includes two smart water meters, and a smart water pump as an upper hierarchy of the two smart water meters. The specific implementation forms and hierarchical contents of the edge terminal group are not limited herein.
[0043] In the embodiments of the present disclosure, the edge terminal group includes the target edge terminal and the candidate edge terminal. The target edge terminal is a terminal currently writing the target task. The candidate edge terminal is a terminal that is not currently writing the target task.
[0044] In 203, a first task transfer scheme of the target task is determined based on a first current writing speed in the target edge terminal and a second current writing speed in the candidate edge terminal.
[0045] In the embodiments of the present disclosure, the edge terminal is also involved a process of storing other tasks of the massage queue. Each edge terminal stores different tasks, and therefore writing speeds of the edge terminals for storing the tasks are different, and thus different edge terminals correspond to different writing speeds. In the embodiments of the present disclosure, the target edge terminal corresponds to the first current writing speed, and the candidate edge terminal corresponds to the second current writing speed.
[0046] In the embodiments of the present disclosure, the edge terminal includes a storage device. In an example, the storage device is implemented as a disk. In an loT device, the disk corresponds to a maximum writing speed, a rated writing speed, and a current writing speed. In an example, a maximum writing speed in the disk of the edge terminal is 30 MB/s, a rated writing speed is 20 MB/s, and a current writing speed in the edge terminal is 15 MB/s, and in this case, the current writing speed in the disk is less than the rated writing speed in the disk, and thus the disk is in a secure writing state; and in another example, a maximum writing speed in the disk of the edge terminal is 30 MB/s, a rated writing speed is 20 MB/s, and a current writing speed in the edge terminal is 25 MB/s, and in this case, the current writing speed in the disk is greater than the rated writing speed in the disk, and thus the disk is in an unsecure writing state. At this point, writing processes of a portion of tasks of the disk in the unsecure writing state need to be transferred to other edge terminals to reduce the workload of the disk in the unsecure writing state. In an example, the target edge terminal may be an edge terminal in the unsecure writing state, and the candidate edge terminal may be an edge terminal in the secure writing state. In this case, the target edge terminal is required to transfer the target task to the candidate edge terminal. Optionally, according to the first current writing speed and the second current writing speed, the first task transfer scheme corresponding to the transfer of the target task is determined. In an example, the first task transfer scheme indicates time for transferring the target task, and in another example, the first task transfer scheme indicates a proportion of the target task to be transferred. The embodiments of the present disclosure give description using a scenario where the first task transfer scheme indicates a proportion for transferring the target task as an example.
[0047] In 204, the target task is transferred to the candidate edge terminal based on the first task transfer scheme.
[0048] As described above, the first task transfer scheme indicates the proportion for transferring the target task. In an example, in the first task transfer scheme, 30% of the target task is transferred from the target edge terminal to the candidate edge terminal, and then the target edge terminal transfers 30% of the target task based on the first task transfer scheme; and in another example, in the first task transfer scheme, 100% of the target task is transferred from the target edge terminal to the candidate edge terminal, and then the target edge terminal completely transfers the target task to the candidate edge terminal.
[0049] In some embodiments, when the first task transfer scheme indicates the proportion of the target task to be transferred, in the case that the task transfer scheme is transferred, in the case that the stored proportion of the target task by the target edge terminal is exceeded the proportion determined by the first task transfer scheme, then the target edge terminal sends the stored data to the candidate edge terminal to acquire space corresponding to the first task transfer scheme. [0050] In summary, in the method according to the embodiments of the present disclosure, in the case that the target edge terminal and the candidate edge terminal of the edge terminal group are determined, the task transfer scheme is determined based on the writing speeds of the target edge terminal and the candidate edge terminal, and the target task being currently written by the target edge terminal is transferred according to the first task scheme corresponding to the task transfer scheme. In each edge terminal of the edge terminal group, by determining the task transfer scheme and transferring the task according to the corresponding task transfer scheme, a single edge terminal, when the writing resources thereof are limited, transfers the task writing process to other edge terminals in time, which reduces the possibility of writing failures and improves the work efficiency of the edge terminal group.
[0051] In the present disclosure, the first transfer scheme indicates the proportion of the target task to be transferred. Because the writing speed at which the edge terminal writes the task is positively correlated with a proportion of the task stored by the edge terminal, the first transfer scheme is determined according to writing capabilities of the target edge terminal and the candidate edge terminal. FIG. 4 is a flowchart of another method for task writing in an edge terminal according to an exemplary embodiment of the present disclosure. The method may replace step 203 in the embodiment shown in FIG. 2, and is implemented as step 401 to step 404. Description is given using a scenario where the method is applied in the edge terminal as an example. The method includes the following steps.
[0052] In 401, a first difference value between a first rated writing speed and the first current writing speed, and a second difference value between a second rated writing speed and the second current writing speed are determined.
[0053] In the embodiments of the present disclosure, the first rated writing speed is a rated writing speed in the target edge terminal, and the first current writing speed is a current writing speed in the target edge terminal. In the embodiments of the resent disclosure, the first current writing speed is greater than the first rated writing speed. That is, the target edge terminal is in an unsecure writing state, and the target edge terminal is required to transfer the target task to the candidate edge terminal.
[0054] In the embodiments of the present disclosure, the second rated writing speed is a rated writing speed in the candidate edge terminal, and the second current writing speed is a current writing speed in the candidate edge terminal. In the embodiments of the resent disclosure, the second current writing speed is less than the second rated writing speed. That is, the candidate edge terminal is in a secure writing state, and the candidate edge terminal may receive the transfer of the target task. [0055] In the embodiments of the present disclosure, the target edge terminal and the candidate edge terminal are two determined edge terminals in the edge terminal group. The first rated writing speed in the target edge terminal is consistent with the second rated writing speed in the candidate edge terminal; or, the first rated writing speed in the target edge terminal is different from the second rated writing speed in the candidate edge terminal. A relationship between the rated writing speeds in the target edge terminal and the candidate edge terminal is not limited herein.
[0056] In the embodiments of the present disclosure, the first difference value is an absolute value of a difference value between the first rated writing speed and the first current writing speed. The second difference value is an absolute value of a difference value between the second rated writing speed and the second current writing speed.
[0057] In 402, a comparison difference value is determined according to the first difference value and the second difference value. The comparison difference value is a minimum value of the first difference value and the second difference value.
[0058] In the embodiments of the present disclosure, the first difference value indicates an overflow writing speed in the target edge terminal, and the second difference value indicates a writing speed that the candidate edge terminal may continue to bear. The step is a process of determining the minimum value of the first difference value and the second difference value.
[0059] In 403, in response to a target task writing speed being less than the comparison difference value, the first task transfer scheme is determined as a total transfer scheme. In the total transfer scheme, the target edge terminal transfers an entirety of the target task to the candidate edge terminal for writing.
[0060] In the case that the target task writing speed corresponding to the target task is less than the comparison difference value, that is, in the case that the target task is determined to be transferred, the first current writing speed is still greater than the first rated writing speed, and the second rated writing speed is still greater than the second current writing speed. In this case, the first task transfer scheme corresponding to the target task is the total transfer scheme. That is, the target edge terminal transfers the entirety of the target task to the candidate edge terminal for writing.
[0061] In the embodiments of the present disclosure, the first writing speed is less than the overflow writing speed in the target edge terminal. Therefore, in the case that the target task is transferred by the target edge terminal, a second task subsequent to the target task is determined, a candidate edge terminal corresponding to the second task is selected, and the second edge terminal is transferred, until the first writing speed is less than the rated writing speed. [0062] In 404, in response to the target task writing speed being greater than the comparison difference value, the first task transfer scheme is determined as a partial transfer scheme. In the partial transfer scheme, the target edge terminal transfers a portion of the target task to the candidate edge terminal for writing.
[0063] In the case that the target task writing speed is greater than comparison difference value, that is, in the case that the entirety of the target task is transferred, the second current writing speed in the candidate task terminal is less than the comparison difference value, or the first current writing speed in the target task terminal is less than the first rated writing speed; or, the second current writing speed in the candidate task terminal is less than the comparison difference value, meanwhile, the first current writing speed in the target task terminal is less than the first rated writing speed. In this case, the target task is partially transferred. In an example, a proportion of the partial transfer is a ratio of the comparison difference value to the target task writing speed. In an example, the comparison difference value is 4, the target task writing speed is 8 MB/s, and then the proportion of the partial transfer is 4/8* 100%=50%.
[0064] In the embodiments of the present disclosure, the first writing speed is greater than the overflow writing speed in the target edge terminal and a smaller value of writing speeds that the candidate edge terminal may continue to bear. Therefore, when the overflow writing speed in the target edge terminal is great, and is greater than the writing speed that the candidate edge terminal may continue to bear, in the case that the portion of the target task is transferred, the target edge terminal still has the probability of writing speed overflow. Thus the subsequent second task is continued to be determined and transferred, until the first current writing speed in the target edge terminal is less than the first rated writing speed.
[0065] In summary, in the method according to the embodiments of the present disclosure, in the case that the target edge terminal and the candidate edge terminal of the edge terminal group are determined, the task transfer scheme is determined based on the writing speeds of the target edge terminal and the candidate edge terminal, and the target task being currently written by the target edge terminal is transferred according to the first task scheme corresponding to the task transfer scheme. In each edge terminal of the edge terminal group, by determining the task transfer scheme and transferring the task according to the corresponding task transfer scheme, a single edge terminal, when the writing resources thereof are limited, transfers the task writing process to other edge terminals in time, which reduces the possibility of writing failures and improves the work efficiency of the edge terminal group. [0066] In the method according to the embodiments of the present disclosure, in the case that the writing speed in the target edge terminal overflows, and the candidate edge terminal has the capability of bearing the writing task, the task transfer scheme is determined. In this way, the writing capabilities of the target edge terminal and the candidate edge terminal are rationalized, such that tire possibility of writing failures is further lowered, and thus the work efficiency of the edge terminal group is improved.
[0067] In the method according to the embodiments of the present disclosure, two transfer schemes, the total transfer and the partial transfer, are designed for the target task, corresponding to the overflow writing speed in the target edge terminal and the writing speed that the candidate edge terminal may still bear. The transfer proportion of the partial transfer scheme is correlated with the comparison difference value and the target task writing speed, such that the rationality of the write allocation for the target task is improved.
[0068] As described above, in the case that the target task is transferred, in a case that the transfer is successful, other unreasonable writing speeds are still present in the edge terminal group, that is, tasks need to be further transferred. FIG. 5 is a flowchart of still another method for task writing in an edge terminal according to an exemplary embodiment of the present disclosure. Description is given using a scenario where the method is applied in an loT device as an example. The method includes the following steps.
[0069] In 501, an edge terminal writing speed set of the edge terminal group is acquired.
[0070] In the embodiments of the present disclosure, the edge terminal group includes at least two edge terminals. The at least two edge terminals include the target edge terminal and the candidate edge terminal in the following steps.
[0071] In the embodiments of the present disclosure, hierarchical relationships are present between edge terminals in the edge terminal group. Each edge terminal in the edge terminal group acquires a task from the massage queue. In the case that each edge terminal processes the task, the task is stored locally simultaneously, that is, the task is persisted. Referring to FIG. 6, an edge terminal group 600 includes a first edge terminal 601 , a second edge terminal 602, a third edge terminal 603, and a fourth edge terminal 604. The fourth edge terminal 604 is disposed in a first hierarchy 611 of the edge terminal group 600. The first edge terminal 601, the second edge terminal 602, and the third edge terminal 603 are disposed in a second hierarchy 612 of the edge terminal group 600. The first edge terminal 601 performs a persistent process on a first task 621, a second task 622, and a third task 623 simultaneously. Meanwhile, the second edge terminal 602, the third edge terminal 603, and the fourth edge terminal 604 synchronously acquire tasks from the message queue and perform the persistent process on the tasks. [0072] In the embodiments of the present disclosure, the loT device is implemented as any edge terminal of the edge terminal group, or an loT device connected with the edge terminal group. The loT device acquires an edge terminal writing set, that is, the loT device acquire a current writing speed in each edge terminal in the edge terminal group for the task.
[0073] In 502, the first current writing speed is determined from the edge terminal writing speed set.
[0074] In the embodiments of the present disclosure, the first current writing speed is a maximum writing speed in the edge terminal writing speed set. In an example, in the edge terminal group 600, a current writing speed in the first edge terminal 601 is 22 MB/s, a current writing speed in the second edge terminal 602 is 18 MB/s, a current writing speed in the third edge terminal 603 is 14 MB/s, a current writing speed in the fourth edge terminal 604 is 16 MB/s, and then in this case, the maximum value of 22 MB/s is determined as the first current writing speed.
[0075] In 503, the target edge terminal is determined based on the first current writing speed. [0076] As describe in step 502, in the case that the maximum value of 22 MB/s is determined as the first current writing speed, the first edge terminal 601 is determined as the target edge terminal based on the first writing speed.
[0077] In other embodiments of the present disclosure, in the case that current writing speeds of the at least two edge terminals in the edge terminal group are equal, an edge terminal is randomly selected from the at least two edge terminals as the target edge terminal; or, based on duration of writing speeds of the at least two edge terminals, an edge terminal of which the writing speed is the first current speed and the duration is longer is selected as the target edge terminal.
[0078] In 504, a writing task list of the target edge terminal is acquired.
[0079] In the embodiments of the present disclosure, in the case that the target edge terminal is determined, the loT device further acquires a task list of tasks being currently acquired by the target edge terminal from the massage queue and stored. In the embodiments of the present disclosure, tasks being currently processed by the first edge terminal 601 include the first task 621 , the second task 622, and the third task 623.
[0080] In 505, the target task is determined from the writing task list.
[0081] In the embodiments of the present disclosure, the target task is a task of which a corresponding writing speed is a maximum writing speed in the writing task list. In an example, a writing speed in the first task 621 corresponding to the first edge terminal 601 is 9 MB/s, and a writing speed in the second task 622 is 6 MB/s, and a writing speed in the third task is 7 MB/s. In this case, the target task is the first task 621 . [0082] In the embodiments of the present disclosure, in the case that the first edge terminal 601 is determined as the target edge terminal, an overflow writing speed in the first edge terminal may be further determined. In an example, rated writing speeds of edge terminals in the edge terminal group 600 are 20 MB/s, a first current writing speed in the first edge terminal 601 is 9+6+7=22 MB/s, and then the overflow writing speed is 2 MB/s.
[0083] In 506, the candidate edge terminal is determined.
[0084] In the embodiments of the present disclosure, the candidate edge terminal is also determined according to the current writing speeds of the edge terminals. In the embodiments of the present disclosure, the current writing speed in the third edge terminal is 14 MB/s, and in the edge terminal group 600, an allowance of the current writing speed in the third edge terminal is the greatest. Therefore, the third edge terminal is determined as the candidate edge terminal. That is, the first edge terminal transfers the target task to the third edge terminal.
[0085] In 507, the first difference value between the first rated writing speed and the first current writing speed and the second difference value between the second rated writing speed and the second current writing speed are determined.
[0086] During a process of transferring, as described in step 401, the loT device determines the overflow writing speed in the target edge terminal and the writing speed that the candidate edge terminal may continue to bear.
[0087] In 508, the first task transfer scheme is determined by comparing the target task writing speed with the first rated writing speed and the second rated writing speed.
[0088] The first task transfer scheme includes the total transfer scheme and the partial transfer scheme. In the embodiments of the present disclosure, because the target task writing speed in the target task is greater than a smaller value of the first difference value and the second difference value. That is, the target task writing speed is greater than the comparison difference value. Therefore, the partial transfer scheme is selected, and 2/8* 100=25% of the target task is determined, based on the target task writing speed and the comparison difference value, to transfer from the first edge terminal 601 used as the target edge terminal to the third edge terminal 603.
[0089] In 509, a persistent file corresponding to the target task is generated according to a storage condition of the target task.
[0090] In the embodiments of the present disclosure, because the target task is stored in a distributed mode, it is necessary to generate the persistent file in a corresponding format to indicate a storage mode of the target task. In an example, a maximum size of a single persistent file is 100 MB, and in the case that the persistent file is stored in the target edge terminal, a type identification of the persistent file is a first type identification; and in the case that the persistent file is stored in other edger terminals of the edge terminal group, the type identification of the persistent file is a second type identification. In an example, a type of the first type identification is 0, indicating a local storage, and a type of the second type identification is 1, indicating a non-local storage. In the case that the type identification is 0, a message body format includes a total message length and message content; and in the case that the type identification is 1, in addition to the total message length and the message content, the message body format also includes a network protocol code with a length of 4 bytes, a file format code with a length of 2 bytes, and an offset code with a length of 4 bytes.
[0091] In 510, a third current writing speed in the target edge terminal is determined in the case that the target task is transferred.
[0092] In the embodiments of the present disclosure, in the case that the entirety or the portion of the target task is transferred, the current writing speed in the target edge terminal is lowered to the third current writing speed. In an example, the third current writing speed in the first edge terminal 601 used as the target edge terminal is 18.5 MB/s.
[0093] In 511, in response to the third current writing speed being less than the first rated writing speed, a second task transfer scheme is determined based on a difference value between the third current writing speed and the first rated writing speed.
[0094] In the embodiments of the present disclosure, in the case that the target task is allocated, a new task is re-determined in the edge terminal group, and a subsequent writing process is performed. In an example, in the case that the first task 621 is still the task with the maximum writing speed, then a portion of the first task 621 is reallocated to further adjust the writing speed in the target edge terminal.
[0095] In 512, the second task transfer scheme is determined based on the difference value between the third current writing speed and the first rated writing speed.
[0096] In an example, in the first terminal 601, the writing speed in the first task is still 8 MB/s, a writing speed allowance of the first terminal 601 is 1.5 MB/s, and then 25%- 1.5/6=6.25% of the target task is allocated, on the basis that 25% of the first task 621 is allocated, to the third edge terminal 603 for persistent writing.
[0097] In 513, the second task is transferred to the candidate edge terminal based on the second task transfer scheme.
[0098] In other embodiments of the present disclosure, in response to the writing speed in the target edge terminal to the target task being less than a writing speed allowance of the target edge terminal, the remaining target task is written and persisted by the target edge terminal without subsequent reallocation. [0099] In summary, in the method according to the embodiments of the present disclosure, in the case that the target edge terminal and the candidate edge terminal of the edge terminal group are determined, the task transfer scheme is determined based on the writing speeds of the target edge terminal and the candidate edge terminal, and the target task being currently written by the target edge terminal is transferred according to the first task scheme corresponding to the task transfer scheme. In each edge terminal of the edge terminal group, by determining the task transfer scheme and transferring the task according to the corresponding task transfer scheme, a single edge terminal, when the writing resources thereof are limited, transfers the task writing process to other edge terminals in time, which reduces the possibility of writing failures and improves the work efficiency of the edge terminal group.
[00100] In the method according to the embodiments of the present disclosure, the edge terminal with the maximum writing speed is determined as the target edge terminal, and the task with the maximum writing speed is determined as the target task. In this way, the edge terminal and the task that have the greatest effect on the work of the edge terminal group are first processed, such that the work efficiency of the edge terminal group is further improved.
[00101] In the method according to the embodiments of the present disclosure, in the case that the target task is preliminarily allocated, the stored proportion of the target task is reallocated corresponding to a subsequent condition of the target edge terminal. In this way, the proportion allocation of the target task is more reasonable, and thus the work efficiency of the edge terminal group is further improved.
[00102] FIG. 7 is a structural block diagram of an apparatus for task writing in an edge terminal according to an exemplary embodiment of the present disclosure. Referring to FIG. 7, the apparatus includes: a determining module 701 and a transferring module 702.
[00103] The determining module 701 is configured to determine a target task, wherein the target task is a task currently in a writing process in a target edge terminal.
[00104] The determining module 701 is further configured to determine a candidate edge terminal, wherein the candidate edge terminal and the target edge terminal are in a same edge terminal group, the edge terminal group including at least two edge terminals.
[00105] The determining module 701 is further configured to determine a first task transfer scheme of the target task based on a first current writing speed in the target edge terminal and a second current writing speed in the candidate writing speed.
[00106] The transferring module 702 is configured to transfer the target task to the candidate edge terminal based on the first task transfer scheme. [00107] In some embodiments, the target edge terminal corresponds to a first rated writing speed, the candidate edge terminal corresponds to a second rated writing speed, and the target task corresponds to a target task writing speed;
[00108] the determining module 701 is further configured to determine a first difference value between the first rated writing speed and the first current writing speed and a second difference value between the second rated writing speed and the second current writing speed; and
[00109] referring to FIG. 8, the apparatus further includes: a comparing module 703, configured to determine the first task transfer scheme by comparing the target task writing speed with the first rated writing speed and the second rated writing speed.
[00110] In some embodiments, the first task transfer scheme includes a total transfer scheme and a partial transfer scheme; wherein
[00111] the determining module 701 is further configured to determine a comparison difference value based on the first difference value and the second difference value, wherein the comparison difference value is a minimum value of the first difference value and the second difference value;
[00112] the determining module 701 is further configured to determine the first task transfer scheme as the total transfer scheme in response to the target task writing speed being less than the comparison difference value, wherein in the total transfer scheme, the target edge terminal transfers an entirety of the target task to the candidate edge terminal for writing; and
[00113] the determining module 701 is further configured to determine the first task transfer scheme as the partial transfer scheme in response to the target task writing speed being greater than the comparison difference value, wherein in the partial transfer scheme, the target edge terminal transfers a portion of the target task to the candidate edge terminal for writing.
[00114] In some embodiments, the apparatus further includes: an acquiring module 704, configured to acquire an edge terminal writing speed set in the edge terminal group; wherein [00115] the determining module 701 is further configured to determine the first current writing speed from the edge terminal writing speed set, wherein the first current writing speed is a maximum writing speed in the edge terminal writing speed set; and
[00116] the determining module 701 is further configured to determine the target edge terminal based on the first current writing speed.
[00117] In some embodiments, the acquisition module 704 is further configured to acquire a writing task list of the target edge terminal, wherein the writing task list includes at least two candidate tasks in writing processes and writing speeds corresponding to the candidate tasks; and [00118] the determining module 701 is further configured to determine the target task from the writing task list, wherein the writing speed corresponding to the target task is the maximum writing speed in the writing task list.
[00119] In some embodiments, the determining module 701 is further configured to determine a third current writing speed in the target edge terminal in the case the target task is transferred;
[00120] the determining module 701 is further configured to determine a second task transfer scheme based on a difference value between the third current writing speed and the first rated writing speed in response to the third current writing speed being less than the first rated writing speed; and
[00121] the transferring module 702 is further configured to transfer the target task to the candidate edge terminal based on the second task transfer scheme.
[00122] In some embodiments, the apparatus further includes: a generating module 705, configured to generate a persistent file corresponding to the target task based on a stored condition of the target task;
[00123] wherein a type identification of the persistent file is a first type identification, in response to the target task being stored in the target edge terminal; and
[00124] a type identification of the persistent file is a second type identification, in response to the target task being stored in other edge terminals in the edge terminal group.
[00125] In summary, in the method according to the embodiments of the present disclosure, in the case that the target edge terminal and the candidate edge terminal of the edge terminal group are determined, the task transfer scheme is determined based on the writing speeds of the target edge terminal and the candidate edge terminal, and the target task being currently written by the target edge terminal is transferred according to the first task scheme corresponding to the task transfer scheme. In each edge terminal of the edge terminal group, by determining the task transfer scheme and transferring the task according to the corresponding task transfer scheme, a single edge terminal, when the writing resources thereof are limited, transfers the task writing process to other edge terminals in time, which reduces the possibility of writing failures and improves the work efficiency of the edge terminal group.
[00126] It should be noted that: for the task writing apparatus of the edge terminal according to the above embodiments, description is only given to the above division of the functional modules. The above functions of the apparatus may be distributed to different functional modules according to actual needs. That is, an internal structure of the apparatus is divided into different functional modules to implement a part or all of the functions described above. [00127] The present disclosure further provides a server, including a processor and a writer. The writer stores one or more instructions, wherein the one or more instructions, when loaded and run by the processor, cause the processor to perform the method for task writing in an edge terminal as described above. It should be noted that, the server may be a server according to FIG. 9 below.
[00128] FIG. 9 is a schematic structural diagram of a sever according to exemplary embodiments of the present disclosure. Referring to FIG. 9, tire server 900 includes a central processing unit (CPU) 901, a random-access memory (RAM) 902, a system writer 904 of a read-only memory (ROM) 903, and a system bus 905 connecting the system writer 904 to the central processing unit 901. The server 900 further includes an input/output (I/O system) 906 that facilitates information transfer between each device in the server, and a mass storage device 907 configured to store an operating system 913, an application program 914, and a program module 915.
[00129] The I/O system 906 includes a display 908 configured to display information, and an input device 909 such as a mouse, a keyboard, and the like, configured for users to input information. The display 908 and the input device 909 are both connected to the central processing unit 901 by an input and output controller 910 connected to the system bus 905. The I/O system 906 may further include the input and output controller 910 to receive and process input from a plurality of other devices such as the keyboard, the mouse, an electronic stylus, and the like. Similarly, the input and output controller 910 may further provide outputs to other output devices such as a display screen, a printer, and the like.
[00130] The mass storage device 907 is connected to the central processing unit 901 by a mass storage controller (not shown) connected to the system bus 905. The mass storage device 907 and related computer-readable medium provide a nonvolatile storage for the server 900. That is, the mass storage device 907 may include computer-readable medium (not shown) such as a hard disk, a compact disc read-only memory (CD-ROM), or a driver.
[00131] Generally, the computer-readable medium may include computer storage medium and communication medium. The computer storage medium includes volatile and nonvolatile, and removable and unremovable medium, which is practiced by any method or technology configured to store information such as a computer-readable instruction, a data structure, a program module, or other data. The computer storage medium includes a RAM, a ROM, an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory or other solid-state memories, a CD-ROM, a digital video disc (DVD), or other optical storages, a tap box, a tap, a disk storage or other magnetic storage devices. The personnel of skill in the art know that the computer storage medium is not limited to the above. The system writer 904 and the mass storage device 907 collectively refer to as a writer.
[00132] The writer is written with one or more instructions, which are configured to be performed by one or more central processing units 901. The one or more instructions include instructions for achieving the above method for task writing in an edge terminal. The central processing unit 901 performs the one or more instructions to achieve the method for task writing in an edge terminal as described above.
[00133] According to the embodiments of the present disclosure, the server 900 may be connected to a remote computer on a network to run by networks such as the Internet. That is, the server 900 may be connected to the network 912 by a network interface unit 911 connected to the system bus 905. In other words, the network interface unit 911 may be connected to other types of network or remote computer systems (not shown).
[00134] The writer further includes one or more instructions written in the writer. The one or more instructions include steps, performed by the server, in the method for task writing in an edge terminal according to the embodiments of the present disclosure.
[00135] An embodiment of the present disclosure provides a non-transitory computer- readable storage medium storing at least one instruction, at least one program, a code set, or an instruction set. The at least one instruction, the at least one program, the code set, or the instruction set, when loaded and executed by a processor of a computer device, causes the computer device to perform the method for task writing in an edge terminal as described above.
[00136] Optionally, the computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a solid state drives (SSD), or a disk. The random access memory may include a resistance random-access memory' (ReRAM) and a dynamic random-access memory' (DRAM). The serial numbers of tire embodiments of the present disclosure are merely for description, and are not for merits of the embodiments.
[00137] An embodiment of the present disclosure further provides a computer program product or a computer program. The computer program product or the computer program includes one or more computer instructions stored in a non-transitory computer-readable storage medium. The one or more computer instructions, when loaded and executed by a processor of a computer device, cause the computer device to perform the method for task writing in an edge terminal as described above.
[00138] It may be understood by those skilled in the art that, all or part of steps in the method described above may be implemented by relevant hardware instructed by a program, and the program may be written to a computer-readable storage medium. Tire computer-readable storage medium may be the computer-readable storage medium included in the writer described above; and the computer-readable storage medium may be also a computer-readable storage medium that exists separately and is not assembled into a terminal. The computer- readable storage medium stores at least one instruction, at least one program, a code set, or an instruction set thereon. The at least one instruction, the at least one program, the code set, or the instruction set, when loaded and executed by a processor of a computer device, cause the computer device to perform the method for task writing in an edge terminal as described above.
[00139] Described above are merely exemplary embodiments of the present disclosure, and are not intended to limit the present disclosure. Therefore, any modifications, equivalent substitutions, improvements, and the like made within the spirit and principles of the present disclosure shall be included in the protection scope of the present disclosure.
20

Claims

CLAIMS What is claimed is:
1. A method for task writing in an edge terminal, applicable to an Interet of things device, the method comprising: determining a target task, wherein the target task is a task currently in a writing process in a target edge terminal; determining a candidate edge terminal, wherein the candidate edge terminal and the target edge terminal are in a same edge terminal group, the edge terminal group comprising at least two edge terminals; determining a first task transfer scheme of the target task based on a first current writing speed in the target edge terminal and a second current writing speed in the candidate edge terminal; and transferring tire target task to the candidate edge terminal based on the first task transfer scheme.
2. The method according to claim 1, wherein the target edge terminal corresponds to a first rated writing speed, the candidate edge terminal corresponds to a second rated writing speed, and the target task corresponds to a target task writing speed; and determining the first task transfer scheme of the target task based on the first current writing speed in the target edge terminal and the second current writing speed in the candidate edge terminal comprises: determining a first difference value between the first rated writing speed and the first current writing speed, and a second difference value between the second rated writing speed and the second current writing speed; and determining the first task transfer scheme by comparing the target task writing speed with the first rated writing speed and the second rated writing speed.
3. The method according to claim 2, wherein the first task transfer scheme comprises a total transfer scheme and a partial transfer scheme; and determining the first task transfer scheme by comparing the target task writing speed with the first rated writing speed and the second rated writing speed comprises:
21 determining a comparison difference value based on the first difference value and the second difference value, wherein the comparison difference value is a minimum value of the first difference value and the second difference value; determining the first task transfer scheme as the total transfer scheme in response to the target task writing speed being less than the comparison difference value, wherein in the total transfer scheme, the target edge terminal transfers an entirety of the target task to the candidate edge terminal for writing; and determining the first task transfer scheme as the partial transfer scheme in response to the target task writing speed being greater than the comparison difference value, wherein in the partial transfer scheme, the target edge terminal transfers, based on the comparison difference value and the target task writing speed, a portion of the target task to the candidate edge terminal for writing.
4. The method according to any one of claims 1 to 3, wherein prior to determining the target task, tire method furflier comprises: acquiring an edge terminal writing speed set in the edge terminal group; determining the first current writing speed from the edge terminal writing speed set, wherein the first current writing speed is a maximum writing speed in the edge terminal writing speed set; and determining the task edge terminal based on the first current writing speed.
5. The method according to claim 4, wherein determining the target task comprises: acquiring a writing task list in the target edge terminal, wherein the writing task list comprises at least two candidate tasks in a writing process, and writing speeds corresponding to the candidate tasks; and determining the target task from the writing task list, wherein a writing speed corresponding to the target task is a maximum writing speed in the writing task list.
6. The method according to any one of claims 1 to 3, wherein upon transferring the target task to the candidate edge terminal based on the first task transfer scheme, the method further comprises: determining a third current writing speed in the target edge terminal in response to the target task being transferred;
22 determining a second task transfer scheme based on a difference value between the third current writing speed and the first rated writing speed in response to the third current writing speed being less than the first rated writing speed; and transferring the target task to the candidate edge terminal based on the second task transfer scheme.
7. The method according to any one of claims 1 to 3, further comprising: generating a persistent file corresponding to the target task according to a storage condition of the target task; wherein a type identification of the persistent file is a first type identification in response to the target task being stored in the target edge terminal; and the type identification of the persistent file is a second type identification in response to the target task being stored in other edge terminals of the edge terminal group.
8. An apparatus for task writing in an edge terminal, comprising: a determining module, configured to determine a target task, wherein the target task is a task currently in a writing process in a target edge terminal; wherein the determining module is further configured to determine a candidate edge terminal, wherein the candidate edge terminal and the target edge terminal are in a same edge terminal group, the edge terminal group comprising at least two edge terminals; and the determining module is further configured to determine a first task transfer scheme of the target task based on a first current writing speed in the target edge terminal and a second current writing speed in the candidate edge terminal; and a transferring module, configmed to transfer the target task to the candidate edge terminal based on the first task transfer scheme.
9. A computer device, comprising: a processor and a writer device, wherein the writer device stores at least one instruction, at least one program, a code set, or an instruction set, wherein the processor, when loading and executing the at least one instruction, the at least one program, the code set, or the instruction set, is caused to perform the method for task writing in an edge terminal as defined in any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium, storing at least one instruction, at least one program, a code set, or an instraction set, wherein the at least one instruction, the at least one program, the code set, or the instruction set, when loaded and executed by a
23 processor of a computer device, cause the computer device to perform the method for task writing in an edge terminal as defined in any one of claims 1 to 7.
24
PCT/SG2022/050691 2021-09-29 2022-09-27 Method and apparatus for task writing in edge terminal, terminal, and readable storage medium WO2023055295A2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111152873.0 2021-09-29
CN202111152873.0A CN113934523A (en) 2021-09-29 2021-09-29 Task writing method and device of edge terminal, terminal and readable storage medium

Publications (2)

Publication Number Publication Date
WO2023055295A2 true WO2023055295A2 (en) 2023-04-06
WO2023055295A3 WO2023055295A3 (en) 2023-05-11

Family

ID=79277387

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/SG2022/050691 WO2023055295A2 (en) 2021-09-29 2022-09-27 Method and apparatus for task writing in edge terminal, terminal, and readable storage medium

Country Status (2)

Country Link
CN (1) CN113934523A (en)
WO (1) WO2023055295A2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106970833A (en) * 2016-01-13 2017-07-21 阿里巴巴集团控股有限公司 job scheduling method and device
US11301307B2 (en) * 2019-07-24 2022-04-12 Red Hat, Inc. Predictive analysis for migration schedulers
US11762743B2 (en) * 2021-06-28 2023-09-19 International Business Machines Corporation Transferring task data between edge devices in edge computing

Also Published As

Publication number Publication date
WO2023055295A3 (en) 2023-05-11
CN113934523A (en) 2022-01-14

Similar Documents

Publication Publication Date Title
CN109949111B (en) Electronic bill identification distribution method, electronic bill generation method, device and system
CN108920272B (en) Data processing method, device, computer equipment and storage medium
CN108848039B (en) Server, message distribution method and storage medium
CN110096336B (en) Data monitoring method, device, equipment and medium
US20160378570A1 (en) Techniques for Offloading Computational Tasks between Nodes
CN111061431B (en) Distributed storage method, server and client
CN112650575B (en) Resource scheduling method, device and cloud service system
WO2022111313A1 (en) Request processing method and micro-service system
CN111600957A (en) File transmission method, device and system and electronic equipment
CN112579304A (en) Resource scheduling method, device, equipment and medium based on distributed platform
CN113361913A (en) Communication service arranging method, device, computer equipment and storage medium
CN115567594A (en) Microservice request processing method, microservice request processing device, computer equipment and storage medium
CN115426361A (en) Distributed client packaging method and device, main server and storage medium
CN108111630B (en) Zookeeper cluster system and connection method and system thereof
CN109614242B (en) Computing capacity sharing method, device, equipment and medium
CN117407159A (en) Memory space management method and device, equipment and storage medium
CN111857992A (en) Thread resource allocation method and device in Radosgw module
WO2023055295A2 (en) Method and apparatus for task writing in edge terminal, terminal, and readable storage medium
CN116069493A (en) Data processing method, device, equipment and readable storage medium
CN113886082A (en) Request processing method and device, computing equipment and medium
CN108848136B (en) Shared storage method of cloud service cluster
CN113691465A (en) Data transmission method, intelligent network card, computing device and storage medium
CN112965763B (en) Service processing system, method, device and storage medium
CN115277231B (en) Firewall security configuration method, device, computer equipment and storage medium
CN116760850B (en) Data processing method, device, equipment, medium and system

Legal Events

Date Code Title Description
DPE1 Request for preliminary examination filed after expiration of 19th month from priority date (pct application filed from 20040101)
NENP Non-entry into the national phase

Ref country code: DE