CN112003722A - Data processing method and device, edge node and storage medium - Google Patents

Data processing method and device, edge node and storage medium Download PDF

Info

Publication number
CN112003722A
CN112003722A CN202010682648.7A CN202010682648A CN112003722A CN 112003722 A CN112003722 A CN 112003722A CN 202010682648 A CN202010682648 A CN 202010682648A CN 112003722 A CN112003722 A CN 112003722A
Authority
CN
China
Prior art keywords
target terminal
state
order data
target
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202010682648.7A
Other languages
Chinese (zh)
Inventor
金�一
张蒙
双甘
杨浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN202010682648.7A priority Critical patent/CN112003722A/en
Publication of CN112003722A publication Critical patent/CN112003722A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides a data processing method, a device, an edge node and a storage medium, wherein the method is applied to the edge node and comprises the following steps: acquiring configuration data to be configured at a target terminal from a cloud server; determining a current target state of the target terminal according to historical order data of the target terminal and current order data and/or a current service interface access condition of the target terminal, wherein the target state comprises a busy state and a non-busy state; and when the target state is a non-busy state, issuing the configuration data to the target terminal so that the terminal performs configuration according to the configuration data. When the target state is the idle state, the configuration data is sent to the target terminal, and the probability of influencing the normal service operation of the target terminal is low.

Description

