Node distribution method, system, electronic equipment and storage medium

文档序号:1784924 发布日期:2019-12-06 浏览:29次 中文

阅读说明:本技术 一种节点分配方法、系统及电子设备和存储介质 (Node distribution method, system, electronic equipment and storage medium ) 是由 张英杰 于 2019-09-09 设计创作,主要内容包括:本申请公开了一种节点分配方法、系统及设备和介质,该方法包括:获取用于申请节点的请求;确定请求的发起方,获取发起方的历史节点使用信息;确定预先为请求对应的数据分配的预分配节点;根据历史节点使用信息确定待分配节点质量和每种待分配节点质量对应的预设比例,以确定待分配节点数量;基于待分配节点质量和对应的节点数量从预分配节点中选择目标节点分配至发起方。本申请预先基于节点可用信息为不同数据分配了预分配节点,获取到用于申请节点的请求后,将获取请求发起方的历史节点使用信息,根据历史节点使用信息确定待分配节点的质量及对应的节点数量,从预分配节点中动态选择节点进行分配,避免优质节点过早被分配完,提高分配的均衡性。(the application discloses a node distribution method, a system, equipment and a medium, wherein the method comprises the following steps: acquiring a request for applying for a node; determining an initiator of the request, and acquiring historical node use information of the initiator; determining a pre-distribution node which is pre-distributed for the data corresponding to the request; determining the quality of the nodes to be distributed and a preset proportion corresponding to the quality of each node to be distributed according to the historical node use information so as to determine the number of the nodes to be distributed; and selecting a target node from the pre-distribution nodes to distribute to the initiator based on the quality of the nodes to be distributed and the corresponding number of the nodes. According to the method and the device, pre-distribution nodes are distributed for different data in advance based on node available information, after a request for applying for the nodes is obtained, historical node use information of a request initiator is obtained, the quality of the nodes to be distributed and the number of the corresponding nodes are determined according to the historical node use information, the nodes are dynamically selected from the pre-distribution nodes to be distributed, the high-quality nodes are prevented from being distributed too early, and the distribution balance is improved.)

1. A node allocation method, comprising:

Acquiring a request for applying for a node;

determining an initiator of the request, and acquiring historical node use information of the initiator;

determining a pre-allocation node which is allocated for data corresponding to the request in advance based on node available information;

Determining the quality of the nodes to be distributed and a preset proportion corresponding to the quality of each node to be distributed according to the historical node use information;

determining the number of nodes to be distributed according to the preset proportion;

And selecting a target node from the pre-distribution nodes to distribute to the initiator based on the quality of the nodes to be distributed and the corresponding quantity of the nodes to be distributed.

2. The node allocation method according to claim 1, wherein the selecting a target node from the pre-allocated nodes to allocate to the initiator based on the quality of the nodes to be allocated and the corresponding number of the nodes to be allocated comprises:

Acquiring a random sequence containing all the pre-distributed nodes;

And selecting a target node from the random sequence to be distributed to the initiator based on the quality of the nodes to be distributed and the corresponding number of the nodes to be distributed.

3. The node allocation method according to claim 1, wherein the selecting a target node from the pre-allocated nodes to allocate to the initiator based on the quality of the nodes to be allocated and the corresponding number of the nodes to be allocated comprises:

and if the total number of the nodes corresponding to the quality of any one of the pre-distributed nodes is less than the number of the nodes to be distributed, selecting the pre-distributed nodes corresponding to the quality of other nodes until the number of the nodes to be distributed is met.

4. the node allocation method according to claim 1, further comprising:

Determining a node to be distributed for providing service, and determining whether the node to be distributed is available to obtain node available information;

and determining a pre-distribution node for each video stream according to the available information of the nodes and the heat degree of the data.

5. The node allocation method according to any one of claims 1 to 4, wherein the obtaining of the historical node usage information of the initiator comprises:

Acquiring network characteristic information of the initiator and node characteristic information of a history node used under the current network characteristic; the node characteristic information comprises a node connection success rate and/or a service goodness rate.

6. the node allocation method according to claim 5, wherein after obtaining the network feature information of the initiator and the node feature information of the historical nodes used under the current network feature, the method further comprises:

and performing association recording on the network characteristic information and the node characteristic information so as to directly determine the node characteristic information of the required node according to the network characteristic information of the request initiator after acquiring the request of the application node.

7. The node allocation method according to claim 6, further comprising:

monitoring the recorded network characteristic information and the recorded node characteristic information;

