WO2017028744A1 - 一种用于确定待部署资源的方法和装置 - Google Patents

一种用于确定待部署资源的方法和装置 Download PDF

Info

Publication number
WO2017028744A1
WO2017028744A1 PCT/CN2016/094847 CN2016094847W WO2017028744A1 WO 2017028744 A1 WO2017028744 A1 WO 2017028744A1 CN 2016094847 W CN2016094847 W CN 2016094847W WO 2017028744 A1 WO2017028744 A1 WO 2017028744A1
Authority
WO
WIPO (PCT)
Prior art keywords
deployed
resource
resources
information
determining
Prior art date
Application number
PCT/CN2016/094847
Other languages
English (en)
French (fr)
Inventor
夏方玉
李涛
Original Assignee
北京音之邦文化科技有限公司
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 北京音之邦文化科技有限公司 filed Critical 北京音之邦文化科技有限公司
Publication of WO2017028744A1 publication Critical patent/WO2017028744A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • 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
    • H04L67/104Peer-to-peer [P2P] networks
    • 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
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to a method and apparatus for determining resources to be deployed.
  • P2P provides audio and video playback or download services.
  • new resources or resources with large demand are pre-deployed to active terminals to ensure that these resources are high. Download speed.
  • the current user needs a certain amount of resources but the number of terminals sharing the resources is small, that is, the current sharing amount of the resources cannot meet the requirements of the user, and the terminal where the user is located is When downloading such resources, you cannot get a higher download speed through P2P.
  • the resources that are pre-deployed to the active terminal may be resources that have a sufficient amount of sharing and do not need to be deployed again, thus causing waste of storage space of the terminals.
  • a method for determining a resource to be deployed comprises the following steps:
  • a resource determining apparatus for determining a resource to be deployed includes:
  • the present invention has the following advantages: by deploying resources with a large amount of users and sharing fewer terminals to an active terminal, the sharing rate of such resources is improved, thereby ensuring that such resources have high resources.
  • the P2P download speed enables the user to enjoy the experience of downloading or playing resources better, and saves the broadband cost of the server; and, according to the solution of the present invention, the shared amount can also be filtered out from multiple resources to be deployed. It is sufficient to meet the user's downloading requirements or the resources that cannot be downloaded normally. This avoids the waste of storage space caused by deploying these resources on the active terminal.
  • the resources to be deployed are further ensured by deploying the resources to be deployed to the more active terminals.
  • the P2P downloading speed is high, and the solution according to the present invention can also limit the deployment behavior of each terminal during deployment, and avoid excessively frequent deployment of resources to the terminal to affect the normal operation of the terminal.
  • FIG. 1 is a flow chart showing a method for determining resources to be deployed according to the present invention
  • FIG. 2 is a schematic diagram showing the structure of a resource determining apparatus for determining resources to be deployed according to the present invention.
  • FIG. 1 is a flow chart of a method for determining resources to be deployed in accordance with the present invention.
  • the method according to the invention comprises a step S1 and a step S2.
  • the method according to the invention is implemented by a resource determining device included in a computer device.
  • the computer device includes an electronic device capable of automatically performing numerical calculation and/or information processing in accordance with an instruction set or stored in advance, the hardware of which includes but is not limited to a microprocessor, an application specific integrated circuit (ASIC), a programmable gate Arrays (FPGAs), digital processors (DSPs), embedded devices, and more.
  • the computer device includes a network device and/or a user device.
  • the network device includes, but is not limited to, a single network server, a server group composed of multiple network servers, or a cloud computing-based cloud composed of a large number of hosts or network servers, where the cloud computing is distributed computing.
  • a super virtual computer consisting of a group of loosely coupled computers.
  • the user equipment includes, but is not limited to, any electronic product that can interact with a user through a keyboard, a mouse, a remote controller, a touch panel, or a voice control device, such as a personal computer, a tablet computer, a smart phone, or a PDA. , game consoles, or IPTV.
  • the network in which the user equipment and the network device are located includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a VPN network, and the like.
  • the network according to the invention is a P2P (Peer to Peer) network.
  • P2P Peer to Peer
  • the user equipment, the network equipment, and the network are only examples. Other existing or future user equipment, network equipment, and networks may be applicable to the present invention, and should also be included in the scope of the present invention. And is included here by reference.
  • step S1 the resource determining apparatus determines a deployment priority of each of the one or more resources to be deployed, respectively, based on the requested quantity and the shared quantity of the one or more resources to be deployed.
  • the deployment priority of the to-be-deployed resource is used to indicate whether it needs to be preferentially deployed in the active terminal.
  • the higher the deployment priority the higher the likelihood that it will be deployed to the active terminal.
  • the manner of determining an active terminal will be described in detail later, and details are not described herein again.
  • the manner in which the resource determining device determines the deployment priority of each of the one or more to-be-deployed resources based on the requested quantity and the shared quantity of the one or more resources to be deployed includes, but is not limited to, the following Any one:
  • the resources to be deployed are sorted according to the obtained amount of the resources to be deployed, and the priority of the resources to be deployed is higher, so that the priority is shared.
  • a small number of resources to be deployed are deployed.
  • the resource determining apparatus may calculate weight information for indicating the deployment priority based on the requested amount and the shared amount of the resources to be deployed, and the deployment priority of the to-be-deployed resource is higher.
  • the corresponding weight calculation rule of the resource determining apparatus includes: the weight value of each resource to be deployed is equal to the value of the requested quantity divided by the value of the shared quantity thereof, so that the priority is more for the requested quantity and less is shared.
  • the resources to be deployed are deployed.
  • the deployment priority of the resources to be deployed is higher.
  • the resource determining apparatus sorts the obtained resources to be deployed according to the ratio of the number of requested and the number of shares to be shared, and determines the deployment of the resources to be deployed that are ranked higher. The higher the priority.
  • the step S1 further includes a step S101 (not shown) and a step S102 (not shown).
  • the resource determining device determines, for each of the one or more resources to be deployed, whether the shared amount meets the first threshold condition.
  • the first threshold condition is used to determine whether the shared amount of each resource to be deployed is less than a predetermined threshold.
  • the first threshold condition is further used to determine whether the shared amount of each resource to be deployed is not zero.
  • step S102 the resource determining apparatus determines the deployment priority of each of the to-be-deployed resources of the one or more resources to be deployed that meet the first threshold condition.
  • the first threshold condition corresponding to the resource determining apparatus includes: if the shared quantity is less than 5 and is not 0, the resource determining apparatus determines whether the shared number of the resources to be deployed meets the first threshold condition, and satisfies the first Those resources to be deployed of the threshold condition determine their deployment priorities for deployment, respectively, and no longer deploy the remaining resources to be deployed.
  • step S2 the resource determining device selects at least one resource to be deployed deployed in the active terminal based on the deployment priority of each of the one or more resources to be deployed.
  • the active terminal includes a terminal with a large amount of resource sharing.
  • the resource determining device selects a predetermined number of resources to be deployed with a higher priority than the deployment priority of the to-be-deployed resources in the one or more resources to be deployed, and is configured to be deployed in the active terminal.
  • the resource determining apparatus selects the top 10 resources to be deployed with the highest priority to be deployed in the active terminal based on the determined deployment priorities of the resources to be deployed.
  • the resource determining apparatus may further sort the resources to be deployed according to the ratio of the requested quantity to the shared quantity, and obtain a corresponding long tail model diagram according to the analysis, and then based on the analysis of the schematic diagram, The resource to be deployed in which the ratio of the requested amount to the shared amount in the schematic diagram is greater than a predetermined threshold is selected to be deployed in the active terminal.
  • the resource determining apparatus determines the requested amount and the shared amount of one or more resources to be deployed by performing step S3 (not shown).
  • step S3 the resource determining apparatus determines the requested amount and the shared amount of the one or more resources to be deployed based on the log information of each terminal.
  • the resource to be deployed is used to indicate a resource that needs to be deployed in advance.
  • the log information of each terminal includes the identifier information of the resource requested to be downloaded each time the terminal downloads and the requested amount of the resource that is requested.
  • the resource determining means performs a first screening operation on the log information by performing step S4 (not shown).
  • step S4 the resource determining apparatus performs a first screening operation on the log information based on at least one dimension information of the log information to determine the one or one based on one or more log information after the first screening operation.
  • the requested amount and the amount of shares to be deployed are the resource determining apparatus performs a first screening operation on the log information based on at least one dimension information of the log information to determine the one or one based on one or more log information after the first screening operation. The requested amount and the amount of shares to be deployed.
  • the at least one dimension information is determined based on log attribute information, respectively.
  • the log attribute information includes, but is not limited to, at least one of the following information:
  • the resource determining apparatus filters out one or more dimension condition information from the log information based on at least one dimension information of the log information and one or more dimension condition information corresponding to the at least one dimension information. Matching one or more log information to determine the requested amount and the amount of the one or more resources to be deployed based on the filtered one or more log information.
  • the dimension condition information may be determined based on a preset, or a user operation. For example, based on the time interval selected by the user, the dimensional condition information as the time dimension, and the like.
  • the resource determining means is included in a server of a website providing an audio download service, and the log information is predetermined to be filtered based on two dimensions of time information and geographic location information.
  • the dimension condition information obtained by the resource determining means includes: the time dimension condition "in the last hour", and the geographic dimension condition "located in the area area_1".
  • the resource determining device filters the log information stored in the server from the two dimensions of time information and geographic location information based on the time dimension condition and the geographic dimension condition, thereby obtaining the record in the past hour.
  • log information of each terminal in the range of the area, and the respective audios requested by each terminal corresponding to the filtered log information are used as resources to be deployed, thereby based on the filtered
  • the log information is used to determine the requested amount and the amount of the corresponding resources to be deployed.
  • the sharing rate of such resources is improved, thereby ensuring that such resources have a higher P2P download speed and enabling users to enjoy The experience of downloading or playing resources is better, and the bandwidth cost of the server is saved.
  • the waste of storage space caused by deploying the unnecessary deployment resources on the active terminal is avoided.
  • the method further comprises a step S5 (not shown) and a step S6 (not shown).
  • step S5 the resource determining means determines one or more active terminals based on the resource sharing state information of the respective terminals.
  • the active terminal is used to indicate a terminal that has a relatively high resource sharing and has superior performance when sharing resources.
  • the sharing status information includes, but is not limited to, at least one of the following:
  • the resource sharing amount of the terminal includes the number of resources uploaded or downloaded by each terminal within a predetermined time period. For example, a terminal that uploads or downloads resources in the past one hour exceeds a predetermined threshold as an active terminal.
  • the online duration of the terminal for example, using a terminal whose online duration exceeds a predetermined threshold as an active terminal
  • the remaining buffer space of the terminal for example, a terminal having a remaining buffer space larger than a predetermined threshold as an active terminal.
  • step S6 the resource determining apparatus deploys the determined at least one resource to be deployed on the one or more active terminals.
  • the manner in which the resource determining apparatus deploys the determined at least one resource to be deployed on the one or more active terminals includes, but is not limited to, any one of the following:
  • the resource determining device may randomly select three of the seven to-be-deployed resources to deploy to the three active terminals. One, and then randomly select two of the remaining four to-be-deployed resources to deploy to any of the remaining two active terminals, and deploy the remaining two resources to be deployed to the remaining active terminals.
  • the resource determining device may select, according to the deployment priority of the seven resources to be deployed, four deployments with higher priorities to the three active terminals, and deploy the remaining three resources to be deployed to the three active devices. Any two of the terminals.
  • the step S6 further comprises a step S601 (not shown).
  • step S601 the resource determining apparatus deploys the determined at least one to-be-deployed resource to at least one of the one or more active terminals, respectively, based on the sharing limited information of the one or more active terminals. On the active terminal.
  • the sharing definition information includes various information that can limit the behavior of deploying resources in the terminal. For example, information limiting the number of times each active terminal is deployed for a predetermined period of time. For another example, information limiting the number of resources to be deployed each time the deployment is performed, and the like.
  • the sharing definition information corresponding to the resource determining apparatus includes: each terminal can be deployed at most twice a day; and at most 5 resources to be deployed can be deployed in each deployment.
  • the resource determining device acquires the resource upload amount and the download amount of all the terminals of the corresponding terminal in the past two hours in step S5, and uses the terminals peer_1 to peer_5 in which the number of uploaded or downloaded resources exceeds 5 as the active terminal.
  • the resource determining device determines whether the sharing limit information is satisfied based on the information of the respective deployed resources reported by the five active terminals, and determines that the active terminal peer_3 has been deployed twice on the same day, and further determines that the terminal does not perform the peer_3. deploy. Then, the resource determining device selects the first five to-be-deployed resources with the highest deployment priority among the determined 10 to-be-deployed resources, and deploys them on any three of the active terminals peer_1, peer_2, peer_4, and peer_5, and prioritizes the deployment. The five remaining resources to be deployed are deployed on the remaining two active terminals.
  • the P2P downloading speed of the resources to be deployed is further ensured, and the deployment behavior of each terminal is restricted during deployment, and the Frequent deployment of resources to the terminal affects the normal operation of the terminal.
  • FIG. 2 is a schematic diagram showing the structure of a resource determining apparatus for determining resources to be deployed according to the present invention.
  • the resource determining apparatus includes means for determining a deployment priority of each of the one or more resources to be deployed based on the requested amount and the shared amount of the one or more resources to be deployed (
  • first determining device 1 is used, and the device for deploying at least one resource to be deployed in the active terminal is selected based on the deployment priority of each of the one or more resources to be deployed.
  • selection device 2 selection device 2
  • the first determining apparatus 1 determines a deployment priority of each of the one or more resources to be deployed, respectively, based on the requested quantity and the shared quantity of the one or more resources to be deployed.
  • the deployment priority of the to-be-deployed resource is used to indicate whether it needs to be preferentially deployed in the active terminal.
  • the higher the deployment priority the higher the likelihood that it will be deployed to the active terminal.
  • the manner of determining an active terminal will be described in detail later, and details are not described herein again.
  • the first determining apparatus 1 determines, according to the requested quantity and the shared quantity of the one or more resources to be deployed, a manner of determining a deployment priority of each of the one or more resources to be deployed, including but not Limited to any of the following:
  • the resources to be deployed are sorted according to the obtained amount of the resources to be deployed, and the priority of the resources to be deployed is higher, so that the priority is shared.
  • a small number of resources to be deployed are deployed.
  • the first determining device 1 may calculate weight information for indicating the deployment priority based on the requested amount and the shared amount of the respective resources to be deployed, and the deployment priority of the to-be-deployed resource is higher.
  • the corresponding weight calculation rule of the resource determining apparatus includes: the weight value of each resource to be deployed is equal to the value of the requested quantity divided by the value of the shared quantity thereof, so that the priority is more for the requested quantity and less is shared.
  • the resources to be deployed are deployed.
  • the deployment priority of the resources to be deployed is higher.
  • the resource determining apparatus sorts the obtained resources to be deployed according to the ratio of the number of requested and the number of shares to be shared, and determines the deployment of the resources to be deployed that are ranked higher. The higher the priority.
  • the first determining apparatus 1 further includes means for determining, for each of the one or more resources to be deployed, whether the shared amount meets the first threshold condition (not shown, below)
  • the device for determining the priority of the deployment of the resources to be deployed in the one or more resources to be deployed that meet the first threshold condition is not shown in the figure. "Sub-determination device").
  • the determining device determines, for each of the one or more resources to be deployed, whether the shared amount meets the first threshold condition.
  • the first threshold condition is used to determine whether the shared amount of each resource to be deployed is less than a predetermined threshold.
  • the first threshold condition is further used to determine whether the shared amount of each resource to be deployed is not zero.
  • the sub-determination device determines the deployment priority of each of the to-be-deployed resources of the one or more resources to be deployed that meet the first threshold condition.
  • the first threshold condition corresponding to the resource determining device includes: if the shared amount is less than 5 and is not 0, the determining device determines whether the shared number of each resource to be deployed satisfies the first threshold condition, and the sub-determining device satisfies the first Those resources to be deployed of a threshold condition respectively determine their deployment priorities for deployment, and no longer deploy the remaining resources to be deployed.
  • the selecting device 2 is based on each of the one or more resources to be deployed The deployment priority of the source, and at least one resource to be deployed for deployment on the active terminal is selected.
  • the active terminal includes a terminal with a large amount of resource sharing.
  • the selecting device 2 selects a predetermined number of resources to be deployed with a higher priority than the deployment priority of the to-be-deployed resources in the one or more resources to be deployed, and is configured to be deployed in the active terminal.
  • the selecting device 2 selects the top 10 resources to be deployed with the highest priority to be deployed in the active terminal based on the determined deployment priorities of the resources to be deployed.
  • the selecting device 2 may further sort the resources to be deployed according to the ratio of the requested amount to the shared amount, and obtain a corresponding long tail model diagram according to the analysis, and then based on the analysis of the schematic diagram, The resource to be deployed in which the ratio of the requested amount to the shared amount in the schematic diagram is greater than a predetermined threshold is selected to be deployed in the active terminal.
  • the resource determining apparatus includes means for determining a requested amount and a shared amount of the one or more resources to be deployed based on log information of each terminal (not shown, hereinafter referred to as "second determination" Device").
  • the second determining means determines the requested amount and the shared amount of the one or more resources to be deployed based on the log information of each terminal.
  • the resource to be deployed is used to indicate a resource that needs to be deployed in advance.
  • the log information of each terminal includes the identifier information of the resource requested to be downloaded each time the terminal downloads and the requested amount of the resource that is requested.
  • the resource determining means includes means for performing a first screening operation on the log information based on at least one dimension information of the log information (not shown, hereinafter referred to as "screening device").
  • the screening device performs a first screening operation on the log information based on the at least one dimension information of the log information, to determine the one or more resources to be deployed based on one or more log information after the first screening operation.
  • the at least one dimension information is determined based on log attribute information, respectively.
  • the log attribute information includes, but is not limited to, at least one of the following information:
  • the screening apparatus filters out, according to the at least one dimension information of the log information, and the one or more dimension condition information corresponding to the at least one dimension information, the log information from the one or more dimension condition information Matching one or more log information to determine the requested amount and the amount of the one or more resources to be deployed based on the filtered one or more log information.
  • the dimension condition information may be determined based on a preset, or a user operation. For example, based on the time interval selected by the user, the dimensional condition information as the time dimension, and the like.
  • the resource determining means is included in a server of a website providing an audio download service, and the log information is predetermined to be filtered based on two dimensions of time information and geographic location information.
  • the dimension condition information obtained by the resource determining means includes: the time dimension condition "in the last hour”, and the geographic dimension condition "located in the area area_1".
  • the screening device filters the log information stored in the server from the two dimensions of time information and geographic location information based on the time dimension condition and the geographic dimension condition, thereby obtaining the range recorded in the past hour and in the area.
  • the log information of each terminal in the log information, and the respective audios requested by each terminal corresponding to the filtered log information are used as resources to be deployed, so as to determine corresponding resources to be deployed based on the filtered log information.
  • the sharing rate of such resources is improved, thereby ensuring that such resources have a higher P2P download speed and enabling users to enjoy The experience of downloading or playing resources is better, and the bandwidth cost of the server is saved.
  • the waste of storage space caused by deploying the resources in the active terminal is avoided.
  • the resource determining apparatus further includes means for determining one or more active terminals based on resource sharing state information of the respective terminals (not shown, hereinafter referred to as “terminal determining means”). And means for deploying the determined at least one resource to be deployed on the one or more active terminals (not shown, below) Referred to as “deployment device”).
  • the terminal determining means determines one or more active terminals based on resource sharing status information of the respective terminals.
  • the active terminal is used to indicate a terminal that has a relatively high resource sharing and has superior performance when sharing resources.
  • the sharing status information includes, but is not limited to, at least one of the following:
  • the resource sharing amount of the terminal includes the number of resources uploaded or downloaded by each terminal within a predetermined time period. For example, a terminal that uploads or downloads resources in the past one hour exceeds a predetermined threshold as an active terminal.
  • the online duration of the terminal for example, using a terminal whose online duration exceeds a predetermined threshold as an active terminal
  • the remaining buffer space of the terminal for example, a terminal having a remaining buffer space larger than a predetermined threshold as an active terminal.
  • the deployment device deploys the determined at least one resource to be deployed to the one or more active terminals.
  • the manner in which the deployment device deploys the determined at least one resource to be deployed on the one or more active terminals includes, but is not limited to, any one of the following:
  • the determined resources to be deployed are divided into multiple groups of resources to be deployed, and each group of resources to be deployed is deployed to one or more active terminals of all active terminals.
  • the deployment device may randomly select three of the resources to be deployed to deploy to any of the three active terminals. Then, two of the remaining four resources to be deployed are randomly selected and deployed to any of the remaining two active terminals, and the remaining two resources to be deployed are deployed to the remaining active terminals.
  • the deployment device may select four deployments with higher priority to deploy to the three active terminals based on the deployment priorities of the seven resources to be deployed, and deploy the remaining three resources to be deployed to the three active terminals. Any two of them.
  • the deploying device further includes, according to the sharing definition information of each of the one or more active terminals, deploying the determined at least one to-be-deployed resource to the one or more active terminals respectively At least one device on the active terminal (not shown, hereinafter referred to as "sub-deployment device").
  • the sub-deployment device deploys the determined at least one to-be-deployed resource to the at least one active terminal of the one or more active terminals, respectively, based on the share-defining information of the one or more active terminals.
  • the sharing definition information includes various information that can limit the behavior of deploying resources in the terminal. For example, information limiting the number of times each active terminal is deployed for a predetermined period of time. For another example, information limiting the number of resources to be deployed each time the deployment is performed, and the like.
  • the sharing definition information corresponding to the resource determining apparatus includes: each terminal can be deployed at most twice a day; and at most 5 resources to be deployed can be deployed in each deployment.
  • the terminal determining device acquires the resource upload amount and the download amount of all the terminals of the corresponding terminal in the past two hours, and uses the terminals peer_1 to peer_5 in which the number of the uploaded or downloaded resources exceeds 5 as the active terminal.
  • the sub-deployment device determines whether the sharing limit information is satisfied based on the information of the respective deployment resources reported by the five active terminals, and determines that the active terminal peer_3 has been deployed twice on the same day, and then determines that the terminal is not on the peer_3. deploy. Then, the sub-deployment device selects the top 5 to-be-deployed resources with the highest deployment priority from the determined 10 to-be-deployed resources, and deploys them to any three of the active terminals peer_1, peer_2, peer_4, and peer_5, and prioritizes the deployment. The five remaining resources to be deployed are deployed on the remaining two active terminals.
  • the deployment of the to-be-deployed resources to the more active terminals further ensures that the resources to be deployed have a higher P2P download speed, and the deployment behavior of each terminal is restricted during deployment, thereby avoiding too frequent Deploying resources to the terminal affects the normal operation of the terminal.
  • the software program of the present invention can be executed by a processor to implement the steps or functions described above.
  • the software program of the present invention (including related data structures) can be stored It is stored in a computer readable recording medium such as a RAM memory, a magnetic or optical drive or a floppy disk, and the like.
  • a computer readable recording medium such as a RAM memory, a magnetic or optical drive or a floppy disk, and the like.
  • some of the steps or functions of the present invention may be implemented in hardware, for example, as a circuit that cooperates with a processor to perform various functions or steps.
  • a portion of the invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide a method and/or solution in accordance with the present invention.
  • the program instructions for invoking the method of the present invention may be stored in a fixed or removable recording medium and/or transmitted by a data stream in a broadcast or other signal bearing medium, and/or stored in a The working memory of the computer device in which the program instructions are run.
  • an embodiment in accordance with the present invention includes a device including a memory for storing computer program instructions and a processor for executing program instructions, wherein when the computer program instructions are executed by the processor, triggering
  • the apparatus operates based on the aforementioned methods and/or technical solutions in accordance with various embodiments of the present invention.
  • a method for determining a resource to be deployed comprising the steps of:
  • the step of deploying the priority of the resource to be deployed also includes the following steps:
  • step of deploying the determined at least one resource to be deployed on the one or more active terminals further comprises the steps of:
  • a resource determining apparatus for determining a resource to be deployed comprising:
  • the resource determining apparatus wherein the at least one dimension information is determined based on log attribute information, respectively, wherein the log attribute information includes the following At least one piece of information:
  • the resource determining apparatus according to any one of clauses 10 to 13, wherein the determining the one or more to be determined based on the requested amount and the amount of sharing of the one or more resources to be deployed, respectively
  • the device for deploying the priority of each resource to be deployed in the resource also includes:
  • a device for determining a deployment priority of each of the one to be deployed resources that meet the first threshold condition in the one or more resources to be deployed is a device for determining a deployment priority of each of the one to be deployed resources that meet the first threshold condition in the one or more resources to be deployed.
  • Means for deploying the determined at least one resource to be deployed on the one or more active terminals are provided.
  • the means for deploying the determined at least one resource to be deployed on the one or more active terminals further comprises:

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Information Transfer Between Computers (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明的目的是提供一种用于确定待部署资源的方法和装置。根据本发明的方法包括以下步骤:基于一个或多个待部署资源的被请求量和被分享量,分别确定所述一个或多个待部署资源中各个待部署资源的部署优先级;基于所述一个或多个待部署资源中各个待部署资源的部署优先级,选择用于部署在活跃终端的至少一个待部署资源,其中,所述活跃终端包括资源分享量较多的终端。

Description

一种用于确定待部署资源的方法和装置
相关申请的交叉引用
本申请要求2015年8月14日提交的专利申请号为201510502408.3、名称为“一种用于确定待部署资源的方法和装置”的中国专利申请的优先权,该在先申请的内容以引用方式并入本文本中。
技术领域
本发明涉及计算机技术领域,尤其涉及用于确定待部署资源的方法和装置。
背景技术
许多公司通过P2P的方式来提供音视频等资源播放或下载服务,在进行资源部署时,一般将新的资源或需求量较大的资源预先部署到活跃的终端上,从而保证这些资源具有较高的下载速度。然而基于该方式,可能出现当前用户对某些资源的需求量比较大但共享这些资源的终端数却较少的情况,即这些资源当前的共享量无法满足用户的需求,导致用户所在的终端在下载此类资源时无法通过P2P的方式获得较高的下载速度。并且,基于该方式,被预先部署到活跃终端的资源可能是一些共享量已经足够多而不需要再进行部署的资源,因而造成了这些终端的存储空间的浪费。
发明内容
本发明的目的是提供一种用于确定待部署资源的方法和装置。
根据本发明的一个方面,提供了一种用于确定待部署资源的方法,其中,所述方法包括以下步骤:
-基于一个或多个待部署资源的被请求量和被分享量,分别确定所述一个或多个待部署资源中各个待部署资源的部署优先级;
-基于所述一个或多个待部署资源中各个待部署资源的部署优先级,选择用于部署在活跃终端的至少一个待部署资源,其中,所述活跃终端包括资源分享量较多的终端。
根据本发明的一个方面,还提供了一种用于确定待部署资源的资源确定装置,其中,所述资源确定装置包括:
用于基于一个或多个待部署资源的被请求量和被分享量,分别确定所述一个或多个待部署资源中各个待部署资源的部署优先级的装置;
用于基于所述一个或多个待部署资源中各个待部署资源的部署优先级,选择用于部署在活跃终端的至少一个待部署资源的装置,其中,所述活跃终端包括资源分享量较多的终端。
与现有技术相比,本发明具有以下优点:通过将用户需求量较大而共享终端较少的资源部署到活跃终端,提高了此类资源的分享率,从而保证此类资源具有较高的P2P下载速度,使用户享受到较优的下载或播放资源的体验,并且节省了服务端的宽带成本;并且,根据本发明的方案,还可以通过从待部署的多个资源中过滤掉被分享量足以满足用户的下载需求或无法进行正常下载的资源,从而避免在活跃终端部署这些资源所造成的存储空间的浪费;并且,通过将待部署资源部署到较为活跃的终端,进一步保证了待部署资源具有较高的P2P下载速度,而且,根据本发明的方案还可在部署时对各个终端的部署行为进行限制,避免过于频繁的部署资源到终端而对该终端的正常运行产生影响。
附图说明
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本发明的其它特征、目的和优点将会变得更明显:
图1示意出了根据本发明的一种用于确定待部署资源方法流程图;
图2示意出了根据本发明的一种用确定待部署资源于的资源确定装置的结构示意图。
附图中相同或相似的附图标记代表相同或相似的部件。
具体实施方式
下面结合附图对本发明作进一步详细描述。
图1示意出了根据本发明的一种用于确定待部署资源方法流程图。根据本发明的方法包括步骤S1和步骤S2。
其中,根据本发明的方法通过包含于计算机设备中的资源确定装置来实现。所述计算机设备包括一种能够按照事先设定或存储的指令,自动进行数值计算和/或信息处理的电子设备,其硬件包括但不限于微处理器、专用集成电路(ASIC)、可编程门阵列(FPGA)、数字处理器(DSP)、嵌入式设备等。所述计算机设备包括网络设备和/或用户设备。其中,所述网络设备包括但不限于单个网络服务器、多个网络服务器组成的服务器组或基于云计算(Cloud Computing)的由大量主机或网络服务器构成的云,其中,云计算是分布式计算的一种,由一群松散耦合的计算机集组成的一个超级虚拟计算机。所述用户设备包括但不限于任何一种可与用户通过键盘、鼠标、遥控器、触摸板、或声控设备等方式进行人机交互的电子产品,例如,个人计算机、平板电脑、智能手机、PDA、游戏机、或IPTV等。其中,所述用户设备及网络设备所处的网络包括但不限于互联网、广域网、城域网、局域网、VPN网络等。
优选地,根据本发明的网络为P2P(Peer to Peer)网络。
需要说明的是,所述用户设备、网络设备以及网络仅为举例,其他现有的或今后可能出现的用户设备、网络设备以及网络如可适用于本发明,也应包含在本发明保护范围以内,并以引用方式包含于此。
参照图1,在步骤S1中,资源确定装置基于一个或多个待部署资源的被请求量和被分享量,分别确定所述一个或多个待部署资源中各个待部署资源的部署优先级。
其中,所述待部署资源的部署优先级用于指示是否需要优先将其部署在活跃终端中。
优选地,部署优先级越高,其被部署于活跃终端的可能性越高。其中,确定活跃终端的方式将在后续予以详述,此处不再赘述。
具体地,资源确定装置基于一个或多个待部署资源的被请求量和被分享量,分别确定所述一个或多个待部署资源中各个待部署资源的部署优先级的方式包括但不限于以下任一种:
1)直接基于被请求量和/或被分享量来确定所述一个或多个待部署资源中各个待部署资源的部署优先级;
例如,按照所获得的各个待部署资源的被分享量由小到大的顺序对各个待部署资源进行排序,并确定排名越靠前的待部署资源的部署优先级越高,从而优先对被分享量较少的待部署资源进行部署。
优选地,资源确定装置可基于各个待部署资源的被请求量和被分享量来计算用于表示部署优先级的权重信息,权重越大的待部署资源的部署优先级越高。
例如,资源确定装置相应的权重计算规则包括:每个待部署资源的权重值等于其被请求量的数值除以其被分享量的数值,从而优先对被请求量较多而被分享量较少的待部署资源进行部署。
2)基于所述被请求数与所述被分享数之比来确定所述一个或多个待部署资源中各个待部署资源的部署优先级。
优选地,当一待部署资源的被请求数比被分享数的比值越大,该待部署资源的部署优先级越高。
继续对前述第一示例进行说明,资源确定装置将所获得的各个待部署资源按照其被请求数和被分享数的比值由大到小进行排序,并确定排名越靠前的待部署资源的部署优先级越高。
优选地,所述步骤S1还包括步骤S101(图未示)和步骤S102(图未示)。
在步骤S101中,资源确定装置对所述一个或多个待部署资源中各个待部署资源,分别判断其被分享量是否满足第一阈值条件。
其中,所述第一阈值条件用于判断各个待部署资源的被分享量是否小于预定阈值。
优选地,所述第一阈值条件还用于判断各个待部署资源的被分享量是否不为零。
接着,在步骤S102中,资源确定装置对所述一个或多个待部署资源中被分享量满足第一阈值条件的各个待部署资源,分别确定其部署优先级。
例如,资源确定装置对应的第一阈值条件包括:被分享量小于5并且不为0,则资源确定装置判断各个待部署资源的被分享数是否满足该第一阈值条件,并对满足该第一阈值条件的那些待部署资源分别确定其部署优先级以进行部署,而不再对其余的待部署资源进行部署。
接着,在步骤S2中,资源确定装置基于所述一个或多个待部署资源中各个待部署资源的部署优先级,选择用于部署在活跃终端的至少一个待部署资源。
其中,所述活跃终端包括资源分享量较多的终端。
具体地,资源确定装置基于所述一个或多个待部署资源中各个待部署资源的部署优先级,选择预定个数的、部署优先级较高的待部署资源,用于部署在活跃终端。
继续对前述第一示例进行说明,资源确定装置基于所确定的各个待部署资源的部署优先级,选择优先级最高的前10个待部署资源来部署在活跃终端。
优选地,资源确定装置还可将各个待部署资源按照其被请求量与被分享量的比值由大到小进行排序,并据此得到相应的长尾模型示意图,接着基于对该示意图的分析,选择位于该示意图中被请求量与被分享量的比值大于预定阈值的待部署资源来部署在活跃终端。
优选地,在执行前述步骤S1和步骤S2之前,资源确定装置通过执行步骤S3(图未示)来确定一个或多个待部署资源的被请求量和被分享量。
在步骤S3中,资源确定装置基于各个终端的日志信息,来确定所述一个或多个待部署资源的被请求量和被分享量。
其中,所述待部署资源用于指示需要被预先进行部署的资源。
其中,所述各个终端的日志信息包括每个终端每次进行下载时所请求下载的资源的标识信息和所请求到的该资源的被分享量。
优选地,资源确定装置通过执行步骤S4(图未示)来对所述日志信息进行第一筛选操作。
在步骤S4中,资源确定装置基于日志信息的至少一个维度信息,对所述日志信息进行第一筛选操作,以基于第一筛选操作后的一项或多项日志信息,来确定所述一个或多个待部署资源的被请求量和被分享量。
其中,所述至少一个维度信息分别基于日志属性信息来确定。
优选地,所述日志属性信息包括但不限于以下至少任一项信息:
1)日志所属终端的地理信息;
2)日志所属终端的运营商区域信息;
3)日志记录的时间信息。
具体地,资源确定装置基于日志信息的至少一个维度信息,以及与该至少一个维度信息相对应的一个或多个维度条件信息,从所述日志信息中筛选出与该一个或多个维度条件信息相匹配的一项或多项日志信息,以基于筛选后的一项或多项日志信息,来确定所述一个或多个待部署资源的被请求量和被分享量。
优选地,所述维度条件信息可基于预设置,或者用户操作来确定。例如,基于用户选取的时间区间,作为时间维度的维度条件信息等。
根据本发明的第一示例,资源确定装置包含于一提供音频下载服务的网站的服务器中,并且,预定基于时间信息和地理位置信息这两个维度对日志信息进行筛选。资源确定装置获得的维度条件信息包括:时间维度条件“最近一小时内”,以及地理维度条件“位于区域area_1”。则在步骤S4中,资源确定装置基于该时间维度条件和地理维度条件,来对存储于该服务器中的日志信息从时间信息和地理位置信息这两个维度进行筛选,从而获得过去一小时内记录的、处于该区域范围内的各个终端在的日志信息,并将与筛选后的日志信息相对应的、各个终端所请求下载的各个音频作为待部署资源,从而基于筛选后的 日志信息来确定相应的各个待部署资源的被请求量和被分享量。
根据本发明的方法,通过将用户需求量较大而共享终端较少的资源部署到活跃终端,提高了此类资源的分享率,从而保证此类资源具有较高的P2P下载速度,使用户享受到较优的下载或播放资源的体验,并且节省了服务端的宽带成本。并且,通过从待部署的多个资源中过滤掉被分享量足以满足用户的下载需求或无法进行正常下载的资源,从而避免在活跃终端部署这些不必要进行部署资源所造成的存储空间的浪费。
根据本发明的一个优选实施方案,所述方法还包括步骤S5(图未示)和步骤S6(图未示)。
在步骤S5中,资源确定装置基于各个终端的资源分享状态信息来确定一个或多个活跃终端。
其中,所述活跃终端用于指示资源分享较为频繁的、并在资源分享时具有较优性能的终端。
优选地,所述分享状态信息包括但不限于以下至少任一项:
1)终端的资源分享量;该资源分享量包括各个终端在预定时间段内上传或下载资源的数量。例如,将过去1小时内上传或下载资源的次数超过预定阈值的终端作为活跃终端。
2)终端的在线时长,例如,将在线时长超过预定阈值的终端作为活跃终端;
3)终端的剩余缓存空间,例如,将剩余缓存空间大于预定阈值的终端作为活跃终端。
在步骤S6中,资源确定装置将所确定的所述至少一个待部署资源,部署于所述一个或多个活跃终端上。
具体地,资源确定装置将所确定的所述至少一个待部署资源部署于所述一个或多个活跃终端上的方式包括但不限于以下任一种:
1)将所确定的所有待部署资源分别部署于所述一个或多个活跃终端;
2)将确定的各个待部署资源划分为多组待部署资源,并分别将各组 待部署资源部署到所有活跃终端的一个或多个活跃终端上。
例如,资源确定装置所确定的待部署资源有7个,所确定的活跃终端有3个,则资源确定装置可从该7个待部署资源中随机选择3个部署到该3个活跃终端的任一个,接着再从其余的4个待部署资源中随机选择2个部署到其余的2个活跃终端的任一个,而将其余的2个待部署资源部署到余下的活跃终端。
或者,资源确定装置可基于该7个待部署资源的部署优先级,选择优先级较高的4个部署到该3个活跃终端上,而将其余的3个待部署资源部署到该3个活跃终端中的任两个上。
优选地,所述步骤S6还包括步骤S601(图未示)。
在步骤S601中,资源确定装置基于所述一个或多个活跃终端各自的分享限定信息,将所确定的所述至少一个待部署资源,分别部署于所述一个或多个活跃终端中的至少一个活跃终端上。
其中,所述分享限定信息包括各种可对在终端部署资源的行为进行限制的信息。例如,对预定时间段在各个活跃终端进行部署的次数进行限制的信息。又例如,对每次进行部署的待部署资源个数进行限制的信息等等。
继续对前述第一示例进行说明,资源确定装置对应的分享限定信息包括:每个终端每天最多可进行两次部署;每次部署最多可部署5个待部署资源。资源确定装置在步骤S5中获取其对应的所有终端在过去两小时内的资源上传量和下载量,并将其中上传或下载资源数超过5个的终端peer_1至peer_5作为活跃终端。
接着,资源确定装置基于该5个活跃终端上报的其各自部署资源的信息来判断其是否满足该分享限定信息,并确定其中活跃终端peer_3当日已进行两次部署,进而确定不在该终端peer_3上进行部署。接着,资源确定装置从所确定的10个待部署资源中选择部署优先级最高的前5个待部署资源来部署于活跃终端peer_1、peer_2、peer_4和peer_5中的任3个上,并将部署优先级靠后的5个待部署资源部署在其余的两个活跃终端上。
根据本优选实施方案的方法,通过将待部署资源部署到较为活跃的终端,进一步保证了待部署资源的具有较高的P2P下载速度,并且在部署时对各个终端的部署行为进行限制,避免过于频繁的部署资源到终端而对该终端的正常运行产生影响。
图2示意出了根据本发明的一种用确定待部署资源于的资源确定装置的结构示意图。根据本发明的资源确定装置包括用于基于一个或多个待部署资源的被请求量和被分享量,分别确定所述一个或多个待部署资源中各个待部署资源的部署优先级的装置(以下简称“第一确定装置1”),和用于基于所述一个或多个待部署资源中各个待部署资源的部署优先级,选择用于部署在活跃终端的至少一个待部署资源的装置(以下简称“选择装置2”)。
参照图2,第一确定装置1基于一个或多个待部署资源的被请求量和被分享量,分别确定所述一个或多个待部署资源中各个待部署资源的部署优先级。
其中,所述待部署资源的部署优先级用于指示是否需要优先将其部署在活跃终端中。
优选地,部署优先级越高,其被部署于活跃终端的可能性越高。其中,确定活跃终端的方式将在后续予以详述,此处不再赘述。
具体地,第一确定装置1基于一个或多个待部署资源的被请求量和被分享量,分别确定所述一个或多个待部署资源中各个待部署资源的部署优先级的方式包括但不限于以下任一种:
1)直接基于被请求量和/或被分享量来确定所述一个或多个待部署资源中各个待部署资源的部署优先级;
例如,按照所获得的各个待部署资源的被分享量由小到大的顺序对各个待部署资源进行排序,并确定排名越靠前的待部署资源的部署优先级越高,从而优先对被分享量较少的待部署资源进行部署。
优选地,第一确定装置1可基于各个待部署资源的被请求量和被分享量来计算用于表示部署优先级的权重信息,权重越大的待部署资源的部署优先级越高。
例如,资源确定装置相应的权重计算规则包括:每个待部署资源的权重值等于其被请求量的数值除以其被分享量的数值,从而优先对被请求量较多而被分享量较少的待部署资源进行部署。
2)基于所述被请求数与所述被分享数之比来确定所述一个或多个待部署资源中各个待部署资源的部署优先级。
优选地,当一待部署资源的被请求数比被分享数的比值越大,该待部署资源的部署优先级越高。
继续对前述第一示例进行说明,资源确定装置将所获得的各个待部署资源按照其被请求数和被分享数的比值由大到小进行排序,并确定排名越靠前的待部署资源的部署优先级越高。
优选地,所述第一确定装置1还包括用于对所述一个或多个待部署资源中各个待部署资源,分别判断其被分享量是否满足第一阈值条件的装置(图未示,以下简称“判断装置”),和用于对所述一个或多个待部署资源中被分享量满足第一阈值条件的各个待部署资源,分别确定其部署优先级的装置(图未示,以下简称“子确定装置”)。
判断装置对所述一个或多个待部署资源中各个待部署资源,分别判断其被分享量是否满足第一阈值条件。
其中,所述第一阈值条件用于判断各个待部署资源的被分享量是否小于预定阈值。
优选地,所述第一阈值条件还用于判断各个待部署资源的被分享量是否不为零。
接着,子确定装置对所述一个或多个待部署资源中被分享量满足第一阈值条件的各个待部署资源,分别确定其部署优先级。
例如,资源确定装置对应的第一阈值条件包括:被分享量小于5并且不为0,则判断装置判断各个待部署资源的被分享数是否满足该第一阈值条件,子确定装置对满足该第一阈值条件的那些待部署资源分别确定其部署优先级以进行部署,而不再对其余的待部署资源进行部署。
接着,选择装置2基于所述一个或多个待部署资源中各个待部署资 源的部署优先级,选择用于部署在活跃终端的至少一个待部署资源。
其中,所述活跃终端包括资源分享量较多的终端。
具体地,选择装置2基于所述一个或多个待部署资源中各个待部署资源的部署优先级,选择预定个数的、部署优先级较高的待部署资源,用于部署在活跃终端。
继续对前述第一示例进行说明,选择装置2基于所确定的各个待部署资源的部署优先级,选择优先级最高的前10个待部署资源来部署在活跃终端。
优选地,选择装置2还可将各个待部署资源按照其被请求量与被分享量的比值由大到小进行排序,并据此得到相应的长尾模型示意图,接着基于对该示意图的分析,选择位于该示意图中被请求量与被分享量的比值大于预定阈值的待部署资源来部署在活跃终端。
优选地,所述资源确定装置包括用于基于各个终端的日志信息,来确定所述一个或多个待部署资源的被请求量和被分享量的装置(图未示,以下简称“第二确定装置”)。
第二确定装置基于各个终端的日志信息,来确定所述一个或多个待部署资源的被请求量和被分享量。
其中,所述待部署资源用于指示需要被预先进行部署的资源。
其中,所述各个终端的日志信息包括每个终端每次进行下载时所请求下载的资源的标识信息和所请求到的该资源的被分享量。
优选地,资源确定装置包括用于基于日志信息的至少一个维度信息,对所述日志信息进行第一筛选操作的装置(图未示,以下简称“筛选装置”)。
筛选装置基于日志信息的至少一个维度信息,对所述日志信息进行第一筛选操作,以基于第一筛选操作后的一项或多项日志信息,来确定所述一个或多个待部署资源的被请求量和被分享量。
其中,所述至少一个维度信息分别基于日志属性信息来确定。
优选地,所述日志属性信息包括但不限于以下至少任一项信息:
1)日志所属终端的地理信息;
2)日志所属终端的运营商区域信息;
3)日志记录的时间信息。
具体地,筛选装置基于日志信息的至少一个维度信息,以及与该至少一个维度信息相对应的一个或多个维度条件信息,从所述日志信息中筛选出与该一个或多个维度条件信息相匹配的一项或多项日志信息,以基于筛选后的一项或多项日志信息,来确定所述一个或多个待部署资源的被请求量和被分享量。
优选地,所述维度条件信息可基于预设置,或者用户操作来确定。例如,基于用户选取的时间区间,作为时间维度的维度条件信息等。
根据本发明的第一示例,资源确定装置包含于一提供音频下载服务的网站的服务器中,并且,预定基于时间信息和地理位置信息这两个维度对日志信息进行筛选。资源确定装置获得的维度条件信息包括:时间维度条件“最近一小时内”,以及地理维度条件“位于区域area_1”。则筛选装置基于该时间维度条件和地理维度条件,来对存储于该服务器中的日志信息从时间信息和地理位置信息这两个维度进行筛选,从而获得过去一小时内记录的、处于该区域范围内的各个终端在的日志信息,并将与筛选后的日志信息相对应的、各个终端所请求下载的各个音频作为待部署资源,从而基于筛选后的日志信息来确定相应的各个待部署资源的被请求量和被分享量。
根据本发明的方案,通过将用户需求量较大而共享终端较少的资源部署到活跃终端,提高了此类资源的分享率,从而保证此类资源具有较高的P2P下载速度,使用户享受到较优的下载或播放资源的体验,并且节省了服务端的宽带成本。并且,通过从待部署的多个资源中过滤掉被分享量足以满足用户的下载需求或无法进行正常下载的资源,从而避免在活跃终端部署这些资源所造成的存储空间的浪费。
根据本发明的一个优选实施方案,所述资源确定装置还包括用于基于各个终端的资源分享状态信息来确定一个或多个活跃终端的装置(图未示,以下简称“终端确定装置”),和用于将所确定的所述至少一个待部署资源,部署于所述一个或多个活跃终端上的装置(图未示,以下 简称“部署装置”)。
终端确定装置基于各个终端的资源分享状态信息来确定一个或多个活跃终端。
其中,所述活跃终端用于指示资源分享较为频繁的、并在资源分享时具有较优性能的终端。
优选地,所述分享状态信息包括但不限于以下至少任一项:
1)终端的资源分享量;该资源分享量包括各个终端在预定时间段内上传或下载资源的数量。例如,将过去1小时内上传或下载资源的次数超过预定阈值的终端作为活跃终端。
2)终端的在线时长,例如,将在线时长超过预定阈值的终端作为活跃终端;
3)终端的剩余缓存空间,例如,将剩余缓存空间大于预定阈值的终端作为活跃终端。
部署装置将所确定的所述至少一个待部署资源,部署于所述一个或多个活跃终端上。
具体地,部署装置将所确定的所述至少一个待部署资源部署于所述一个或多个活跃终端上的方式包括但不限于以下任一种:
1)将所确定的所有待部署资源分别部署于所述一个或多个活跃终端;
2)将确定的各个待部署资源划分为多组待部署资源,并分别将各组待部署资源部署到所有活跃终端的一个或多个活跃终端上。
例如,资源确定装置所确定的待部署资源有7个,所确定的活跃终端有3个,则部署装置可从该个待部署资源中随机选择3个部署到该3个活跃终端的任一个,接着再从其余的4个待部署资源中随机选择2个部署到其余的2个活跃终端的任一个,而将其余的2个待部署资源部署到余下的活跃终端。
或者,部署装置可基于该7个待部署资源的部署优先级,选择优先级较高的4个部署到该3个活跃终端上,而将其余的3个待部署资源部署到该3个活跃终端中的任两个上。
优选地,所述部署装置还包括用于基于所述一个或多个活跃终端各自的分享限定信息,将所确定的所述至少一个待部署资源,分别部署于所述一个或多个活跃终端中的至少一个活跃终端上的装置(图未示,以下简称“子部署装置”)。
子部署装置基于所述一个或多个活跃终端各自的分享限定信息,将所确定的所述至少一个待部署资源,分别部署于所述一个或多个活跃终端中的至少一个活跃终端上。
其中,所述分享限定信息包括各种可对在终端部署资源的行为进行限制的信息。例如,对预定时间段在各个活跃终端进行部署的次数进行限制的信息。又例如,对每次进行部署的待部署资源个数进行限制的信息等等。
继续对前述第一示例进行说明,资源确定装置对应的分享限定信息包括:每个终端每天最多可进行两次部署;每次部署最多可部署5个待部署资源。终端确定装置获取其对应的所有终端在过去两小时内的资源上传量和下载量,并将其中上传或下载资源数超过5个的终端peer_1至peer_5作为活跃终端。
接着,子部署装置基于该5个活跃终端上报的其各自部署资源的信息来判断其是否满足该分享限定信息,并确定其中活跃终端peer_3当日已进行两次部署,进而确定不在该终端peer_3上进行部署。接着,子部署装置从所确定的10个待部署资源中选择部署优先级最高的前5个待部署资源来部署于活跃终端peer_1、peer_2、peer_4和peer_5中的任3个上,并将部署优先级靠后的5个待部署资源部署在其余的两个活跃终端上。
根据本优选实施方案,通过将待部署资源部署到较为活跃的终端,进一步保证了待部署资源的具有较高的P2P下载速度,并且在部署时对各个终端的部署行为进行限制,避免过于频繁的部署资源到终端而对该终端的正常运行产生影响。
本发明的软件程序可以通过处理器执行以实现上文所述步骤或功能。同样地,本发明的软件程序(包括相关的数据结构)可以被存 储到计算机可读记录介质中,例如,RAM存储器,磁或光驱动器或软磁盘及类似设备。另外,本发明的一些步骤或功能可采用硬件来实现,例如,作为与处理器配合从而执行各个功能或步骤的电路。
另外,本发明的一部分可被应用为计算机程序产品,例如计算机程序指令,当其被计算机执行时,通过该计算机的操作,可以调用或提供根据本发明的方法和/或技术方案。而调用本发明的方法的程序指令,可能被存储在固定的或可移动的记录介质中,和/或通过广播或其他信号承载媒体中的数据流而被传输,和/或被存储在根据所述程序指令运行的计算机设备的工作存储器中。在此,根据本发明的一个实施例包括一个装置,该装置包括用于存储计算机程序指令的存储器和用于执行程序指令的处理器,其中,当该计算机程序指令被该处理器执行时,触发该装置运行基于前述根据本发明的多个实施例的方法和/或技术方案。
对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本发明内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。系统权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第一,第二等词语用来表示名称,而并不表示任何特定的顺序。
虽然前面特别示出并且描述了示例性实施例,但是本领域技术人员将会理解的是,在不背离权利要求书的精神和范围的情况下,在其形式和细节方面可以有所变化。这里所寻求的保护在所附权利要求书中做了阐述。在下列编号条款中规定了各个实施例的这些和其他方面:
1.一种用于确定待部署资源的方法,其中,所述方法包括以下步骤:
-基于一个或多个待部署资源的被请求量和被分享量,分别确定所述一个或多个待部署资源中各个待部署资源的部署优先级;
-基于所述一个或多个待部署资源中各个待部署资源的部署优先级,选择用于部署在活跃终端的至少一个待部署资源,其中,所述活跃终端包括资源分享量较多的终端。
2.根据条款1所述的方法,其中,所述方法还包括以下步骤:
-基于各个终端的日志信息,来确定所述一个或多个待部署资源的被请求量和被分享量。
3.根据条款2所述的方法,其中,所述方法还包括以下步骤:
-基于至少一个维度信息,对所述日志信息进行第一筛选操作,以基于第一筛选操作后的一项或多项日志信息,来确定所述一个或多个待部署资源的被请求量和被分享量。
4.根据条款3所述的方法,其中,所述至少一个维度信息分别基于日志属性信息来确定,其中,所述日志属性信息包括以下至少任一项信息:
-日志所属终端的地理信息;
-日志所属终端的运营商区域信息;
-日志记录的时间信息。
5.根据条款1至4中任一项所述的方法,其中,所述基于一个或多个待部署资源的被请求量和被分享量,分别确定所述一个或多个待部署资源中各个待部署资源的部署优先级的步骤还包括以下步骤:
-对所述一个或多个待部署资源中各个待部署资源,分别判断其被分享量是否满足第一阈值条件;
-对所述一个或多个待部署资源中被分享量满足第一阈值条件的各个待部署资源,分别确定其部署优先级。
6.根据条款1至5中任一项所述的方法,其中,所述方法还包括以下步骤:
-基于各个终端的资源分享量来确定一个或多个活跃终端。
-将所确定的所述至少一个待部署资源,部署于所述一个或多个活 跃终端上。
7.根据条款6所述的方法,其中,所述将所确定的所述至少一个待部署资源,部署于所述一个或多个活跃终端上的步骤还包括以下步骤:
-基于所述一个或多个活跃终端各自的分享限定信息,将所确定的所述至少一个待部署资源,分别部署于所述一个或多个活跃终端中的至少一个活跃终端上。
8.根据条款1至7中任一项所述的方法,其中,所述部署优先级基于所述被请求量与所述被分享量之比来确定。
9.根据条款1至8中任一项所述的方法,其中,当一待部署资源的被请求量比被分享量的比值越大,该待部署资源的部署优先级越高。
10.一种用于确定待部署资源的资源确定装置,其中,所述资源确定装置包括:
用于基于一个或多个待部署资源的被请求量和被分享量,分别确定所述一个或多个待部署资源中各个待部署资源的部署优先级的装置;
用于基于所述一个或多个待部署资源中各个待部署资源的部署优先级,选择用于部署在活跃终端的至少一个待部署资源的装置,其中,所述活跃终端包括资源分享量较多的终端。
11.根据条款10所述的资源确定装置,其中,所述资源确定装置还包括:
用于基于各个终端的日志信息,来确定所述一个或多个待部署资源的被请求量和被分享量的装置。
12.根据条款11所述的资源确定装置,其中,所述资源确定装置还包括:
用于基于至少一个维度信息,对所述日志信息进行第一筛选操作,以基于第一筛选操作后的一项或多项日志信息,来确定所述一个或多个待部署资源的被请求量和被分享量的装置。
13.根据条款12所述的资源确定装置,其中,所述至少一个维度信息分别基于日志属性信息来确定,其中,所述日志属性信息包括以下 至少任一项信息:
-日志所属终端的地理信息;
-日志所属终端的运营商区域信息;
-日志记录的时间信息。
14.根据条款10至13中任一项所述的资源确定装置,其中,所述用于基于一个或多个待部署资源的被请求量和被分享量,分别确定所述一个或多个待部署资源中各个待部署资源的部署优先级的装置还包括:
用于对所述一个或多个待部署资源中各个待部署资源,分别判断其被分享量是否满足第一阈值条件的装置;
用于对所述一个或多个待部署资源中被分享量满足第一阈值条件的各个待部署资源,分别确定其部署优先级的装置。
15.根据条款10至14中任一项所述的资源确定装置,其中,所述资源确定装置还包括:
用于基于各个终端的资源分享量来确定一个或多个活跃终端的装置。
用于将所确定的所述至少一个待部署资源,部署于所述一个或多个活跃终端上的装置。
16.根据条款15所述的资源确定装置,其中,所述用于将所确定的所述至少一个待部署资源,部署于所述一个或多个活跃终端上的装置还包括:
用于基于所述一个或多个活跃终端各自的分享限定信息,将所确定的所述至少一个待部署资源,分别部署于所述一个或多个活跃终端中的至少一个活跃终端上的装置。
17.根据条款10至16中任一项所述的资源确定装置,其中,所述部署优先级基于所述被请求量与所述被分享量之比来确定。
18.根据条款10至17中任一项所述的资源确定装置,其中,当一待部署资源的被请求量比被分享量的比值越大,该待部署资源的部署优先级越高。