Data processing method and device, edge node and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data processing method, an apparatus, an edge node, and a storage medium.
Background
SaaS, an abbreviated name of Software-as-a-Service, means Software as a Service, that is, providing a Software Service through a network. The SaaS platform supplier uniformly deploys the application software on the cloud server, and a customer can order the required application software service from a manufacturer through the Internet according to the actual working requirement and obtain the service provided by the Saas platform supplier through the Internet.
Taking the catering SasS system as an example, the configuration data of the in-store banking device depends on the housekeeping setting of the cloud server. In the related art, the manner of acquiring configuration data by the in-store banking device is as follows: and after the configuration data is set by the cloud server, the manager informs the in-store bank collection equipment of pulling the latest configuration data in real time.
However, if the in-store business is in peak hours, the in-store banking equipment automatically pulls up the latest configuration data, which directly affects the operating efficiency of the normal business operation of the merchant.
Disclosure of Invention
To solve the above technical problems described in the background art, embodiments of the present invention provide a data processing method, apparatus, edge node, and storage medium.
In a first aspect, an embodiment of the present application provides a data processing method, which is applied to an edge node, and the method includes:
acquiring configuration data to be configured at a target terminal from a cloud server;
determining a current target state of the target terminal according to historical order data of the target terminal and current order data and/or a current service interface access condition of the target terminal, wherein the target state comprises a busy state and a non-busy state;
and when the target state is a non-busy state, issuing the configuration data to the target terminal so that the target terminal performs configuration according to the configuration data.
Optionally, the determining a current target state of the target terminal according to the historical order data of the target terminal, the current order data, and/or the current service interface access condition of the target terminal includes:
acquiring historical order data of the target terminal, and current order data and/or current service interface access conditions of the target terminal;
determining a first state of the target terminal according to historical order data of the target terminal, wherein the first state comprises a busy state and a non-busy state;
determining a second state of the target terminal according to the current order data of the target terminal and/or the current service interface access condition of the target terminal, wherein the second state comprises a busy state and a non-busy state;
and when the first state and the second state are both non-busy states, determining that the target state is a non-busy state.
Optionally, when it is determined that the target status is a busy status, the method further includes:
determining a target time period corresponding to the first state of the target terminal which is not busy after the current moment according to the historical order data of the target terminal;
in the target time period, determining a second state of the target terminal according to the current order data of the target terminal and/or the current service interface access condition of the target terminal;
and when the second state is a non-busy state, issuing the configuration data to the target terminal.
Optionally, the obtaining, from the cloud server, configuration data to be configured in the target terminal includes:
and receiving configuration data to be configured in a target terminal, which is sent by the cloud server, wherein the configuration data is sent to the edge node when the cloud server monitors that the edge node is in an online state.
Optionally, after obtaining the historical order data of the target terminal, and the current order data of the target terminal and/or the current service interface access condition, the method further includes:
monitoring the change condition of the network state;
when the change condition of the network state is monitored to meet a preset transmission condition, sending the historical order data and the current order data and/or the current service interface access condition to the cloud server, so that the cloud server stores the historical order data and the current order data and/or the current service interface access condition, and when the edge node breaks down, enabling a newly created edge node to obtain the historical order data and the current order data and/or the current service interface access condition from the cloud server.
Optionally, the obtaining of the historical order data of the target terminal and the current order data and/or the current service interface access condition of the target terminal includes:
acquiring historical order data of the target terminal and current order data and/or current service interface access conditions of the target terminal from the edge node locally;
the historical order data of the target terminal, and the current order data and/or the current service interface access condition of the target terminal are: and when the target state is a non-busy state, the target terminal uploads the data to the edge node, or the data is acquired from the target terminal by the edge node.
In a second aspect, an embodiment of the present application provides a data processing apparatus, which is applied to an edge node, and the apparatus includes:
the configuration data acquisition module is used for acquiring configuration data to be configured at the target terminal from the cloud server;
the target state determining module is used for determining the current target state of the target terminal according to the historical order data of the target terminal and the current order data and/or the current service interface access condition of the target terminal, wherein the target state comprises a busy state and a non-busy state;
and the configuration data issuing module is used for issuing the configuration data to the target terminal when the target state is a non-busy state so as to enable the target terminal to perform configuration according to the configuration data.
Optionally, the target state determining module includes:
the data acquisition unit is used for acquiring historical order data of the target terminal and current order data and/or current service interface access conditions of the target terminal;
the first state determining unit is used for determining a first state of the target terminal according to historical order data of the target terminal, wherein the first state comprises a busy state and a non-busy state;
the second state determining unit is used for determining a second state of the target terminal according to the current order data of the target terminal and/or the current service interface access condition of the target terminal, wherein the second state comprises a busy state and a non-busy state;
and the target state determining unit is used for determining that the target state is a non-busy state when the first state and the second state are both non-busy states.
Optionally, when it is determined that the target status is a busy status, the apparatus further includes:
the time period determining module is used for determining the corresponding target time when the first state of the target terminal is a non-busy state after the current moment according to the historical order data of the target terminal;
the second state determining unit is further configured to determine, within the target time period, a second state of the target terminal according to current order data of the target terminal and/or a current service interface access condition of the target terminal;
and the configuration data issuing module is further used for issuing the configuration data to the target terminal when the second state is a non-busy state.
Optionally, the configuration data obtaining module is specifically configured to:
and receiving configuration data to be configured in a target terminal, which is sent by the cloud server, wherein the configuration data is sent to the edge node when the cloud server monitors that the edge node is in an online state.
Optionally, the apparatus further comprises:
a network state monitoring module, configured to monitor a network state change condition after obtaining the historical order data of the target terminal, and the current order data and/or the current service interface access condition of the target terminal;
the data sending module is used for sending the historical order data and the current order data and/or the current service interface access condition to the cloud server when the change condition of the network state is monitored to meet a preset transmission condition, so that the cloud server stores the historical order data and the current order data and/or the current service interface access condition, and when the edge node fails, the newly created edge node obtains the historical order data and the current order data and/or the current service interface access condition from the cloud server.
Optionally, the data obtaining unit is specifically configured to:
acquiring historical order data of the target terminal and current order data and/or current service interface access conditions of the target terminal from the edge node locally;
the historical order data of the target terminal, and the current order data and/or the current service interface access condition of the target terminal are: and when the target state is a non-busy state, the target terminal uploads the data to the edge node, or the data is acquired from the target terminal by the edge node.
In a third aspect, an embodiment of the present invention provides an edge node, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the data processing method according to the first aspect when executing the program.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the data processing method according to the first aspect.
According to the technical scheme provided by the embodiment of the invention, after the edge node acquires the configuration data to be configured at the target terminal from the cloud server, the current target state of the target terminal can be determined according to the historical order data of the target terminal, the current order data and/or the current service interface access condition of the target terminal, and the target state comprises the following steps: a busy state and a non-busy state; and when the target state is a non-busy state, issuing configuration data to the target terminal so that the target terminal performs configuration according to the configuration data. Therefore, when the target state is a non-busy state, the target terminal is in an idle state at present, and at the moment, the configuration data is sent to the target terminal, so that the probability of influencing the normal service operation of the target terminal is low.
Drawings
Fig. 1 is an interaction diagram of a cloud server, an edge node, and a target terminal in a data processing system according to an embodiment of the present invention;
FIG. 2 is a flow chart of a data processing method according to an embodiment of the present invention;
FIG. 3 is a flow chart of a specific implementation of S220 in the embodiment shown in FIG. 2;
fig. 4 is a block diagram of a data processing apparatus according to an embodiment of the present invention;
fig. 5 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
In order to solve the technical problem that the operation efficiency of normal business operation of a merchant is directly influenced by automatically pulling up latest configuration data by in-store silver collecting equipment in the related technology, the embodiment of the invention provides a data processing method and device, an edge node and a storage medium.
For clarity of description of the solution, in the first aspect, a detailed description is first given of a data processing system provided in an embodiment of the present invention.
As shown in fig. 1, a data processing system provided by an embodiment of the present invention may include: a cloud server 110, an edge node 120, and a target terminal 130. The interaction process among the cloud server 110, the edge node 120, and the cloud server 130 is as follows:
in step S110, the cloud server 110 sends configuration data to be configured in the target terminal to the edge node 120.
The target terminal can be any in-store silver collecting device.
When the administrator needs to set the configuration data of the target terminal, the configuration data of the target terminal may be set at the cloud server, where the configuration data may be service data of a service party, process operation data, and the like.
When the configuration data to be configured in the target terminal is set in the cloud server, the manager can actively send the configuration data to the edge node; or, it is reasonable that the notification message is sent to the edge node first, and the configuration data may be pulled to the cloud server by the edge node after receiving the notification message.
And step S120, the edge node determines the current target state of the target terminal according to the historical order data of the target terminal and the current order data and/or the current service interface access condition of the target terminal.
Wherein the target state may include: a busy state and a non-busy state.
Specifically, the edge node communicates with the target terminal in real time, so that the edge node may store historical order data, current order data, and current service interface access conditions of the target terminal. And the edge node can synchronize the historical order data, the current order data and the current service interface access condition of the target terminal into the cloud server. The current service interface may be a service interface for placing orders, receiving orders, paying, and the like, and the embodiment of the present invention does not specifically limit the current service interface.
Therefore, after the edge node acquires the configuration data to be configured at the target terminal, the current target state of the target terminal can be determined according to the historical order data of the target terminal, the current order data and/or the current service interface access condition of the target terminal.
Specifically, the edge node may analyze the amount of order data of the target terminal in each time period every day according to historical order data of the target terminal in a week, 15 days or month, and if the amount of order data of each time period every day is large, the target terminal may be analyzed to be in a busy state in the time period, otherwise, the target terminal is analyzed to be in a non-busy state in the time period.
For clarity of description of the scheme, the current state determined by the historical order data of the target terminal may be referred to as a first state, and in practical applications, although the first state is a non-busy state, there may be special cases, for example, the current day is a holiday day, and then, the amount of the order data of each time period may be different from the amount of the order data of a normal day, so that when determining the current target state of the target terminal, the current order data of the target terminal and/or the current service interface access condition of the target terminal may be combined, where the current order data of the target terminal may be half an hour before the current time, or the amount of the order data of one hour; similarly, the current service interface access condition of the target terminal may be half an hour before the current time, or an hour before the current time. The embodiment of the present invention is not particularly limited thereto.
If the quantity of the current order data is large, or the access quantity of the current service interface of the target terminal is large, the second state of the target terminal can be analyzed to be a busy state, and otherwise, the second state of the target terminal is analyzed to be a non-busy state.
As can be seen from the above description, the first state may analyze a state of a certain duration after the current time, and the second state may analyze a state of a certain duration before the current time, so that when the first state and the second state are both not-busy states, it may be analyzed that the current target state of the target terminal is not-busy.
And step S130, when the target state is a non-busy state, issuing configuration data to the target terminal so that the target terminal performs configuration according to the configuration data.
When the target state is a non-busy state, the probability that the normal service operation of the target terminal is influenced by sending the configuration data to the target terminal is low, so that the terminal can perform configuration according to the configuration data after receiving the configuration data, and the configuration data can take effect.
According to the technical scheme provided by the embodiment of the invention, after the edge node acquires the configuration data to be configured at the target terminal from the cloud server, the current target state of the target terminal can be determined according to the historical order data of the target terminal, the current order data and/or the current service interface access condition of the target terminal, and the target state comprises the following steps: a busy state and a non-busy state; and when the target state is a non-busy state, issuing configuration data to the target terminal so that the target terminal performs configuration according to the configuration data. Therefore, when the target state is a non-busy state, the target terminal is in an idle state, and at the moment, the configuration data is sent to the target terminal, so that the probability of influencing the normal service operation of the target terminal is low.
After a data processing system is introduced, in a second aspect, a data processing method provided in an embodiment of the present invention is described in detail, where an execution subject of the data processing method is an edge node.
As shown in fig. 2, a data processing method provided in the embodiment of the present disclosure may specifically include the following steps:
s210, configuration data to be configured in the target terminal are obtained from the cloud server.
The target terminal can be any in-store silver collecting device.
When the administrator needs to set the configuration data of the target terminal, the configuration data of the target terminal may be set at the cloud server, where the configuration data may be service data of a service party, process operation data, and the like.
When the configuration data to be configured in the target terminal is set in the cloud server, the manager can actively send the configuration data to the edge node; or, it is reasonable that the notification message is sent to the edge node first, and the configuration data may be pulled to the cloud server by the edge node after receiving the notification message.
In one implementation manner, obtaining configuration data to be configured in a target terminal from a cloud server may include:
and receiving configuration data to be configured in the target terminal, which is sent by the cloud server, wherein the configuration data is sent to the edge node when the cloud server monitors that the edge node is in an online state.
In the implementation manner, the cloud server may detect whether the edge node is in an online state in real time, and send the configuration data to be configured in the target terminal to the edge node when the edge node is in the online state, so as to determine that the configuration data of the target terminal is successfully sent to the edge node.
And S220, determining the current target state of the target terminal according to the historical order data of the target terminal and the current order data and/or the current service interface access condition of the target terminal.
Wherein the target states include: a busy state and a non-busy state.
Specifically, the edge node communicates with the target terminal in real time, so that the edge node may store historical order data, current order data, and current service interface access conditions of the target terminal. And the edge node can synchronize the historical order data, the current order data and the current service interface access condition of the target terminal into the cloud server. The current service interface may be a service interface for placing orders, receiving orders, paying, and the like, and the embodiment of the present invention does not specifically limit the current service interface.
Therefore, after the edge node acquires the configuration data to be configured at the target terminal, the current target state of the target terminal can be determined according to the historical order data of the target terminal, the current order data and/or the current service interface access condition of the target terminal.
Specifically, the edge node may analyze the amount of order data of the target terminal in each time period every day according to historical order data of the target terminal in a week, 15 days or month, and if the amount of order data of each time period every day is large, the target terminal may be analyzed to be in a busy state in the time period, otherwise, the target terminal is analyzed to be in a non-busy state in the time period.
For clarity of description of the scheme, the current state determined by the historical order data of the target terminal may be referred to as a first state, and in practical applications, although the first state is a non-busy state, there may be special cases, for example, the current day is a holiday day, and then, the amount of the order data of each time period may be different from the amount of the order data of a normal day, so that when determining the current target state of the target terminal, the current order data of the target terminal and/or the current service interface access condition of the target terminal may be combined, where the current order data of the target terminal may be half an hour before the current time, or the amount of the order data of one hour; similarly, the current service interface access condition of the target terminal may be half an hour before the current time, or an hour before the current time. The embodiment of the present invention is not particularly limited thereto.
If the quantity of the current order data is large, or the access quantity of the current service interface of the target terminal is large, the second state of the target terminal can be analyzed to be a busy state, and otherwise, the second state of the target terminal is analyzed to be a non-busy state.
As can be seen from the above description, the first state may analyze a state of a certain duration after the current time, and the second state may analyze a state of a certain duration before the current time, so that when the first state and the second state are both not-busy states, it may be analyzed that the current target state of the target terminal is not-busy.
And S230, when the target state is a non-busy state, issuing configuration data to the target terminal so that the terminal can perform configuration according to the configuration data.
When the target state is a non-busy state, the probability that the normal service operation of the target terminal is influenced by sending the configuration data to the target terminal is low, so that the terminal can perform configuration according to the configuration data after receiving the configuration data, and the configuration data can take effect.
According to the technical scheme provided by the embodiment of the invention, after the edge node acquires the configuration data to be configured at the target terminal from the cloud server, the current target state of the target terminal can be determined according to the historical order data of the target terminal, the current order data and/or the current service interface access condition of the target terminal, and the target state comprises the following steps: a busy state and a non-busy state; and when the target state is a non-busy state, issuing configuration data to the target terminal so that the target terminal performs configuration according to the configuration data. Therefore, when the target state is a non-busy state, the target terminal is in an idle state, and at the moment, the configuration data is sent to the target terminal, so that the probability of influencing the normal service operation of the target terminal is low.
Based on the embodiment shown in fig. 2, S220 determines the current target state of the target terminal according to the historical order data of the target terminal, and the current order data and/or the current service interface access condition of the target terminal, as shown in fig. 3, and may include the following steps:
s221, obtaining historical order data of the target terminal, and current order data and/or current service interface access condition of the target terminal.
Specifically, the edge node serving as the execution subject may communicate with the target terminal in real time, so as to obtain historical order data, current order data, and/or current service interface access conditions of the target terminal. And historical order data, current order data and/or current business interface access conditions can be synchronized to the cloud server.
In addition, in order to prevent the normal service operation of the target terminal from being affected by the current order data and/or the current service interface access condition of the historical order data uploaded to the edge node by the target terminal, in an embodiment, the obtaining of the historical order data of the target terminal and the current order data and/or the current service interface access condition of the target terminal may include the following steps:
acquiring historical order data of a target terminal from an edge node locally, and current order data and/or current service interface access conditions of the target terminal;
the historical order data of the target terminal, and the current order data and/or the current service interface access condition of the target terminal are as follows: and when the target state is a non-busy state, the target terminal uploads the information to the edge node, or the information is acquired from the target terminal by the edge node.
Specifically, the historical order data of the target terminal, the current order data and/or the current service interface access condition may be that the target terminal uploads the non-busy state to the edge node, so that the edge node is already stored locally in advance, and therefore, the historical order data of the target terminal, the current order data and/or the current service interface access condition may be obtained locally from the edge node.
In practical applications, a case that an edge node fails may occur, and if a previous edge node fails, the edge node serving as an execution subject is a newly created edge node, so that there may be no historical order data and current order data and/or current service interface access condition in the edge node serving as the execution subject, at this time, in another embodiment, when the edge node is the newly created edge node, acquiring historical order data of the target terminal and current order data and/or current service interface access condition of the target terminal may include:
and acquiring historical order data of the target terminal, current order data of the target terminal and/or current service interface access conditions from the cloud server.
Specifically, since the previous failed edge node synchronizes the historical order data, the current order data and/or the current service interface access condition to the cloud server, the edge node serving as the execution subject may obtain the historical order data of the target terminal, the current order data and/or the current service interface access condition from the cloud server, so that the edge node serving as the execution subject may successfully obtain the historical order data of the target terminal, and the current order data and/or the current service interface access condition, thereby avoiding that the current target state of the target terminal cannot be analyzed due to the fact that the edge node serving as the execution subject cannot obtain the historical order data of the target terminal, and the current order data and/or the current service interface access condition.
S222, determining a first state of the target terminal according to the historical order data of the target terminal.
Wherein the first state comprises: a busy state and a non-busy state.
Specifically, the edge node may analyze a first quantity of order data in a current time period every day according to historical order data of the target terminal in a week, 15 days or month, determine that the first state of the target terminal at the current time is a non-busy state if the first quantity is small, and determine that the first state of the target terminal at the current time is a busy state if the first quantity is not small.
For example, the time period of the current time is 12:00 to 13:00, and in the historical order data, the number of order data in the time period of 12:00 to 13:00 per day is large, then it may be determined that the time period of the current time is busy, and at this time, it may be determined that the first state is a busy state.
And S223, determining a second state of the target terminal according to the current order data of the target terminal and/or the current service interface access condition of the target terminal.
Wherein the second state comprises: a busy state and a non-busy state.
In practical applications, although the first state is a non-busy state, there may be special cases, for example, the current day is a holiday, and then the amount of order data in each time period may be different from the amount of order data in a normal day, so that when determining the current target state of the target terminal, the current order data of the target terminal and/or the current service interface access condition of the target terminal may be combined, where the current order data of the target terminal may be half an hour before the current time, or the amount of order data of one hour; similarly, the current service interface access condition of the target terminal may be half an hour before the current time, or an hour before the current time.
If the number of the current order data is large, or the access amount of the current service interface of the target terminal is large, the second state of the target terminal can be analyzed to be a busy state, otherwise, the second state is a non-busy state.
As can be seen from the above description, the first state may analyze a state of a certain duration after the current time, and the second state may analyze a state of a certain duration before the current time, so that when the first state and the second state are both not-busy states, it may be analyzed that the current target state of the target terminal is not-busy.
S224, when both the first state and the second state are the non-busy state, determining that the target state is the non-busy state.
As can be seen from the above description, the first state may analyze a state of a certain duration after the current time, and the second state may analyze a state of a certain duration before the current time, so that when the first state and the second state are both in a non-busy state, it is indicated that the target terminal is actually in the non-busy state, and it can be analyzed that the target state in which the target terminal is currently located is in the non-busy state.
Therefore, by the technical scheme provided by the embodiment, the current target state of the target terminal can be accurately determined, so that the influence on the normal service operation of the target terminal caused by the configuration data issued by the edge node in the subsequent steps is avoided.
On the basis of the embodiment shown in fig. 3, in an implementation manner, when it is determined that the target status is a busy status, the data processing method may further include the following steps, respectively, step a1 to step a 3:
step a1, according to the historical order data of the target terminal, determining the target time period corresponding to the first state of the target terminal being not busy after the current time.
In this embodiment, when the target state is a busy state, the edge node may determine, according to the historical order data of the target terminal, a target time period corresponding to a non-busy state of the first state of the target terminal after the current time, that is, find a next idle time period by the historical order data.
For example, the historical order volume of 15:00 to 16:00 is small, and thus, 15:00 to 16:00 can be determined as the target time period.
Step a2, in the target time period, determining the second state of the target terminal according to the current order data of the target terminal and/or the current service interface access condition of the target terminal.
Specifically, after determining the idle time period after the current time according to the historical order data of the target terminal, in order to accurately determine whether the current target state of the target terminal is a non-busy state, a second state of the target terminal needs to be determined according to the current order data of the target terminal and/or the current service interface access condition of the target terminal.
If the number of the current order data is large, or the access amount of the current service interface of the target terminal is large, the second state of the target terminal can be analyzed to be a busy state, otherwise, the second state is a non-busy state.
Step a3, when the second state is not busy, the configuration data is sent to the target terminal.
As can be seen from the above description, the first state may analyze a state of a certain duration after the current time, and the second state may analyze a state of a certain duration before the current time, so that when the first state and the second state are both in a non-busy state, it is indicated that the target terminal is actually in the non-busy state, and it can be analyzed that the target state in which the target terminal is currently located is in the non-busy state.
Therefore, according to the technical scheme provided by the embodiment of the invention, when the target state is the non-busy state, the configuration data is sent to the target terminal, so that the influence on the normal service operation of the target terminal due to the issuing of the configuration data is avoided.
On the basis of the embodiment shown in fig. 2, after acquiring the historical order data of the target terminal, and the current order data of the target terminal and/or the current service interface access condition, in an implementation manner, the method further includes:
monitoring the change condition of the network state;
when the change condition of the network state is monitored to meet the preset transmission condition, sending historical order data and the current order data and/or the current service interface access condition to the cloud server, so that the cloud server stores the historical order data and the current order data and/or the current service interface access condition, and when the edge node breaks down, enabling the newly-created edge node to obtain the historical order data and the current order data and/or the current service interface access condition from the cloud server.
In this embodiment, the terminal may detect a network status change situation in real time, where the network status change situation may include a network transmission bandwidth change situation, a network transmission signal strength, and the like. When the network transmission bandwidth is larger than the preset transmission bandwidth, the network state change condition can be judged to meet the preset transmission condition; or, when the network transmission signal strength is greater than the preset transmission signal strength, it may be determined that the network state change condition satisfies the preset transmission condition. At this time, historical order data, current order data and/or current service interface access conditions can be sent to the cloud server, so that the historical order data, the current order data and/or the current service interface access conditions can be successfully sent to the cloud server, and after the historical order data and the current order data and/or the current service interface access conditions are received by the cloud server, the historical order data, the current order data and/or the current service interface access conditions can be stored. In this way, when the edge node fails, the newly created edge node may obtain historical order data, and current order data and/or current service interface access conditions from the cloud server.
Therefore, by monitoring the network state change condition, historical order data, current order data and/or current service interface access condition can be sent to the cloud server. Therefore, in the subsequent process, when the newly created edge node needs the historical order data and the current order data and/or the current service interface access condition, the historical order data and the current order data and/or the current service interface access condition can be obtained from the cloud server.
It is noted that, for simplicity of explanation, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will appreciate that the present invention is not limited by the order of acts, as some steps may, in accordance with the present invention, occur in other orders and/or concurrently. Further, those skilled in the art will appreciate that the embodiments described in the specification are exemplary embodiments and that no single embodiment is necessarily required by the invention.
In a second aspect, an embodiment of the present invention provides a data processing apparatus, which is applied to an edge node, and as shown in fig. 4, the apparatus includes:
a configuration data obtaining module 410, configured to obtain configuration data to be configured at a target terminal from a cloud server;
a target state determining module 420, configured to determine a target state in which the target terminal is currently located according to historical order data of the target terminal, and current order data and/or a current service interface access condition of the target terminal, where the target state includes a busy state and a non-busy state;
a configuration data issuing module 430, configured to issue the configuration data to the target terminal when the target state is a non-busy state, so that the target terminal performs configuration according to the configuration data.
According to the technical scheme provided by the embodiment of the invention, after the edge node acquires the configuration data to be configured at the target terminal from the cloud server, the current target state of the target terminal can be determined according to the historical order data of the target terminal, the current order data and/or the current service interface access condition of the target terminal, and the target state comprises the following steps: a busy state and a non-busy state; and when the target state is a non-busy state, issuing configuration data to the target terminal so that the target terminal performs configuration according to the configuration data. Therefore, when the target state is a non-busy state, the target terminal is in an idle state at present, and at the moment, the configuration data is sent to the target terminal, so that the probability of influencing the normal service operation of the target terminal is low.
Optionally, the target state determining module includes:
the data acquisition unit is used for acquiring historical order data of the target terminal and current order data and/or current service interface access conditions of the target terminal;
the first state determining unit is used for determining a first state of the target terminal according to historical order data of the target terminal, wherein the first state comprises a busy state and a non-busy state;
the second state determining unit is used for determining a second state of the target terminal according to the current order data of the target terminal and/or the current service interface access condition of the target terminal, wherein the second state comprises a busy state and a non-busy state;
and the target state determining unit is used for determining that the target state is a non-busy state when the first state and the second state are both non-busy states.
Optionally, when it is determined that the target status is a busy status, the apparatus further includes:
the time period determining module is used for determining the corresponding target time when the first state of the target terminal is a non-busy state after the current moment according to the historical order data of the target terminal;
the second state determining unit is further configured to determine, within the target time period, a second state of the target terminal according to current order data of the target terminal and/or a current service interface access condition of the target terminal;
and the configuration data issuing module is further used for issuing the configuration data to the target terminal when the second state is a non-busy state.
Optionally, the configuration data obtaining module is specifically configured to:
and receiving configuration data to be configured in a target terminal, which is sent by the cloud server, wherein the configuration data is sent to the edge node when the cloud server monitors that the edge node is in an online state.
Optionally, the apparatus further comprises:
a network state monitoring module, configured to monitor a network state change condition after obtaining the historical order data of the target terminal, and the current order data and/or the current service interface access condition of the target terminal;
the data sending module is used for sending the historical order data and the current order data and/or the current service interface access condition to the cloud server when the change condition of the network state is monitored to meet a preset transmission condition, so that the cloud server stores the historical order data and the current order data and/or the current service interface access condition, and when the edge node fails, the newly created edge node obtains the historical order data and the current order data and/or the current service interface access condition from the cloud server.
Optionally, the data obtaining unit is specifically configured to:
acquiring historical order data of the target terminal and current order data and/or current service interface access conditions of the target terminal from the edge node locally;
the historical order data of the target terminal, and the current order data and/or the current service interface access condition of the target terminal are: and when the target state is a non-busy state, the target terminal uploads the data to the edge node, or the data is acquired from the target terminal by the edge node.
In a third aspect, an embodiment of the present invention provides an edge node, as shown in fig. 5, including a memory 510, a processor 520, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the data processing method according to the first aspect when executing the program.
According to the technical scheme provided by the embodiment of the invention, after the edge node acquires the configuration data to be configured at the target terminal from the cloud server, the current target state of the target terminal can be determined according to the historical order data of the target terminal, the current order data and/or the current service interface access condition of the target terminal, and the target state comprises the following steps: a busy state and a non-busy state; and when the target state is a non-busy state, issuing configuration data to the target terminal so that the target terminal performs configuration according to the configuration data. Therefore, when the target state is a non-busy state, the target terminal is in an idle state at present, and at the moment, the configuration data is sent to the target terminal, so that the probability of influencing the normal service operation of the target terminal is low.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the data processing method according to the first aspect.
According to the technical scheme provided by the embodiment of the invention, after the edge node acquires the configuration data to be configured at the target terminal from the cloud server, the current target state of the target terminal can be determined according to the historical order data of the target terminal, the current order data and/or the current service interface access condition of the target terminal, and the target state comprises the following steps: a busy state and a non-busy state; and when the target state is a non-busy state, issuing configuration data to the target terminal so that the target terminal performs configuration according to the configuration data. Therefore, when the target state is a non-busy state, the target terminal is in an idle state at present, and at the moment, the configuration data is sent to the target terminal, so that the probability of influencing the normal service operation of the target terminal is low.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The data processing method and the data processing apparatus provided by the present invention are described in detail above, and the principle and the implementation of the present invention are explained in the present document by applying specific examples, and the description of the above examples is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (14)