And if the network characteristic information and the node characteristic information are not updated after exceeding a preset time period, generating overtime reminding information.

8. A node distribution system, comprising:

a request acquisition module, configured to acquire a request for applying for a node;

The information acquisition module is used for determining an initiator of the request and acquiring historical node use information of the initiator;

The node acquisition module is used for determining a pre-distribution node which is pre-distributed for the data corresponding to the request based on the node available information;

the proportion determining module is used for determining the quality of the nodes to be distributed and a preset proportion corresponding to the quality of each node to be distributed according to the historical node use information;

The quantity determining module is used for determining the quantity of the nodes to be distributed according to the preset proportion;

And the node distribution module is used for selecting a target node from the pre-distribution nodes to distribute to the initiator based on the quality of the nodes to be distributed and the corresponding number of the nodes to be distributed.

9. An electronic device, comprising:

A memory for storing a computer program;

a processor for implementing the steps of the node allocation method according to any one of claims 1 to 7 when executing the computer program.

10. 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 node allocation method according to any one of claims 1 to 7.

Technical Field

The present application relates to the field of shared computing technologies, and in particular, to a node allocation method, a node allocation system, an electronic device, and a computer-readable storage medium.

background

In the prior art, a Content Delivery Network (CDN) is adopted to realize video data delivery, so that a client can obtain requested video data for playing, storing, or the like. A conventional content delivery network generally uses a server of an IDC room as a node of a content CDN. The server of the IDC machine room is used as a node for content distribution, although the service is relatively stable, the number of the nodes is small, and the generated bandwidth cost is high, so that the cost of video service is high, and the phenomenon of blocking is easy to occur.

In order to save cost, shared computing is now applied in CDNs for video services, i.e. a shared node is introduced to provide content delivery services. These shared nodes are deployed at the edge of the network for storing and distributing video data, and these nodes have a low service cost, and are generally called low-cost nodes. In an application scenario of shared computing, an application program deployed on a client obtains part of data originally provided by a traditional CDN from a plurality of low-cost nodes (such as intelligent hardware) through peer-to-peer transmission, so as to achieve the purpose of saving part of bandwidth. Currently, the scheduling system is responsible for allocating nodes to all applications meeting the requirements, and the nodes meeting the network conditions are allocated according to the sequence of arrival of requests of application nodes.

In the above allocation strategy, there are many disadvantages in allocating nodes based on the order of arrival of the application node requests: the high-quality nodes may be used up first, so that only the low-quality nodes can be used by the subsequent application programs, and the node distribution is unbalanced.

Disclosure of Invention

The present application aims to provide a node allocation method, a node allocation system, an electronic device, and a computer-readable storage medium, which avoid that high-quality nodes are allocated too early, and improve the balance of node allocation.

In order to achieve the above object, the present application provides a node allocation method, including:

acquiring a request for applying for a node;

Determining an initiator of the request, and acquiring historical node use information of the initiator;

Determining a pre-allocation node which is allocated for data corresponding to the request in advance based on node available information;

Determining the quality of the nodes to be distributed and a preset proportion corresponding to the quality of each node to be distributed according to the historical node use information;

determining the number of nodes to be distributed according to the preset proportion;

And selecting a target node from the pre-distribution nodes to distribute to the initiator based on the quality of the nodes to be distributed and the corresponding quantity of the nodes to be distributed.

optionally, the selecting a target node from the pre-distribution nodes to distribute to the initiator based on the quality of the nodes to be distributed and the corresponding number of the nodes to be distributed includes:

acquiring a random sequence containing all the pre-distributed nodes;

and selecting a target node from the random sequence to be distributed to the initiator based on the quality of the nodes to be distributed and the corresponding number of the nodes to be distributed.

Optionally, the selecting a target node from the pre-distribution nodes to distribute to the initiator based on the quality of the nodes to be distributed and the corresponding number of the nodes to be distributed includes:

And if the total number of the nodes corresponding to the quality of any one of the pre-distributed nodes is less than the number of the nodes to be distributed, selecting the pre-distributed nodes corresponding to the quality of other nodes until the number of the nodes to be distributed is met.

Optionally, the method further includes:

determining a node to be distributed for providing service, and determining whether the node to be distributed is available to obtain node available information;

And determining a pre-distribution node for each video stream according to the available information of the nodes and the heat degree of the data.

Optionally, the obtaining of the historical node usage information of the initiator includes:

acquiring network characteristic information of the initiator and node characteristic information of a history node used under the current network characteristic; the node characteristic information comprises a node connection success rate and/or a service goodness rate.