Claims (21)

  1. 一种用于确定待部署资源的方法,其中,所述方法包括以下步骤:
    -基于一个或多个待部署资源的被请求量和被分享量,分别确定所述一个或多个待部署资源中各个待部署资源的部署优先级;
    -基于所述一个或多个待部署资源中各个待部署资源的部署优先级,选择用于部署在活跃终端的至少一个待部署资源,其中,所述活跃终端包括资源分享量较多的终端。
  2. 根据权利要求1所述的方法,其中,所述方法还包括以下步骤:
    -基于各个终端的日志信息,来确定所述一个或多个待部署资源的被请求量和被分享量。
  3. 根据权利要求2所述的方法,其中,所述方法还包括以下步骤:
    -基于至少一个维度信息,对所述日志信息进行第一筛选操作,以基于第一筛选操作后的一项或多项日志信息,来确定所述一个或多个待部署资源的被请求量和被分享量。
  4. 根据权利要求3所述的方法,其中,所述至少一个维度信息分别基于日志属性信息来确定,其中,所述日志属性信息包括以下至少任一项信息:
    -日志所属终端的地理信息;
    -日志所属终端的运营商区域信息;
    -日志记录的时间信息。
  5. 根据权利要求1至4中任一项所述的方法,其中,所述基于一个或多个待部署资源的被请求量和被分享量,分别确定所述一个或多个待部署资源中各个待部署资源的部署优先级的步骤还包括以下步骤:
    -所述一个或多个待部署资源中各个待部署资源,分别判断其被分享量是否满足第一阈值条件;
    -对所述一个或多个待部署资源中被分享量满足第一阈值条件的各个待部署资源,分别确定其部署优先级。
  6. 根据权利要求1至5中任一项所述的方法,其中,所述方法还包括以下步骤:
    -基于各个终端的分享状态信息来确定一个或多个活跃终端。
    -将所确定的所述至少一个待部署资源,部署于所述一个或多个活跃终端上。
  7. 根据权利要求6所述的方法,其中,所述将所确定的所述至少一个待部署资源,部署于所述一个或多个活跃终端上的步骤还包括以下步骤:
    -基于所述一个或多个活跃终端各自的分享限定信息,将所确定的所述至少一个待部署资源,分别部署于所述一个或多个活跃终端中的至少一个活跃终端上。
  8. 根据权利要求1至7中任一项所述的方法,其中,所述部署优先级基于所述被请求量与所述被分享量之比来确定。
  9. 根据权利要求1至8中任一项所述的方法,其中,当一待部署资源的被请求量比被分享量的比值越大,该待部署资源的部署优先级越高。
  10. 一种用于确定待部署资源的资源确定装置,其中,所述确定装置包括:
    用于基于一个或多个待部署资源的被请求量和被分享量,分别确定所述一个或多个待部署资源中各个待部署资源的部署优先级的装置;
    用于基于所述一个或多个待部署资源中各个待部署资源的部署优先级,选择用于部署在活跃终端的至少一个待部署资源的装置,其中,所述活跃终端包括资源分享量较多的终端。
  11. 根据权利要求10所述的资源确定装置,其中,所述资源确定装置还包括:
    用于基于各个终端的日志信息,来确定所述一个或多个待部署资源的被请求量和被分享量的装置。
  12. 根据权利要求11所述的资源确定装置,其中,所述资源确定装置还包括:
    用于基于至少一个维度信息,对所述日志信息进行第一筛选操作,以基于第一筛选操作后的一项或多项日志信息,来确定所述一个或多个待部署资源的被请求量和被分享量的装置。
  13. 根据权利要求12所述的资源确定装置,其中,所述至少一个维度信息分别基于日志属性信息来确定,其中,所述日志属性信息包括以下至少任一项信息:
    -日志所属终端的地理信息;
    -日志所属终端的运营商区域信息;
    -日志记录的时间信息。
  14. 根据权利要求10至13中任一项所述的资源确定装置,其中,所述用于基于一个或多个待部署资源的被请求量和被分享量,分别确定所述一个或多个待部署资源中各个待部署资源的部署优先级的装置还包括:
    用于所述一个或多个待部署资源中各个待部署资源,分别判断其被分享量是否满足第一阈值条件的装置;
    用于对所述一个或多个待部署资源中被分享量满足第一阈值条件的各个待部署资源,分别确定其部署优先级的装置。
  15. 根据权利要求10至14中任一项所述的资源确定装置,其中,所述资源确定装置还包括:
    用于基于各个终端的资源分享量来确定一个或多个活跃终端的装置。
    用于将所确定的所述至少一个待部署资源,部署于所述一个或多个活跃终端上的装置。
  16. 根据权利要求15所述的资源确定装置,其中,所述用于将所确定的所述至少一个待部署资源,部署于所述一个或多个活跃终端上的装置还包括:
    用于基于所述一个或多个活跃终端各自的分享限定信息,将所确定的所述至少一个待部署资源,分别部署于所述一个或多个活跃终端中的至少一个活跃终端上的装置。
  17. 根据权利要求10至16中任一项所述的资源确定装置,其中,所述部署优先级基于所述被请求量与所述被分享量之比来确定。
  18. 根据权利要求10至17中任一项所述的资源确定装置,其中,当一待部署资源的被请求量比被分享量的比值越大,该待部署资源的部署优先级越高。
  19. 一种计算机可读介质,所述计算机可读介质存储有计算机代码,当所述计算机代码被执行时,如权利要求1至9中任一项所述的方法被执行。
  20. 一种计算机程序产品,当所述计算机程序产品被计算机设备执行时,如权利要求1至9中任一项所述的方法被执行。
  21. 一种计算机设备,所述计算机设备包括存储器和处理器,所述存储器中存储有计算机代码,所述处理器被配置来通过执行所述计算机代码以执行如权利要求1至9中任一项所述的方法。