1. A data processing method applied to an edge node, the method comprising:
acquiring configuration data to be configured at a target terminal from a cloud server;
determining a current target state of the target terminal according to historical order data of the target terminal and current order data and/or a current service interface access condition of the target terminal, wherein the target state comprises a busy state and a non-busy state;
and when the target state is a non-busy state, issuing the configuration data to the target terminal so that the target terminal performs configuration according to the configuration data.
2. The method according to claim 1, wherein the determining a target state of the target terminal according to historical order data of the target terminal, and current order data and/or a current service interface access condition of the target terminal comprises:
acquiring historical order data of the target terminal, and current order data and/or current service interface access conditions of the target terminal;
determining a first state of the target terminal according to historical order data of the target terminal, wherein the first state comprises a busy state and a non-busy state;
determining a second state of the target terminal according to the current order data of the target terminal and/or the current service interface access condition of the target terminal, wherein the second state comprises a busy state and a non-busy state;
and when the first state and the second state are both non-busy states, determining that the target state is a non-busy state.
3. The method of claim 2, wherein upon determining that the target status is a busy status, the method further comprises:
determining a target time period corresponding to the first state of the target terminal which is not busy after the current moment according to the historical order data of the target terminal;
in the target time period, determining a second state of the target terminal according to the current order data of the target terminal and/or the current service interface access condition of the target terminal;
and when the second state is a non-busy state, issuing the configuration data to the target terminal.
4. The method according to any one of claims 1 to 3, wherein the obtaining of the configuration data to be configured at the target terminal from the cloud server comprises:
and receiving configuration data to be configured in a target terminal, which is sent by the cloud server, wherein the configuration data is sent to the edge node when the cloud server monitors that the edge node is in an online state.
5. The method according to claim 2, wherein after the obtaining of the historical order data of the target terminal, and the current order data and/or the current service interface access condition of the target terminal, the method further comprises:
monitoring the change condition of the network state;
when the change condition of the network state is monitored to meet a preset transmission condition, sending the historical order data and the current order data and/or the current service interface access condition to the cloud server, so that the cloud server stores the historical order data and the current order data and/or the current service interface access condition, and when the edge node breaks down, enabling a newly created edge node to obtain the historical order data and the current order data and/or the current service interface access condition from the cloud server.
6. The method according to claim 2, wherein the acquiring the historical order data of the target terminal, and the current order data and/or the current service interface access condition of the target terminal comprises:
acquiring historical order data of the target terminal and current order data and/or current service interface access conditions of the target terminal from the edge node locally;
the historical order data of the target terminal, and the current order data and/or the current service interface access condition of the target terminal are: and when the target state is a non-busy state, the target terminal uploads the data to the edge node, or the data is acquired from the target terminal by the edge node.
7. A data processing apparatus, applied to an edge node, the apparatus comprising:
the configuration data acquisition module is used for acquiring configuration data to be configured at the target terminal from the cloud server;
the target state determining module is used for determining the current target state of the target terminal according to the historical order data of the target terminal and the current order data and/or the current service interface access condition of the target terminal, wherein the target state comprises a busy state and a non-busy state;
and the configuration data issuing module is used for issuing the configuration data to the target terminal when the target state is a non-busy state so as to enable the target terminal to perform configuration according to the configuration data.
8. The apparatus of claim 7, wherein the target state determination module comprises:
the data acquisition unit is used for acquiring historical order data of the target terminal and current order data and/or current service interface access conditions of the target terminal;
the first state determining unit is used for determining a first state of the target terminal according to historical order data of the target terminal, wherein the first state comprises a busy state and a non-busy state;
the second state determining unit is used for determining a second state of the target terminal according to the current order data of the target terminal and/or the current service interface access condition of the target terminal, wherein the second state comprises a busy state and a non-busy state;
and the target state determining unit is used for determining that the target state is a non-busy state when the first state and the second state are both non-busy states.
9. The apparatus of claim 8, wherein upon determining that the target status is a busy status, the apparatus further comprises:
the time period determining module is used for determining the corresponding target time when the first state of the target terminal is a non-busy state after the current moment according to the historical order data of the target terminal;
the second state determining unit is further configured to determine, within the target time period, a second state of the target terminal according to current order data of the target terminal and/or a current service interface access condition of the target terminal;
and the configuration data issuing module is further used for issuing the configuration data to the target terminal when the second state is a non-busy state.
10. The apparatus according to any one of claims 7 to 9, wherein the configuration data obtaining module is specifically configured to:
and receiving configuration data to be configured in a target terminal, which is sent by the cloud server, wherein the configuration data is sent to the edge node when the cloud server monitors that the edge node is in an online state.
11. The apparatus of claim 8, further comprising:
a network state monitoring module, configured to monitor a network state change condition after obtaining the historical order data of the target terminal, and the current order data and/or the current service interface access condition of the target terminal;
the data sending module is used for sending the historical order data and the current order data and/or the current service interface access condition to the cloud server when the change condition of the network state is monitored to meet a preset transmission condition, so that the cloud server stores the historical order data and the current order data and/or the current service interface access condition, and when the edge node fails, the newly created edge node obtains the historical order data and the current order data and/or the current service interface access condition from the cloud server.
12. The apparatus according to claim 8, wherein the data acquisition unit is specifically configured to:
acquiring historical order data of the target terminal and current order data and/or current service interface access conditions of the target terminal from the edge node locally;
the historical order data of the target terminal, and the current order data and/or the current service interface access condition of the target terminal are: and when the target state is a non-busy state, the target terminal uploads the data to the edge node, or the data is acquired from the target terminal by the edge node.
13. An edge node comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the data processing method according to any of claims 1 to 6 when executing the program.
14. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the data processing method according to any one of claims 1 to 6.
CN202010682648.7A 2020-07-15 2020-07-15 Data processing method and device, edge node and storage medium Withdrawn CN112003722A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010682648.7A CN112003722A (en) 2020-07-15 2020-07-15 Data processing method and device, edge node and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010682648.7A CN112003722A (en) 2020-07-15 2020-07-15 Data processing method and device, edge node and storage medium