optionally, after the obtaining of the network feature information of the initiator and the node feature information of the history node used under the current network feature, the method further includes:

and performing association recording on the network characteristic information and the node characteristic information so as to directly determine the node characteristic information of the required node according to the network characteristic information of the request initiator after acquiring the request of the application node.

Optionally, the method further includes:

monitoring the recorded network characteristic information and the recorded node characteristic information;

And if the network characteristic information and the node characteristic information are not updated after exceeding a preset time period, generating overtime reminding information.

To achieve the above object, the present application provides a node allocation system, including:

a request acquisition module, configured to acquire a request for applying for a node;

The information acquisition module is used for determining an initiator of the request and acquiring historical node use information of the initiator;

The node acquisition module is used for determining a pre-distribution node which is pre-distributed for the data corresponding to the request based on the node available information;

the proportion determining module is used for determining the quality of the nodes to be distributed and a preset proportion corresponding to the quality of each node to be distributed according to the historical node use information;

the quantity determining module is used for determining the quantity of the nodes to be distributed according to the preset proportion;

and the node distribution module is used for selecting a target node from the pre-distribution nodes to distribute to the initiator based on the quality of the nodes to be distributed and the corresponding number of the nodes to be distributed.

to achieve the above object, the present application provides an electronic device including:

A memory for storing a computer program;

A processor for implementing the steps of any of the node allocation methods disclosed above when executing the computer program.

to achieve the above object, the present application provides a computer-readable storage medium having a computer program stored thereon, which when executed by a processor, implements the steps of any of the node allocation methods disclosed in the foregoing.

According to the above scheme, the node allocation method provided by the application includes: acquiring a request for applying for a node; determining an initiator of the request, and acquiring historical node use information of the initiator; determining a pre-allocation node which is allocated for data corresponding to the request in advance based on node available information; determining the quality of the nodes to be distributed and a preset proportion corresponding to the quality of each node to be distributed according to the historical node use information; determining the number of nodes to be distributed according to the preset proportion; and selecting a target node from the pre-distribution nodes to distribute to the initiator based on the quality of the nodes to be distributed and the corresponding quantity of the nodes to be distributed. According to the method, the corresponding pre-distribution nodes are distributed for different data in advance based on the node available information, after the request for applying the nodes is obtained, the historical node use information of the request initiator is obtained, the quality and the corresponding proportion of the nodes to be distributed are further determined according to the historical node use information, the number of the nodes to be distributed is determined according to the proportion, the target nodes with the corresponding number are dynamically selected from the pre-distribution nodes to be distributed to the request initiator, the condition that high-quality nodes are distributed too early when the distribution is carried out only according to the sequence of the request is avoided, and the balance of node distribution is improved.

the application also discloses a node distribution system, an electronic device and a computer readable storage medium, which can also achieve the technical effects.

It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.

drawings

In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.

Fig. 1 is a flowchart of a node allocation method disclosed in an embodiment of the present application;

fig. 2 is an overall flowchart of a specific node allocation method disclosed in the embodiment of the present application;

Fig. 3 is a structural diagram of a node distribution system disclosed in an embodiment of the present application;

fig. 4 is a block diagram of an electronic device disclosed in an embodiment of the present application;

Fig. 5 is a block diagram of another electronic device disclosed in the embodiments of the present application.

Detailed Description

the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

In the prior art, a scheduling system is responsible for allocating nodes to all applications meeting requirements, and the nodes meeting network conditions are allocated according to the sequence of arrival of requests of application nodes. Under the allocation strategy, the high-quality nodes may be used up first, so that the application programs in the later sequence can only use the nodes with slightly poor quality, and the node allocation is unbalanced.

therefore, the embodiment of the application discloses a node allocation method, which avoids that high-quality nodes are allocated early and improves the balance of node allocation.

Referring to fig. 1, a node allocation method disclosed in the embodiment of the present application includes:

S11: acquiring a request for applying for a node;

in this step, a request for applying for a node is obtained, where the request may be a request initiated by an application program, and the node may specifically be an intelligent hardware device, and the intelligent hardware device may be a personal storage device (such as a guest playing cloud, a money making device, and the like), an intelligent television, a television box, a network storage device (NAS), a router, and the like.

s12: determining an initiator of the request, and acquiring historical node use information of the initiator;

After a request for applying for a node is obtained, an initiator of the request is further determined, and the use information of the initiator history for the node is obtained.