PCT/CN2016/094847 2015-08-14 2016-08-12 一种用于确定待部署资源的方法和装置 WO2017028744A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510502408.3 2015-08-14
CN201510502408.3A CN105208084B (zh) 2015-08-14 2015-08-14 一种用于确定待部署资源的方法和装置

Publications (1)

Publication Number Publication Date
WO2017028744A1 true WO2017028744A1 (zh) 2017-02-23

Family

ID=54955509

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/094847 WO2017028744A1 (zh) 2015-08-14 2016-08-12 一种用于确定待部署资源的方法和装置

Country Status (2)

Country Link
CN (1) CN105208084B (zh)
WO (1) WO2017028744A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208084B (zh) * 2015-08-14 2019-07-09 北京音之邦文化科技有限公司 一种用于确定待部署资源的方法和装置
CN106775850A (zh) * 2016-12-02 2017-05-31 海马云(天津)信息技术有限公司 实例系统应用的安装计算与安装方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1639684A (zh) * 2001-06-25 2005-07-13 国际商业机器公司 鼓励客户机利用分布式对等共享技术的方法和装置
US7802065B1 (en) * 2004-05-03 2010-09-21 Crimson Corporation Peer to peer based cache management
CN101841556A (zh) * 2010-02-23 2010-09-22 中国科学院计算技术研究所 Cdn-p2p网络中放置资源副本的方法及系统
CN102299905A (zh) * 2010-06-23 2011-12-28 中国移动通信集团公司 一种p2p流媒体资源调整方法、装置及系统
CN105208084A (zh) * 2015-08-14 2015-12-30 百度在线网络技术(北京)有限公司 一种用于确定待部署资源的方法和装置

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413155B (zh) * 2010-09-21 2014-06-18 腾讯科技(深圳)有限公司 数据传输方法及系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1639684A (zh) * 2001-06-25 2005-07-13 国际商业机器公司 鼓励客户机利用分布式对等共享技术的方法和装置
US7802065B1 (en) * 2004-05-03 2010-09-21 Crimson Corporation Peer to peer based cache management
CN101841556A (zh) * 2010-02-23 2010-09-22 中国科学院计算技术研究所 Cdn-p2p网络中放置资源副本的方法及系统
CN102299905A (zh) * 2010-06-23 2011-12-28 中国移动通信集团公司 一种p2p流媒体资源调整方法、装置及系统
CN105208084A (zh) * 2015-08-14 2015-12-30 百度在线网络技术(北京)有限公司 一种用于确定待部署资源的方法和装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
REN, HAO ET AL.: "An Efficient Data Scheduling Algorithm for Peer-to-Peer Streaming System", JOURNAL OF XI'AN JIAOTONG UNIVERSITY, vol. 45, no. 6, 30 June 2011 (2011-06-30) *