Publications (1)

Publication Number Publication Date
CN112003722A true CN112003722A (en) 2020-11-27

Family

ID=73468194

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010682648.7A Withdrawn CN112003722A (en) 2020-07-15 2020-07-15 Data processing method and device, edge node and storage medium

Country Status (1)

Country Link
CN (1) CN112003722A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105848190A (en) * 2016-05-24 2016-08-10 北京小米移动软件有限公司 OTA upgrading method and apparatus
CN108683604A (en) * 2018-04-03 2018-10-19 平安科技(深圳)有限公司 concurrent access control method, terminal device and medium
CN109257294A (en) * 2018-09-07 2019-01-22 武汉斗鱼网络科技有限公司 Service dynamic down method, device, server and storage medium based on redis
CN109302304A (en) * 2018-07-22 2019-02-01 广州市星翼电子科技有限公司 A method of configuration wireless serial LORA equipment is instructed based on AT
CN109426896A (en) * 2017-08-23 2019-03-05 北京三快在线科技有限公司 A kind of method and device of determining region transport power state, electronic equipment
CN110072292A (en) * 2019-05-07 2019-07-30 哈尔滨海能达科技有限公司 The processing of traffic channel state and data transmission method for uplink, device and relevant device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105848190A (en) * 2016-05-24 2016-08-10 北京小米移动软件有限公司 OTA upgrading method and apparatus
CN109426896A (en) * 2017-08-23 2019-03-05 北京三快在线科技有限公司 A kind of method and device of determining region transport power state, electronic equipment
CN108683604A (en) * 2018-04-03 2018-10-19 平安科技(深圳)有限公司 concurrent access control method, terminal device and medium
CN109302304A (en) * 2018-07-22 2019-02-01 广州市星翼电子科技有限公司 A method of configuration wireless serial LORA equipment is instructed based on AT
CN109257294A (en) * 2018-09-07 2019-01-22 武汉斗鱼网络科技有限公司 Service dynamic down method, device, server and storage medium based on redis
CN110072292A (en) * 2019-05-07 2019-07-30 哈尔滨海能达科技有限公司 The processing of traffic channel state and data transmission method for uplink, device and relevant device