specifically, the process of obtaining the historical node usage information of the initiator may specifically include: acquiring network characteristic information of an initiator and node characteristic information of a history node used under the current network characteristic; the node characteristic information includes but is not limited to the connection power and/or the service goodness of the node, and also includes whether a UPNP mapping exists; the network characteristic information includes but is not limited to the type of NAT located, geographical location information, operator information, and the like.

It can be understood that, in this embodiment, after the network feature information of the initiator and the node feature information of the history node used under the current network feature are obtained, the network feature information and the node feature information may also be subjected to association recording, so that after a subsequent request of another application node is obtained, the history node use information of the request initiator does not need to be obtained again, and the node feature information of the required node may be determined directly according to the network feature information of the request initiator.

s13: determining a pre-allocation node which is allocated for data corresponding to the request in advance based on node available information;

It should be noted that, in this embodiment, a node is pre-allocated in advance, specifically, data corresponding to the request may specifically be video stream data, and this embodiment may first determine all nodes to be allocated for providing services, and determine whether the nodes to be allocated are available, so as to obtain node availability information; and determining a corresponding pre-distribution node for each video stream according to the node available information and the heat degree of the data, wherein the data can be video stream data, namely determining the corresponding pre-distribution node for each video stream according to the node available information and the heat degree of the video stream.

correspondingly, in this embodiment, after the request for applying for the node is obtained, the video stream information corresponding to the current request is obtained, so as to determine the node corresponding to the video stream in the pre-allocated node.

s14: determining the target node quality and a preset proportion corresponding to each target node quality according to the historical node use information;

In this embodiment, when determining the quality of the target node according to the historical node usage information, the nodes may be specifically divided into three qualities, i.e., high, medium, and low, and when selecting the target node from the pre-allocation nodes to allocate to the initiator according to the historical node usage information, the quality of the target node and the preset proportion corresponding to the quality of each target node may be determined according to the historical node usage information.

In a specific implementation, after obtaining parameters for characterizing the service quality, such as a node connection success rate, a service goodness rate, and the like, when the target node provides a service for an application before obtaining the target node, an evaluation value for the service quality of the node may be determined based on the parameters for characterizing the service quality, specifically, a weighted value may be calculated by using a specific numerical value of each of the parameters and a corresponding preset weight, and the weighted value is used as the evaluation value of the service quality of the node. In this embodiment, two or more thresholds may be preset, and the node service quality may be divided into multiple levels by using multiple thresholds. For example, a first threshold value and a second threshold value may be set in advance, where the first threshold value is smaller than the second threshold value, the node service quality is classified into three levels of high, medium, and low by the first threshold value and the second threshold value, that is, a quality level corresponding to a node having a service quality evaluation value lower than the first threshold value is determined to be low, a quality level corresponding to a node having a service quality evaluation value between the first threshold value and the second threshold value is determined to be medium, and a quality level corresponding to a node having a service quality evaluation value higher than the second threshold value is determined to be high. After the evaluation value of the service quality of the node corresponding to the current node is determined, the range of the current evaluation value can be determined by comparing the evaluation value of the current node with the first threshold and the second threshold, and then the service quality grade corresponding to the current node is determined. The preset weight, the first threshold value and the second threshold value may be set according to circumstances in specific implementations, and the present invention is not limited to this.

It will be appreciated that the preset ratio may be a ratio preset by the system, or may be a ratio manually set during implementation. By allocating nodes of each quality to the request of the current application node, the possibility that all the nodes of all the qualities can be used is ensured, and the nodes are prevented from being omitted. In addition, in this embodiment, for a node with poor service quality, it may be disabled first and retried after a period of time.

S15: determining the number of target nodes according to the preset proportion;

specifically, in this step, the number of target nodes corresponding to the quality of each target node may be determined according to the total number of nodes required by the request of the currently applied node and the preset ratio corresponding to the quality of each target node.

S16: and selecting a target node from the pre-distribution nodes to distribute to the initiator based on the quality of the target node and the corresponding quantity of the target nodes.

As a preferred embodiment, when selecting a target node from the pre-allocated nodes to allocate to the initiator based on the quality of the target node and the number of the corresponding target nodes, this embodiment may first obtain a random sequence including all the pre-allocated nodes, so that the target node may be selected from the random sequence to allocate to the initiator based on the quality of the target node and the number of the corresponding target nodes, and the scheduling performance of the node when applying for is ensured. It can be understood that, in the node allocation process, if the total number of nodes corresponding to the quality of any one of the required target nodes is smaller than the number of the target nodes, the target nodes corresponding to the qualities of other nodes are selected until the number of the target nodes is met. For example, if the number of required high-quality nodes is 30 and the number of high-quality nodes in the corresponding pre-allocated nodes is 20, 10 nodes are selected from the high-quality nodes to meet the requirement of the number of nodes.