Also Published As

Publication number Publication date
CN105208084B (zh) 2019-07-09
CN105208084A (zh) 2015-12-30

Similar Documents

Publication Publication Date Title
US11329928B2 (en) Dynamic allocation of network resources using external inputs
WO2017166644A1 (zh) 一种数据采集方法和系统
EP3108442B1 (en) Global comments for a media item
WO2017166643A1 (zh) 一种任务资源的量化方法和装置
US20170185454A1 (en) Method and Electronic Device for Determining Resource Consumption of Task
US9998534B2 (en) Peer-to-peer seed assurance protocol
US20150163285A1 (en) Identifying The Workload Of A Hybrid Cloud Based On Workload Provisioning Delay
US20170353537A1 (en) Predictive load balancing for a digital environment
US9882773B2 (en) Virtual resource provider with virtual control planes
US10313219B1 (en) Predictive intelligent processor balancing in streaming mobile communication device data processing
CN110708369B (zh) 设备节点的文件部署方法、装置、调度服务器及存储介质
US10992972B1 (en) Automatic identification of impermissable account sharing
US20140181677A1 (en) Cost tracking for virtual control planes
US20230093368A1 (en) Game data processing method, apparatus, and system, electronic device, and storage medium
US11856214B2 (en) Video encoding with content adaptive resource allocation
CN105610869B (zh) 一种流媒体的调度方法及装置
US20190079798A1 (en) Social objectives-based workload resolution in a cloud environment
WO2017028744A1 (zh) 一种用于确定待部署资源的方法和装置
CN109218766B (zh) 一种召集粉丝的方法、直播平台服务器及主播端
CN112395357A (zh) 一种数据收集方法、装置和电子设备
US9922118B2 (en) Creating an audio file sample based upon user preferences
JP5806630B2 (ja) アプリケーション検査システム
US9380413B1 (en) Dynamically forming the content of a message to a user based on a perceived emotion
US20240179186A1 (en) Predictive load balancing for a digital environment
US11487839B2 (en) Resource link engine

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16836608

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 24/05/2018)

122 Ep: pct application non-entry in european phase

Ref document number: 16836608

Country of ref document: EP

Kind code of ref document: A1