Similar Documents

Publication Publication Date Title
US10152382B2 (en) Method and system for monitoring virtual machine cluster
US10572285B2 (en) Method and apparatus for elastically scaling virtual machine cluster
US11544052B2 (en) Tenant declarative deployments with release staggering
CN108540533B (en) Request answering method and device
CN111078506A (en) Business data batch running task monitoring method and device
CN112099825A (en) Method, device and equipment for upgrading component and storage medium
CN112860343A (en) Configuration changing method, system, device, electronic equipment and storage medium
CN114328132A (en) Method, device, equipment and medium for monitoring state of external data source
CN107395428A (en) Version file upgrade method, device, server and client device
CN110727563A (en) Cloud service alarm method and device for preset customer
CN114363334A (en) Network configuration method, device and equipment for cloud system and cloud desktop virtual machine
CN112631687B (en) Service cluster configuration method, device and equipment
CN111756778A (en) Server disk cleaning script pushing method and device and storage medium
CN105897487B (en) Equipment management method and device for operation and maintenance system
CN109710285B (en) Equipment upgrading method and system
CN112003722A (en) Data processing method and device, edge node and storage medium
CN109284275B (en) Cloud platform virtual machine file system monitoring method and device
CN112463514A (en) Monitoring method and device for distributed cache cluster
CN116319758A (en) Data migration method, device, electronic equipment and readable storage medium
US10728323B2 (en) Method and apparatus for operating infrastructure layer in cloud computing architecture
CN115550424A (en) Data caching method, device, equipment and storage medium
CN111290873B (en) Fault processing method and device
CN112507193A (en) Data updating method, device, equipment and storage medium
CN107463562A (en) A kind of information processing method, system and server
CN111176959A (en) Early warning method, system and storage medium for cross-domain application server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20201127