further, in order to prevent data from not being updated for a long time, the embodiment may monitor the recorded network characteristic information and node characteristic information; and if the network characteristic information and the node characteristic information are not updated after exceeding a preset time period, generating overtime reminding information.

according to the above scheme, the node allocation method provided by the application includes: acquiring a request for applying for a node; determining an initiator of the request, and acquiring historical node use information of the initiator; determining a pre-allocation node which is allocated for data corresponding to the request in advance based on node available information; determining the quality of the nodes to be distributed and a preset proportion corresponding to the quality of each node to be distributed according to the historical node use information; determining the number of nodes to be distributed according to the preset proportion; and selecting a target node from the pre-distribution nodes to distribute to the initiator based on the quality of the nodes to be distributed and the corresponding quantity of the nodes to be distributed. According to the method, the corresponding pre-distribution nodes are distributed for different data in advance based on the node available information, after the request for applying the nodes is obtained, the historical node use information of the request initiator is obtained, the quality and the corresponding proportion of the nodes to be distributed are further determined according to the historical node use information, the number of the nodes to be distributed is determined according to the proportion, the target nodes with the corresponding number are dynamically selected from the pre-distribution nodes to be distributed to the request initiator, the condition that high-quality nodes are distributed too early when the distribution is carried out only according to the sequence of the request is avoided, and the balance of node distribution is improved.

fig. 2 is an overall flowchart of a specific node allocation method according to an embodiment of the present application. As shown in fig. 2, the present embodiment collects data reported by a node, such as network information and a use condition, where the use condition specifically refers to how much traffic and bandwidth are used and which application program the node has served for; and collecting information when the application program requests the nodes from the scheduling, wherein the information comprises data flow information and the use condition of the historical distributed nodes. And then nodes are pre-distributed based on the node information and the video stream information, each video stream comprises nodes with various characteristics, and the nodes are selected from the pre-distributed nodes when the nodes are applied in the later period.

in this embodiment, the nodes are summarized to the corresponding network characteristics according to the node information and the information when the application program applies to the scheduling request node to obtain the node service quality data, the available node characteristics are selected from the node service quality data according to the characteristics of the application program applying the node each time, and the node finally providing the service is selected from the pre-allocated nodes according to the service qualities of different characteristics.

it can be understood that, because a large number of applications are in various complex network environments, the nodes have different service qualities for different applications, and it is only one-sidedly inaccurate to evaluate the quality of the nodes according to the historical use conditions of the nodes.

In the following, a node distribution system provided by an embodiment of the present application is introduced, and a node distribution system described below and a node distribution method described above may be referred to each other.

referring to fig. 3, a node distribution system provided in an embodiment of the present application includes:

A request obtaining module 101, configured to obtain a request for applying for a node;

an information obtaining module 102, configured to determine an initiator of the request, and obtain historical node usage information of the initiator;

A node obtaining module 103, configured to determine a pre-allocation node that is pre-allocated to data corresponding to the request based on node available information;

A ratio determining module 104, configured to determine, according to the historical node usage information, the quality of the node to be allocated and a preset ratio corresponding to the quality of each node to be allocated;

A quantity determining module 105, configured to determine the quantity of the nodes to be allocated according to the preset proportion;

a node allocating module 106, configured to select a target node from the pre-allocated nodes to allocate to the initiator based on the quality of the node to be allocated and the number of the corresponding nodes to be allocated.

for the specific implementation process of the modules 101 to 106, reference may be made to the corresponding content disclosed in the foregoing embodiments, and details are not repeated here.

the present application further provides an electronic device, and as shown in fig. 4, an electronic device provided in an embodiment of the present application includes:

A memory 100 for storing a computer program;

the processor 200, when executing the computer program, may implement the steps of the node allocation method disclosed in any of the foregoing embodiments.

specifically, the memory 100 includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer-readable instructions, and the internal memory provides an environment for the operating system and the computer-readable instructions in the non-volatile storage medium to run. The processor 200, which in some embodiments may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor or other data Processing chip, provides computing and control capabilities for the electronic device, and when executing the computer program stored in the memory 100, the following steps may be implemented:

Acquiring a request for applying for a node; determining an initiator of the request, and acquiring historical node use information of the initiator; determining a pre-allocation node which is allocated for data corresponding to the request in advance based on node available information; determining the quality of the nodes to be distributed and a preset proportion corresponding to the quality of each node to be distributed according to the historical node use information; determining the number of nodes to be distributed according to the preset proportion; and selecting a target node from the pre-distribution nodes to distribute to the initiator based on the quality of the nodes to be distributed and the corresponding quantity of the nodes to be distributed.

Preferably, when the processor 200 executes the computer subprogram stored in the memory 100, the following steps can be implemented: acquiring a random sequence containing all the pre-distributed nodes; and selecting a target node from the random sequence to be distributed to the initiator based on the quality of the nodes to be distributed and the corresponding number of the nodes to be distributed.

preferably, when the processor 200 executes the computer subprogram stored in the memory 100, the following steps can be implemented: and if the total number of the nodes corresponding to the quality of any one of the pre-distributed nodes is less than the number of the nodes to be distributed, selecting the pre-distributed nodes corresponding to the quality of other nodes until the number of the nodes to be distributed is met.

preferably, when the processor 200 executes the computer subprogram stored in the memory 100, the following steps can be implemented: determining a node to be distributed for providing service, and determining whether the node to be distributed is available to obtain node available information; and determining a pre-distribution node for each video stream according to the available information of the nodes and the heat degree of the data.

preferably, when the processor 200 executes the computer subprogram stored in the memory 100, the following steps can be implemented: acquiring network characteristic information of the initiator and node characteristic information of a history node used under the current network characteristic; the node characteristic information comprises a node connection success rate and/or a service goodness rate.

Preferably, when the processor 200 executes the computer subprogram stored in the memory 100, the following steps can be implemented: and performing association recording on the network characteristic information and the node characteristic information so as to directly determine the node characteristic information of the required node according to the network characteristic information of the request initiator after acquiring the request of the application node.

preferably, when the processor 200 executes the computer subprogram stored in the memory 100, the following steps can be implemented: monitoring the recorded network characteristic information and the recorded node characteristic information; and if the network characteristic information and the node characteristic information are not updated after exceeding a preset time period, generating overtime reminding information.

On the basis of the above embodiment, as a preferred implementation, referring to fig. 5, the electronic device further includes:

and an input interface 300 connected to the processor 200, for acquiring computer programs, parameters and instructions imported from the outside, and storing the computer programs, parameters and instructions into the memory 100 under the control of the processor 200. The input interface 300 may be connected to an input device for receiving parameters or instructions manually input by a user. The input device may be a touch layer covered on a display screen, or a button, a track ball or a touch pad arranged on a terminal shell, or a keyboard, a touch pad or a mouse, etc.

and a display unit 400 connected to the processor 200 for displaying data processed by the processor 200 and for displaying a visualized user interface. The display unit 400 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch panel, or the like.

And a network port 500 connected to the processor 200 for performing communication connection with each external terminal device. The communication technology adopted by the communication connection can be a wired communication technology or a wireless communication technology, such as a mobile high definition link (MHL) technology, a Universal Serial Bus (USB), a High Definition Multimedia Interface (HDMI), a wireless fidelity (WiFi), a bluetooth communication technology, a low power consumption bluetooth communication technology, an ieee802.11 s-based communication technology, and the like.

while FIG. 5 shows only an electronic device having the assembly 100 and 500, those skilled in the art will appreciate that the configuration shown in FIG. 5 does not constitute a limitation of the electronic device, and may include fewer or more components than shown, or some components may be combined, or a different arrangement of components.

the present application also provides a computer-readable storage medium, which may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk. The storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the node allocation method disclosed in any of the preceding embodiments.

According to the method, the corresponding pre-distribution nodes are distributed for different data in advance based on the node available information, after the request for applying the nodes is obtained, the historical node use information of the request initiator is obtained, the quality and the corresponding proportion of the nodes to be distributed are further determined according to the historical node use information, the number of the nodes to be distributed is determined according to the proportion, the target nodes with the corresponding number are dynamically selected from the pre-distribution nodes to be distributed to the request initiator, the condition that high-quality nodes are distributed too early when the distribution is carried out only according to the sequence of the request is avoided, and the balance of node distribution is improved.

The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the system disclosed by the embodiment, the description is relatively simple because the system corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.

it is further noted that, in the present specification, relational terms such as first and second, and the like are 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 apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种流媒体卡顿识别方法、服务器和系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类