WO2024094104A1 - 一种动态反馈加权云存储资源调度方法、装置及设备 - Google Patents

一种动态反馈加权云存储资源调度方法、装置及设备 Download PDF

Info

Publication number
WO2024094104A1
WO2024094104A1 PCT/CN2023/129274 CN2023129274W WO2024094104A1 WO 2024094104 A1 WO2024094104 A1 WO 2024094104A1 CN 2023129274 W CN2023129274 W CN 2023129274W WO 2024094104 A1 WO2024094104 A1 WO 2024094104A1
Authority
WO
WIPO (PCT)
Prior art keywords
cloud storage
service
storage service
node
weight
Prior art date
Application number
PCT/CN2023/129274
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 WO2024094104A1 publication Critical patent/WO2024094104A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/61Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Definitions

  • the present invention relates to the technical field of scheduling cross-region cloud storage resources, and in particular to a dynamic feedback weighted cloud storage resource scheduling method, device and equipment.
  • cloud storage technology is used to store data collected by smart devices (such as smart probes, smart doorbells, etc.).
  • Cloud storage resource allocation generally uses a proximity strategy, that is, allocating service resources based on geographical location.
  • this static allocation strategy often fails to take into account factors such as storage service quality, service export bandwidth, service price, and service concurrency, and thus cannot effectively maximize the development of storage service business.
  • cloud storage resource allocation is optimized by adopting a cloud storage resource scheduling optimization scheme based on weighted least connection.
  • the Chinese invention patent with publication number CN106790381A provides a dynamic feedback load balancing method based on weighted least connection.
  • the method combines the reverse Nginx reverse proxy server to improve the weighted least connection algorithm and optimize it.
  • the upstream server load information is collected, and the upstream server weight on the Nginx reverse proxy server is dynamically modified, providing a basis for optimizing load distribution.
  • the Chinese invention patent with publication number CN103338228A provides a cloud computing load balancing scheduling algorithm based on a double-weighted least-connection algorithm.
  • the algorithm uses real-time information such as the CPU idle rate and memory idle rate on the server to dynamically represent the weight of the server performance on the basis of weighting the performance of the resource server by the weighted least-connection scheduling algorithm, so as to fully evaluate and utilize the remaining processing capacity of each node server; assign corresponding weights to tasks according to the complexity of the task type; to ensure that the load of each node does not tilt significantly when the device is running for a long time, before each task assignment, the scheduler will calculate the ratio of the sum of the weights of all tasks on each server to the weight of the server performance, and assign the new task to the server with the smallest ratio.
  • the present invention provides a dynamic feedback weighted cloud storage resource scheduling method, device and equipment, which solves the technical problem that the existing cloud storage resource scheduling optimization solution cannot be used in the scenario of using third-party cloud storage services due to the difficulty in deploying the collection program of relevant performance indicators.
  • a first aspect of the present invention provides a dynamic feedback weighted cloud storage resource scheduling method, comprising:
  • cloud storage pre-configuration information includes geographical location weight information, load threshold, and resource pre-application quantity of each registered cloud storage service node;
  • the storage resource information includes service response data of each of the cloud storage service nodes to the corresponding storage resources
  • the service performance weight of each of the cloud storage service nodes is calculated based on the geographical location weight information, the load threshold and the service response data in the preset cache pool;
  • An optimal cloud storage service node is determined from each of the cloud storage service nodes according to the calculated service performance weight, and the storage request is scheduled to the optimal cloud storage service node.
  • the calculating the service performance weight of each of the cloud storage service nodes based on the geographic location weight information, the load threshold, and the service response data in the preset cache pool includes:
  • the service performance weight of each cloud storage service node is calculated according to the following formula:
  • W(S i ) represents the service performance weight of cloud storage service node S i
  • T(S i ) is the load threshold of cloud storage service node S i
  • C(S i ) is the current number of concurrent connections of cloud storage service node S i
  • R 1 (S i ) is the average response time of cloud storage service node S i within 1 minute
  • R j (S i ) is the average response time of cloud storage service node S i within j minutes
  • n is the preset service time
  • L(S i ) is the geographical location weight of cloud storage service node S i
  • k 1 is the weight coefficient of the loadable concurrency for the service performance weight
  • k 2 is the weight coefficient corresponding to the service response
  • k 3 is the weight coefficient corresponding to the geographical location attribute
  • k 1 +k 2 +k 3 1.
  • the calculation of each cloud based on the geographical location weight information, the load threshold, the current number of concurrent connections and the service response data also includes:
  • the storage request includes a local storage requirement
  • determining the optimal cloud storage service node from each of the cloud storage service nodes according to the calculated service performance weight includes:
  • the node with the largest service performance weight is selected from the candidate nodes as the optimal cloud storage service node.
  • determining the optimal cloud storage service node from each of the cloud storage service nodes according to the calculated service performance weight includes:
  • the node with the largest service performance weight is selected from each of the cloud storage service nodes as the optimal cloud storage service node.
  • the method further includes:
  • the corresponding scheduling result information is recorded and stored in the preset cache pool.
  • the cloud storage pre-configuration information further includes a cache time threshold
  • the method further includes:
  • a second aspect of the present invention provides a dynamic feedback weighted cloud storage resource scheduling device, comprising:
  • An acquisition module is used to acquire cloud storage pre-configuration information, wherein the cloud storage pre-configuration information includes geographical location weight information, load threshold and resource pre-application quantity of each registered cloud storage service node;
  • a pre-application module is used to pre-apply for corresponding storage resources from each of the cloud storage service nodes according to the cloud storage pre-configuration information, and store the corresponding storage resource information in a preset cache pool;
  • the storage resource information includes service response data of each of the cloud storage service nodes to the corresponding storage resources;
  • a calculation module configured to calculate the service performance weight of each of the cloud storage service nodes based on the geographic location weight information, the load threshold and the service response data in the preset cache pool when receiving a storage request sent by a smart device;
  • the scheduling module is used to determine the optimal cloud storage service node from each of the cloud storage service nodes according to the calculated service performance weight, and schedule the storage request to the optimal cloud storage service node.
  • the calculation module includes:
  • a determination unit configured to determine the current number of concurrent connections of each of the cloud storage service nodes and the average response time in each preset continuous time period based on the service response data in the preset cache pool;
  • the computing unit is used to calculate the service performance weight of each of the cloud storage service nodes according to the following formula:
  • W(S i ) represents the service performance weight of cloud storage service node S i
  • T(S i ) is the load threshold of cloud storage service node S i
  • C(S i ) is the current number of concurrent connections of cloud storage service node S i
  • R 1 (S i ) is the average response time of cloud storage service node S i within 1 minute
  • R j (S i ) is the average response time of cloud storage service node S i within j minutes
  • n is the preset service time
  • L(S i ) is the geographical location weight of cloud storage service node S i
  • k 1 is the weight coefficient of the loadable concurrency for the service performance weight
  • k 2 is the weight coefficient corresponding to the service response
  • k 3 is the weight coefficient corresponding to the geographical location attribute
  • k 1 +k 2 +k 3 1.
  • the calculation module further includes:
  • the storage request includes a local storage requirement
  • the scheduling module includes:
  • a first selection unit configured to select a cloud storage service node that meets the local storage requirement from each of the cloud storage service nodes as a candidate node;
  • the second selection unit is used to select the node with the largest service performance weight from the candidate nodes as the optimal cloud storage service node.
  • the scheduling module includes:
  • the third selection unit is used to select the cloud storage service node with the largest service performance weight from the cloud storage service nodes as the optimal cloud storage service node.
  • the device further includes:
  • the scheduling recording module is used to record the corresponding scheduling result information after scheduling the storage request to the optimal cloud storage service node, and store the scheduling result information in the preset cache pool.
  • the cloud storage pre-configuration information further includes a cache time threshold
  • the device further includes:
  • the update module is used to pre-apply for new storage resources from each of the cloud storage service nodes to update the current storage resource information if the storage time of the storage resource information in the preset cache pool reaches a cache time threshold.
  • a third aspect of the present invention provides a dynamic feedback weighted cloud storage resource scheduling device, comprising:
  • a memory for storing instructions; wherein the instructions are used to implement the dynamic feedback weighted cloud storage resource scheduling method as described in any of the above implementation methods;
  • a processor is used to execute instructions in the memory.
  • a fourth aspect of the present invention is a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the dynamic feedback weighted cloud storage resource scheduling method as described in any of the above achievable methods.
  • the present invention pre-applies for corresponding storage resources from each cloud storage service node according to cloud storage pre-configuration information, stores storage resource information including service response data of the node in a preset cache pool, and when receiving a storage request sent by an intelligent device, calculates the service performance weight of each cloud storage service node based on the geographical location weight information, load threshold and service response data of each cloud storage service node, determines the optimal cloud storage service node from each cloud storage service node according to the calculated service performance weight, and schedules the storage request to the optimal cloud storage service node; based on the weighted minimum connection scheduling algorithm, the present invention obtains dynamic factors such as the number of concurrent connections and the average service response time of each node through the service response data that can be obtained by itself, calculates the service performance weight of each node in combination with the pre-obtained node location information as a basis for resource scheduling, and can realize the measurement of downstream service load conditions without deploying relevant performance collection programs, thereby improving the rationality and reliability of cloud storage resource scheduling, and can be applicable to scenarios
  • FIG1 is a flow chart of a dynamic feedback weighted cloud storage resource scheduling method provided by an optional embodiment of the present invention
  • FIG2 is a schematic diagram showing the principle of a dynamic feedback weighted cloud storage resource scheduling method provided by an optional embodiment of the present invention
  • FIG3 is a structural connection block diagram of a dynamic feedback weighted cloud storage resource scheduling device provided by an optional embodiment of the present invention.
  • the embodiments of the present invention provide a dynamic feedback weighted cloud storage resource scheduling method, device and equipment, which are used to solve the technical problem that the existing cloud storage resource scheduling optimization solution cannot be used in the scenario of using a third-party cloud storage service due to the difficulty in deploying a collection program for relevant performance indicators.
  • the invention provides a dynamic feedback weighted cloud storage resource scheduling method.
  • FIG1 shows a flow chart of a dynamic feedback weighted cloud storage resource scheduling method provided by an embodiment of the present invention
  • FIG2 shows a principle schematic diagram of a dynamic feedback weighted cloud storage resource scheduling method provided by an optional embodiment of the present invention.
  • a dynamic feedback weighted cloud storage resource scheduling method provided by an embodiment of the present invention includes steps S1-S4.
  • Step S1 obtaining cloud storage pre-configuration information, wherein the cloud storage pre-configuration information includes geographical location weight information, load threshold and resource pre-application quantity of each registered cloud storage service node.
  • the cloud storage pre-configuration information may be obtained when the device/equipment executing the method is initialized.
  • the geographical location weight information can be obtained by setting the weights corresponding to each geographical location according to the geographical location of the cloud storage service node according to the actual situation.
  • each target area range can be specified according to actual business needs, and a corresponding location weight can be set for each target area range, and the corresponding geographical location weight can be determined according to the target area range to which the location of each cloud storage service node belongs.
  • the geographical location weight can be set according to the distance between the node and the device/equipment that executes the method of the present application. Specifically, a larger geographical location weight is set for the cloud storage service node that is closer to the device/equipment that executes the method of the present application, to facilitate localized storage.
  • the size range of the geographical location weight is between 0 and 1, so as to facilitate the calculation of the subsequent service performance weight.
  • the size range of the geographical territorial weight can also be adjusted according to actual needs, for example, set between 0.2 and 0.8, or between 0.2 and 1.2.
  • the resource pre-application quantity is used to guide the subsequent pre-application of the corresponding storage resource quantity.
  • Step S2 pre-apply for corresponding storage resources from each of the cloud storage service nodes according to the cloud storage pre-configuration information, and store the corresponding storage resource information in a preset cache pool; the storage resource information includes service response data of each of the cloud storage service nodes to the corresponding storage resources.
  • the preset cache pool is a Redis cache pool.
  • the preset cache pool can also adopt other applicable existing database forms according to actual conditions.
  • the storage resource information also includes the identifier of the cloud storage service node that provides the pre-applied storage resource and corresponding information of the corresponding storage resource, such as the storage type, capacity, interface type and interface address of the storage resource.
  • the corresponding storage resource information in the preset cache pool When storing the corresponding storage resource information in the preset cache pool, it can be partitioned and stored according to different cloud storage service nodes, so that the corresponding storage resource information can be stored in different containers to facilitate the subsequent scheduling of storage resources.
  • Step S3 when a storage request sent by a smart device is received, the service performance weight of each cloud storage service node is calculated based on the geographic territorial weight information, the load threshold and the service response data in the preset cache pool.
  • the service performance weight of each of the cloud storage service nodes When calculating the service performance weight of each of the cloud storage service nodes, firstly, the current number of concurrent connections of each cloud storage service node and the average response time in each preset continuous time period are obtained based on the service response data in the preset cache pool, and then the service performance weight of each of the cloud storage service nodes is calculated according to the obtained data.
  • the service performance weight of each of the cloud storage service nodes is calculated according to the following formula:
  • W(S i ) represents the service performance weight of cloud storage service node S i
  • T(S i ) is the load threshold of cloud storage service node S i
  • C(S i ) is the current number of concurrent connections of cloud storage service node S i
  • R 1 (S i ) is the average response time of cloud storage service node S i within 1 minute
  • R j (S i ) is the average response time of cloud storage service node S i within j minutes
  • n is the preset service time
  • L(S i ) is the geographical location weight of cloud storage service node S i
  • k 1 is the weight coefficient of the loadable concurrency for the service performance weight
  • k 2 is the weight coefficient corresponding to the service response
  • k 3 is the weight coefficient corresponding to the geographical location attribute
  • k 1 +k 2 +k 3 1.
  • n is set to be ⁇ 30 min.
  • the service performance weight of the cloud storage service node is and It consists of three parts.
  • the setting value of L(S i ) here is between 0 and 1.
  • the second part of the formula is calculated based on the average response time of the service corresponding to 1 to n minutes of the cloud storage service node. In other achievable methods, it can be calculated based on the average response time of the service within several minutes according to actual needs. For example, the average response time R 1 (S i ) of the cloud storage service node S i within 1 minute, the average response time R 5 (S i ) of the service within 5 minutes, the average response time R 10 (S i ) of the service within 10 minutes, and the average response time R 30 (S i ) of the service within 30 minutes can be obtained to calculate the second part, and the formula of the second part is replaced by:
  • the above embodiment of the present invention obtains dynamic factors such as the number of concurrent connections and the average service response time of each node through the service response data that can be obtained by the party, takes into account the service carrying capacity, concurrent performance, real-time response, and local information, and combines the fast calculation of cached data to weight the key factors, thereby realizing the calculation of the service performance weight of each node and providing a basis for subsequent resource scheduling.
  • This embodiment can realize the measurement of downstream service load conditions without the need to deploy relevant performance collection programs.
  • Step S4 determine the optimal cloud storage service node from each of the cloud storage service nodes according to the calculated service performance weight, and schedule the storage request to the optimal cloud storage service node.
  • the corresponding resource information of the optimal cloud storage service node is obtained from the preset cache pool, assembled into a response message and fed back to the smart device.
  • the storage request includes a local storage requirement
  • determining the optimal cloud storage service node from each of the cloud storage service nodes according to the calculated service performance weight includes:
  • the node with the largest service performance weight is selected from the candidate nodes as the optimal cloud storage service node.
  • the local storage requirement may include the local area range of the requested storage resource.
  • storage service nodes belonging to the local area range may be selected as candidate nodes according to the geographical location of the storage service node.
  • the local storage requirement may also be a distance threshold from the target cloud storage service node.
  • the distance between the smart device and each storage service node may be determined according to the geographical location of the storage service node, and then the storage service node corresponding to the distance not greater than the distance threshold may be selected as the candidate node.
  • the optimal cloud storage service node is determined in combination with the local storage requirements, so that resource scheduling can better meet the storage needs of smart devices, which is suitable for resource scheduling scenarios with storage locality requirements.
  • the determining the optimal cloud storage service node from the cloud storage service nodes according to the calculated service performance weights includes:
  • the node with the largest service performance weight is selected from each of the cloud storage service nodes as the optimal cloud storage service node.
  • the node with the largest service performance weight is selected as the optimal cloud storage service node, which can be applicable to the scenario where the storage request has no storage location requirement.
  • the method further includes:
  • the corresponding scheduling result information is recorded and stored in the preset cache pool.
  • the cloud storage pre-configuration information further includes a cache time threshold
  • the method further includes:
  • a data expiration policy is set using a cache time threshold, and expired data can be automatically eliminated through the policy, thereby implementing an update of pre-applied storage resource information in the cache pool.
  • the present invention also provides a dynamic feedback weighted cloud storage resource scheduling device, which is used to execute the dynamic feedback weighted cloud storage resource scheduling method described in any of the above embodiments of the present invention.
  • the dynamic feedback weighted cloud storage resource scheduling device is a cloud storage gateway.
  • FIG. 3 shows a dynamic feedback weighted cloud storage resource provided by an embodiment of the present invention.
  • Structural connection diagram of the source scheduling device
  • An embodiment of the present invention provides a dynamic feedback weighted cloud storage resource scheduling device, comprising:
  • Acquisition module 1 used to acquire cloud storage pre-configuration information, wherein the cloud storage pre-configuration information includes geographical location weight information, load threshold and resource pre-application quantity of each registered cloud storage service node;
  • Pre-application module 2 used to pre-apply for corresponding storage resources from each of the cloud storage service nodes according to the cloud storage pre-configuration information, and store the corresponding storage resource information in a preset cache pool;
  • the storage resource information includes service response data of each of the cloud storage service nodes to the corresponding storage resources;
  • the calculation module 3 is used to calculate the service performance weight of each of the cloud storage service nodes based on the geographical location weight information, the load threshold and the service response data in the preset cache pool when receiving a storage request sent by the smart device;
  • the scheduling module 4 is used to determine the optimal cloud storage service node from each of the cloud storage service nodes according to the calculated service performance weight, and schedule the storage request to the optimal cloud storage service node.
  • the calculation module 3 includes:
  • a determination unit configured to determine the current number of concurrent connections of each of the cloud storage service nodes and the average response time in each preset continuous time period based on the service response data in the preset cache pool;
  • the computing unit is used to calculate the service performance weight of each of the cloud storage service nodes according to the following formula:
  • W(S i ) represents the service performance weight of cloud storage service node S i
  • T(S i ) is the load threshold of cloud storage service node S i
  • C(S i ) is the current number of concurrent connections of cloud storage service node S i
  • R 1 (S i ) is the average response time of cloud storage service node S i within 1 minute
  • R j (S i ) is the average response time of cloud storage service node S i within j minutes
  • n is the preset service time
  • L(S i ) is the geographical location weight of cloud storage service node S i
  • k 1 is the weight coefficient of the loadable concurrency for the service performance weight
  • k 2 is the weight coefficient corresponding to the service response
  • k 3 is the weight coefficient corresponding to the geographical location attribute
  • k 1 +k 2 +k 3 1.
  • the calculation module 3 further includes:
  • the storage request includes a local storage requirement
  • the scheduling module 4 includes:
  • a first selection unit configured to select a cloud storage service node that meets the local storage requirement from each of the cloud storage service nodes as a candidate node;
  • the second selection unit is used to select the node with the largest service performance weight from each of the candidate nodes as the optimal node. Youyun storage service node.
  • the scheduling module 4 includes:
  • the third selection unit is used to select the cloud storage service node with the largest service performance weight from the cloud storage service nodes as the optimal cloud storage service node.
  • the device further includes:
  • the scheduling recording module is used to record the corresponding scheduling result information after scheduling the storage request to the optimal cloud storage service node, and store the scheduling result information in the preset cache pool.
  • the cloud storage pre-configuration information further includes a cache time threshold
  • the device further includes:
  • the update module is used to pre-apply for new storage resources from each of the cloud storage service nodes to update the current storage resource information if the storage time of the storage resource information in the preset cache pool reaches a cache time threshold.
  • the present invention also provides a dynamic feedback weighted cloud storage resource scheduling device, comprising:
  • a memory for storing instructions; wherein the instructions are used to implement the dynamic feedback weighted cloud storage resource scheduling method as described in any one of the above embodiments;
  • a processor is used to execute instructions in the memory.
  • the present invention also provides a computer-readable storage medium, on which a computer program is stored.
  • the computer program is executed by a processor, the dynamic feedback weighted cloud storage resource scheduling method as described in any one of the above embodiments is implemented.
  • the above-mentioned embodiment of the present invention is based on the weighted minimum connection scheduling algorithm.
  • it uses service response information, takes into account the service carrying capacity, concurrency performance and territorial information, and combines cache data to weight key factors, so as to achieve rapid calculation of the weight of the downstream cloud storage service performance, and allocates storage tasks to appropriate downstream server nodes based on the service performance weight, which provides a basis for service scheduling and can effectively improve the rationality and reliability of cloud storage resource scheduling.
  • the disclosed devices, equipment and methods can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another device, or some features can be ignored or not executed.
  • modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
  • the above integrated modules may be implemented in the form of hardware or in the form of software functional modules.
  • the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of the present invention is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product.
  • the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明涉及跨地域云存储资源的调度技术领域,公开了一种动态反馈加权云存储资源调度方法、装置及设备。本发明从各云存储服务节点预申请对应的存储资源,存储包括节点的服务响应数据在内的存储资源信息至预置缓存池,接收到智能设备发送的存储请求时,基于各节点的地理属地权值信息、负载阈值及服务响应数据计算各节点的服务性能权值,以确定最优云存储服务节点,将存储请求调度至最优云存储服务节点。本发明在加权最小连接调度算法的基础上计算各节点的服务性能权值以作为资源调度依据,能够在不需要部署相关性能采集程序的情况下实现对下游服务负载情况的测算,提升了云存储资源调度的合理性和可靠性,能够适用于使用第三方云存储服务的场景。

Description

一种动态反馈加权云存储资源调度方法、装置及设备 技术领域
本发明涉及跨地域云存储资源的调度技术领域,尤其涉及一种动态反馈加权云存储资源调度方法、装置及设备。
背景技术
目前基于云存储技术实现对智能设备(例如智能探头、智能门铃等)所采集数据的存储服务。
云存储资源分配一般使用就近策略,即根据地理位置就近分配服务资源。但这种静态的分配策略,往往无法兼顾存储服务提供质量、服务出口带宽、服务价格、服务并发数等因素,从而不能有效最大化存储服务业务发展。
现有技术中通过采用基于加权最小连接的云存储资源调度优化方案来优化云存储资源分配。例如,公开号为CN106790381A的中国发明专利提供了一种基于加权最小连接的动态反馈负载均衡方法,该方法在高流量的多服务器节点并行网络中,结合反向Nginx反向代理服务器,改进加权最小连接算法,使之进行优化,在不增加通信开销的基础上,实现上游服务器负载信息的采集,并动态修改Nginx反向代理服务器上的上游服务器权值,为优化负载分配提供依据。公开号为CN103338228A的中国发明专利提供了一种基于双加权最小连接算法的云计算负载均衡调度算法,该算法在加权最小连接调度算法对资源服务器的性能进行加权的基础上,采用服务器上CPU空闲率和内存空闲率等实时信息动态地表示服务器性能的权值,从而充分评估和利用各节点服务器的剩余处理能力;根据任务类型的复杂程度为任务赋予相应的权值;为保证装置在长时间运行状态下各个节点的负载不发生较大的倾斜,每次分配任务之前,调度器将计算出每个服务器上所有任务的权值之和与服务器性能的权值之比,将新任务分配给比值最小的服务器。
然而,上述现有的云存储资源调度方案在执行时,需要对提供存储服务的基础设施安装额外的采集程序,以收集相关动态反馈信息。当使用第三方云存储服务时,因难以在第三方云存储服务节点部署相关采集程序而不能收集相关性能指标,导致相关方法无法使用。
发明内容
本发明提供了一种动态反馈加权云存储资源调度方法、装置及设备,解决了现有云存储资源调度优化方案在使用第三方云存储服务的场景下因难以部署相关性能指标的采集程序而无法使用的技术问题。
本发明第一方面提供一种动态反馈加权云存储资源调度方法,包括:
获取云存储预配置信息,所述云存储预配置信息包括注册的各云存储服务节点的地理属地权值信息、负载阈值和资源预申请数量;
根据所述云存储预配置信息从各所述云存储服务节点预申请对应的存储资源,存储相应的存储资源信息至预置缓存池;所述存储资源信息包括各所述云存储服务节点对相应存储资源的服务响应数据;
接收到智能设备发送的存储请求时,基于所述地理属地权值信息、所述负载阈值及所述预置缓存池中的服务响应数据计算各所述云存储服务节点的服务性能权值;
根据计算得到的服务性能权值从各所述云存储服务节点中确定最优云存储服务节点,将所述存储请求调度至所述最优云存储服务节点。
根据本发明第一方面的一种能够实现的方式,所述基于所述地理属地权值信息、所述负载阈值及所述预置缓存池中的服务响应数据计算各所述云存储服务节点的服务性能权值,包括:
基于所述预置缓存池中的服务响应数据确定各所述云存储服务节点的当前并发连接数及各预置连续时间段内的平均响应时间;
按照下式计算各所述云存储服务节点的服务性能权值:
式中,W(Si)表示云存储服务节点Si的服务性能权值,T(Si)为云存储服务节点Si的负载阈值,C(Si)为云存储服务节点Si的当前并发连接数,R1(Si)为云存储服务节点Si在1分钟内服务的平均响应时间,Rj(Si)为云存储服务节点Si在j分钟内服务的平均响应时间,n为预置服务时间,L(Si)为云存储服务节点Si的地理属地权值,k1为可承载并发量对于服务性能权值的权值系数,k2为服务响应对应的权值系数,k3为地理属地属性对应的权值系数,k1+k2+k3=1。
根据本发明第一方面的一种能够实现的方式,所述基于所述地理属地权值信息、所述负载阈值、所述当前并发连接数及所述服务响应数据计算各所述云 存储服务节点的服务性能权值,还包括:
设置k1=0.6、k2=0.35及k3=0.05。
根据本发明第一方面的一种能够实现的方式,所述存储请求包括属地存储要求,所述根据计算得到的服务性能权值从各所述云存储服务节点中确定最优云存储服务节点,包括:
从各所述云存储服务节点中选择满足所述属地存储要求的云存储服务节点作为备选节点;
从各所述备选节点中选取服务性能权值最大的作为最优云存储服务节点。
根据本发明第一方面的另一种能够实现的方式,所述根据计算得到的服务性能权值从各所述云存储服务节点中确定最优云存储服务节点,包括:
从各所述云存储服务节点中选择服务性能权值最大的作为最优云存储服务节点。
根据本发明第一方面的一种能够实现的方式,所述方法还包括:
在将所述存储请求调度至所述最优云存储服务节点之后,记录对应的调度结果信息,将所述调度结果信息存储至所述预置缓存池。
根据本发明第一方面的一种能够实现的方式,所述云存储预配置信息还包括缓存时间阈值,所述方法还包括:
若存储资源信息在所述预置缓存池的存储时长达到缓存时间阈值,从各所述云存储服务节点预申请新的存储资源,以更新当前的存储资源信息。
本发明第二方面提供一种动态反馈加权云存储资源调度装置,包括:
获取模块,用于获取云存储预配置信息,所述云存储预配置信息包括注册的各云存储服务节点的地理属地权值信息、负载阈值和资源预申请数量;
预申请模块,用于根据所述云存储预配置信息从各所述云存储服务节点预申请对应的存储资源,存储相应的存储资源信息至预置缓存池;所述存储资源信息包括各所述云存储服务节点对相应存储资源的服务响应数据;
计算模块,用于接收到智能设备发送的存储请求时,基于所述地理属地权值信息、所述负载阈值及所述预置缓存池中的服务响应数据计算各所述云存储服务节点的服务性能权值;
调度模块,用于根据计算得到的服务性能权值从各所述云存储服务节点中确定最优云存储服务节点,将所述存储请求调度至所述最优云存储服务节点。
根据本发明第二方面的一种能够实现的方式,所述计算模块包括:
确定单元,用于基于所述预置缓存池中的服务响应数据确定各所述云存储服务节点的当前并发连接数及各预置连续时间段内的平均响应时间;
计算单元,用于按照下式计算各所述云存储服务节点的服务性能权值:
式中,W(Si)表示云存储服务节点Si的服务性能权值,T(Si)为云存储服务节点Si的负载阈值,C(Si)为云存储服务节点Si的当前并发连接数,R1(Si)为云存储服务节点Si在1分钟内服务的平均响应时间,Rj(Si)为云存储服务节点Si在j分钟内服务的平均响应时间,n为预置服务时间,L(Si)为云存储服务节点Si的地理属地权值,k1为可承载并发量对于服务性能权值的权值系数,k2为服务响应对应的权值系数,k3为地理属地属性对应的权值系数,k1+k2+k3=1。
根据本发明第二方面的一种能够实现的方式,所述计算模块还包括:
设置单元,用于设置k1=0.6、k2=0.35及k3=0.05。
根据本发明第二方面的一种能够实现的方式,所述存储请求包括属地存储要求,所述调度模块包括:
第一选择单元,用于从各所述云存储服务节点中选择满足所述属地存储要求的云存储服务节点作为备选节点;
第二选择单元,用于从各所述备选节点中选取服务性能权值最大的作为最优云存储服务节点。
根据本发明第二方面的另一种能够实现的方式,所述调度模块包括:
第三选择单元,用于从各所述云存储服务节点中选择服务性能权值最大的作为最优云存储服务节点。
在一种能够实现的方式中,所述装置还包括:
调度记录模块,用于在将所述存储请求调度至所述最优云存储服务节点之后,记录对应的调度结果信息,将所述调度结果信息存储至所述预置缓存池。
根据本发明第二方面的一种能够实现的方式,所述云存储预配置信息还包括缓存时间阈值,所述装置还包括:
更新模块,用于若存储资源信息在所述预置缓存池的存储时长达到缓存时间阈值,从各所述云存储服务节点预申请新的存储资源,以更新当前的存储资源信息。
本发明第三方面提供了一种动态反馈加权云存储资源调度设备,包括:
存储器,用于存储指令;其中,所述指令用于实现如上任意一项能够实现的方式所述的动态反馈加权云存储资源调度方法;
处理器,用于执行所述存储器中的指令。
本发明第四方面一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上任意一项能够实现的方式所述的动态反馈加权云存储资源调度方法。
从以上技术方案可以看出,本发明具有以下优点:
本发明根据云存储预配置信息从各云存储服务节点预申请对应的存储资源,存储包括节点的服务响应数据在内的存储资源信息至预置缓存池,接收到智能设备发送的存储请求时,基于各云存储服务节点的地理属地权值信息、负载阈值及服务响应数据计算各云存储服务节点的服务性能权值,根据计算得到的服务性能权值从各云存储服务节点中确定最优云存储服务节点,将所述存储请求调度至最优云存储服务节点;本发明在加权最小连接调度算法的基础上,通过己方可获取的服务响应数据获得各节点的并发连接数和服务平均响应时间等动态因素,结合预先得到的节点属地信息计算各节点的服务性能权值以作为资源调度依据,能够在不需要部署相关性能采集程序的情况下实现对下游服务负载情况的测算,提升了云存储资源调度的合理性和可靠性,能够适用于使用第三方云存储服务的场景。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其它的附图。
图1为本发明一个可选实施例提供的一种动态反馈加权云存储资源调度方法的流程图;
图2为本发明一个可选实施例提供的一种动态反馈加权云存储资源调度方法的原理示意图;
图3为本发明一个可选实施例提供的一种动态反馈加权云存储资源调度装置的结构连接框图。
附图标记:
1-获取模块;2-预申请模块;3-计算模块;4-调度模块。
具体实施方式
本发明实施例提供了一种动态反馈加权云存储资源调度方法、装置及设备,用于解决现有云存储资源调度优化方案在使用第三方云存储服务的场景下因难以部署相关性能指标的采集程序而无法使用的技术问题。
为使得本发明的发明目的、特征、优点能够更加的明显和易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,下面所描述的实施例仅仅是本发明一部分实施例,而非全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。
本发明提供了一种动态反馈加权云存储资源调度方法。
图1示出了本发明实施例提供的一种动态反馈加权云存储资源调度方法的流程图;图2示出了本发明一个可选实施例提供的一种动态反馈加权云存储资源调度方法的原理示意图。
请参阅图1、图2,本发明实施例提供的一种动态反馈加权云存储资源调度方法,包括步骤S1-S4。
步骤S1,获取云存储预配置信息,所述云存储预配置信息包括注册的各云存储服务节点的地理属地权值信息、负载阈值和资源预申请数量。
该云存储预配置信息可以在执行该方法的装置/设备初始化时得到。
其中,地理属地权值信息可按照云存储服务节点的地理位置,根据实际情况设置各地理位置对应的权值得到。例如,可以根据实际业务需求指定各目标区域范围,对每个目标区域范围设置相应的位置权值,根据各云存储服务节点的位置所属的目标区域范围确定相应的地理属地权值。又例如,可以根据节点距离执行本申请方法的装置/设备的远近进行地理属地权值的设置。具体地,对距离执行本申请方法的装置/设备较近的云存储服务节点设置较大的地理属地权值,以利于本地化存储。
作为具体的实施方式,地理属地权值的大小范围在0~1之间,以利于后续服务性能权值的计算。
需要说明的是,该地理属地权值的大小范围也可以根据实际需要进行调整,例如设置在0.2~0.8之间,又例如设置在0.2~1.2之间。
其中,资源预申请数量用于指导后续预申请对应存储资源的数量。
步骤S2,根据所述云存储预配置信息从各所述云存储服务节点预申请对应的存储资源,存储相应的存储资源信息至预置缓存池;所述存储资源信息包括各所述云存储服务节点对相应存储资源的服务响应数据。
作为具体的实施方式,如图2所示,该预置缓存池为Redis缓存池。当然,该预置缓存池也可以根据实际情况采用其他适用的现有的数据库形式。
所述存储资源信息还包括提供预申请的存储资源的云存储服务节点的标识以及对应存储资源的相应信息,例如存储资源的存储类型、容量大小、接口类型及接口地址。
存储相应的存储资源信息至预置缓存池时,可以按照不同云存储服务节点进行分区存储,从而将相应的存储资源信息存储至不同的容器中,以便于后续存储资源的调度。
步骤S3,接收到智能设备发送的存储请求时,基于所述地理属地权值信息、所述负载阈值及所述预置缓存池中的服务响应数据计算各所述云存储服务节点的服务性能权值。
计算各所述云存储服务节点的服务性能权值时,首先基于所述预置缓存池中的服务响应数据获得各云存储服务节点的当前并发连接数及各预置连续时间段内的平均响应时间,进而根据所获得的数据计算各所述云存储服务节点的服务性能权值。
在一种能够实现的方式中,按照下式计算各所述云存储服务节点的服务性能权值:
式中,W(Si)表示云存储服务节点Si的服务性能权值,T(Si)为云存储服务节点Si的负载阈值,C(Si)为云存储服务节点Si的当前并发连接数,R1(Si)为云存储服务节点Si在1分钟内服务的平均响应时间,Rj(Si)为云存储服务节点Si在j分钟内服务的平均响应时间,n为预置服务时间,L(Si)为云存储服务节点Si的地理属地权值,k1为可承载并发量对于服务性能权值的权值系数,k2为服务响应对应的权值系数,k3为地理属地属性对应的权值系数,k1+k2+k3=1。
在具体的实施方式中,设置n≤30min。
本实施例中,云存储服务节点的服务性能权值由 三部分构成。为便于计算,此处L(Si)的设置值为0~1之间。
由第一部分公式可知,负载越高,对应的公式值越小,相应的服务性能权值计算结果越小;由第二部分公式可知,云硬盘性能接近为线性,在响应幅度变化越大下得到的公式值越大甚至出现负值,导致整个服务性能权值变小。在方法执行初始阶段,因第一部分的公式值接近k1,第二部分的公式值接近0,则主要由第三部分公式影响云存储服务节点的服务性能权值。基于此,为提高服务性能权值计算的合理性,作为具体的实施方式,设置k1=0.6、k2=0.35及k3=0.05。
需要说明的是,还可以根据实际情况对k1,k2,k3设置其他的值。
本实施例中,对于第二部分公式,是基于云存储服务节点的1~n分钟对应的服务的平均响应时间来计算的。在其他能够实现的方式中,可根据实际需求,以若干个分钟内服务的平均响应时间来计算。例如,可获取云存储服务节点Si在1分钟内服务的平均响应时间R1(Si)、在5分钟内服务的平均响应时间R5(Si)、在10分钟内服务的平均响应时间R10(Si)以及在30分钟内服务的平均响应时间R30(Si)进行第二部分的计算,则第二部分的公式替换为:
本发明上述实施例,通过己方可获取的服务响应数据获得各节点的并发连接数和服务平均响应时间等动态因素,考虑了服务承载能力、并发性能、实时响应、属地信息,结合缓存数据的快速计算,对关键因素进行加权,实现了对各节点的服务性能权值的计算,为后续资源调度提供依据。本实施例,能够在不需要部署相关性能采集程序的情况下实现对下游服务负载情况的测算。
步骤S4,根据计算得到的服务性能权值从各所述云存储服务节点中确定最优云存储服务节点,将所述存储请求调度至所述最优云存储服务节点。
将所述存储请求调度至所述最优云存储服务节点时,具体地,根据智能设备的缓存请求,从预置缓存池中获取该最优云存储服务节点相应的资源信息,组装成响应报文并反馈至该智能设备。
在一种能够实现的方式中,所述存储请求包括属地存储要求,所述根据计算得到的服务性能权值从各所述云存储服务节点中确定最优云存储服务节点,包括:
从各所述云存储服务节点中选择满足所述属地存储要求的云存储服务节点作为备选节点;
从各所述备选节点中选取服务性能权值最大的作为最优云存储服务节点。
作为具体的实施方式,所述属地存储要求可以包括所请求存储资源的属地区域范围。进而,在执行该方法时,可以根据存储服务节点的地理位置,将属于该属地区域范围的存储服务节点作为备选节点。
在其他实施方式中,所述属地存储要求还可以是与目标云存储服务节点的距离阈值。进而,在执行该方法时,可以根据存储服务节点的地理位置,确定智能设备与各存储服务节点的距离,进而选取距离不大于该距离阈值所对应的存储服务节点作为备选节点。
本实施例中,结合属地存储要求确定最优云存储服务节点,使得资源调度更加满足智能设备的存储需求,适用于有存储属地要求的资源调度场景。
在另一种能够实现的方式中,所述根据计算得到的服务性能权值从各所述云存储服务节点中确定最优云存储服务节点,包括:
从各所述云存储服务节点中选择服务性能权值最大的作为最优云存储服务节点。
本实施例中,选择服务性能权值最大的作为最优云存储服务节点,可以适用于存储请求没有存储属地要求时的场景。
在一种能够实现的方式中,所述方法还包括:
在将所述存储请求调度至所述最优云存储服务节点之后,记录对应的调度结果信息,将所述调度结果信息存储至所述预置缓存池。
在一种能够实现的方式中,所述云存储预配置信息还包括缓存时间阈值,所述方法还包括:
若存储资源信息在所述预置缓存池的存储时长达到缓存时间阈值,从各所述云存储服务节点预申请新的存储资源,以更新当前的存储资源信息。
本实施例中,利用缓存时间阈值设置数据过期策略,通过该策略可以自动淘汰过期数据,实现缓存池中预申请的存储资源信息的更新。
本发明还提供了一种动态反馈加权云存储资源调度装置,该装置用于执行本发明上述任一项实施例所述的动态反馈加权云存储资源调度方法。作为具体的实施方式,该动态反馈加权云存储资源调度装置为云存储网关。
请参阅图3,图3示出了本发明实施例提供的一种动态反馈加权云存储资 源调度装置的结构连接框图。
本发明实施例提供的一种动态反馈加权云存储资源调度装置,包括:
获取模块1,用于获取云存储预配置信息,所述云存储预配置信息包括注册的各云存储服务节点的地理属地权值信息、负载阈值和资源预申请数量;
预申请模块2,用于根据所述云存储预配置信息从各所述云存储服务节点预申请对应的存储资源,存储相应的存储资源信息至预置缓存池;所述存储资源信息包括各所述云存储服务节点对相应存储资源的服务响应数据;
计算模块3,用于接收到智能设备发送的存储请求时,基于所述地理属地权值信息、所述负载阈值及所述预置缓存池中的服务响应数据计算各所述云存储服务节点的服务性能权值;
调度模块4,用于根据计算得到的服务性能权值从各所述云存储服务节点中确定最优云存储服务节点,将所述存储请求调度至所述最优云存储服务节点。
在一种能够实现的方式中,所述计算模块3包括:
确定单元,用于基于所述预置缓存池中的服务响应数据确定各所述云存储服务节点的当前并发连接数及各预置连续时间段内的平均响应时间;
计算单元,用于按照下式计算各所述云存储服务节点的服务性能权值:
式中,W(Si)表示云存储服务节点Si的服务性能权值,T(Si)为云存储服务节点Si的负载阈值,C(Si)为云存储服务节点Si的当前并发连接数,R1(Si)为云存储服务节点Si在1分钟内服务的平均响应时间,Rj(Si)为云存储服务节点Si在j分钟内服务的平均响应时间,n为预置服务时间,L(Si)为云存储服务节点Si的地理属地权值,k1为可承载并发量对于服务性能权值的权值系数,k2为服务响应对应的权值系数,k3为地理属地属性对应的权值系数,k1+k2+k3=1。
在一种能够实现的方式中,所述计算模块3还包括:
设置单元,用于设置k1=0.6、k2=0.35及k3=0.05。
在一种能够实现的方式中,所述存储请求包括属地存储要求,所述调度模块4包括:
第一选择单元,用于从各所述云存储服务节点中选择满足所述属地存储要求的云存储服务节点作为备选节点;
第二选择单元,用于从各所述备选节点中选取服务性能权值最大的作为最 优云存储服务节点。
在另一种能够实现的方式中,所述调度模块4包括:
第三选择单元,用于从各所述云存储服务节点中选择服务性能权值最大的作为最优云存储服务节点。
在一种能够实现的方式中,所述装置还包括:
调度记录模块,用于在将所述存储请求调度至所述最优云存储服务节点之后,记录对应的调度结果信息,将所述调度结果信息存储至所述预置缓存池。
在一种能够实现的方式中,所述云存储预配置信息还包括缓存时间阈值,所述装置还包括:
更新模块,用于若存储资源信息在所述预置缓存池的存储时长达到缓存时间阈值,从各所述云存储服务节点预申请新的存储资源,以更新当前的存储资源信息。
本发明还提供了一种动态反馈加权云存储资源调度设备,包括:
存储器,用于存储指令;其中,所述指令用于实现如上任意一项实施例所述的动态反馈加权云存储资源调度方法;
处理器,用于执行所述存储器中的指令。
本发明还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上任意一项实施例所述的动态反馈加权云存储资源调度方法。
本发明上述实施例,基于加权最小连接调度算法,在无法采集下游云存储服务相关性能参数的情况下,利用服务响应信息,并考虑了服务承载能力、并发性能和属地信息,结合缓存数据对关键因素进行加权,实现对下游云存储服务性能的权值的快速计算,并基于服务性能权值,将存储任务分配给合适的下游服务器节点,为服务调度提供了依据,能够有效提高云存储资源调度的合理性和可靠性。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置、设备和模块的具体工作过程,可以参考前述方法实施例中的对应过程,上述描述的装置、设备和模块的具体有益效果,可以参考前述方法实施例中的对应有益效果,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置、设备和方法,可以通过其它的方式实现。例如,以上所描述的设备实施例仅仅是示意性 的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。
所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。

Claims (10)

  1. 一种动态反馈加权云存储资源调度方法,其特征在于,包括:
    获取云存储预配置信息,所述云存储预配置信息包括注册的各云存储服务节点的地理属地权值信息、负载阈值和资源预申请数量;
    根据所述云存储预配置信息从各所述云存储服务节点预申请对应的存储资源,存储相应的存储资源信息至预置缓存池;所述存储资源信息包括各所述云存储服务节点对相应存储资源的服务响应数据;
    接收到智能设备发送的存储请求时,基于所述地理属地权值信息、所述负载阈值及所述预置缓存池中的服务响应数据计算各所述云存储服务节点的服务性能权值;
    根据计算得到的服务性能权值从各所述云存储服务节点中确定最优云存储服务节点,将所述存储请求调度至所述最优云存储服务节点。
  2. 根据权利要求1所述的动态反馈加权云存储资源调度方法,其特征在于,所述基于所述地理属地权值信息、所述负载阈值及所述预置缓存池中的服务响应数据计算各所述云存储服务节点的服务性能权值,包括:
    基于所述预置缓存池中的服务响应数据确定各所述云存储服务节点的当前并发连接数及各预置连续时间段内的平均响应时间;
    按照下式计算各所述云存储服务节点的服务性能权值:
    式中,W(Si)表示云存储服务节点Si的服务性能权值,T(Si)为云存储服务节点Si的负载阈值,C(Si)为云存储服务节点Si的当前并发连接数,R1(Si)为云存储服务节点Si在1分钟内服务的平均响应时间,Rj(Si)为云存储服务节点Si在j分钟内服务的平均响应时间,n为预置服务时间,L(Si)为云存储服务节点Si的地理属地权值,k1为可承载并发量对于服务性能权值的权值系数,k2为服务响应对应的权值系数,k3为地理属地属性对应的权值系数,k1+k2+k3=1。
  3. 根据权利要求2所述的动态反馈加权云存储资源调度方法,其特征在于,所述基于所述地理属地权值信息、所述负载阈值、所述当前并发连接数及所述服务响应数据计算各所述云存储服务节点的服务性能权值,还包括:
    设置k1=0.6、k2=0.35及k3=0.05。
  4. 根据权利要求1所述的动态反馈加权云存储资源调度方法,其特征在于, 所述存储请求包括属地存储要求,所述根据计算得到的服务性能权值从各所述云存储服务节点中确定最优云存储服务节点,包括:
    从各所述云存储服务节点中选择满足所述属地存储要求的云存储服务节点作为备选节点;
    从各所述备选节点中选取服务性能权值最大的作为最优云存储服务节点。
  5. 根据权利要求1所述的动态反馈加权云存储资源调度方法,其特征在于,所述根据计算得到的服务性能权值从各所述云存储服务节点中确定最优云存储服务节点,包括:
    从各所述云存储服务节点中选择服务性能权值最大的作为最优云存储服务节点。
  6. 根据权利要求1所述的动态反馈加权云存储资源调度方法,其特征在于,所述方法还包括:
    在将所述存储请求调度至所述最优云存储服务节点之后,记录对应的调度结果信息,将所述调度结果信息存储至所述预置缓存池。
  7. 根据权利要求1所述的动态反馈加权云存储资源调度方法,其特征在于,所述云存储预配置信息还包括缓存时间阈值,所述方法还包括:
    若存储资源信息在所述预置缓存池的存储时长达到缓存时间阈值,从各所述云存储服务节点预申请新的存储资源,以更新当前的存储资源信息。
  8. 一种动态反馈加权云存储资源调度装置,其特征在于,包括:
    获取模块,用于获取云存储预配置信息,所述云存储预配置信息包括注册的各云存储服务节点的地理属地权值信息、负载阈值和资源预申请数量;
    预申请模块,用于根据所述云存储预配置信息从各所述云存储服务节点预申请对应的存储资源,存储相应的存储资源信息至预置缓存池;所述存储资源信息包括各所述云存储服务节点对相应存储资源的服务响应数据;
    计算模块,用于接收到智能设备发送的存储请求时,基于所述地理属地权值信息、所述负载阈值及所述预置缓存池中的服务响应数据计算各所述云存储服务节点的服务性能权值;
    调度模块,用于根据计算得到的服务性能权值从各所述云存储服务节点中确定最优云存储服务节点,将所述存储请求调度至所述最优云存储服务节点。
  9. 一种动态反馈加权云存储资源调度设备,其特征在于,包括:
    存储器,用于存储指令;其中,所述指令用于实现如权利要求1-7任意一 项所述的动态反馈加权云存储资源调度方法;
    处理器,用于执行所述存储器中的指令。
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1-7任意一项所述的动态反馈加权云存储资源调度方法。
PCT/CN2023/129274 2022-11-03 2023-11-02 一种动态反馈加权云存储资源调度方法、装置及设备 WO2024094104A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211371974.1 2022-11-03
CN202211371974.1A CN115714817A (zh) 2022-11-03 2022-11-03 一种动态反馈加权云存储资源调度方法、装置及设备

Publications (1)

Publication Number Publication Date
WO2024094104A1 true WO2024094104A1 (zh) 2024-05-10

Family

ID=85232227

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/129274 WO2024094104A1 (zh) 2022-11-03 2023-11-02 一种动态反馈加权云存储资源调度方法、装置及设备

Country Status (2)

Country Link
CN (1) CN115714817A (zh)
WO (1) WO2024094104A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115714817A (zh) * 2022-11-03 2023-02-24 天翼数字生活科技有限公司 一种动态反馈加权云存储资源调度方法、装置及设备
CN116361006B (zh) * 2023-03-31 2023-11-21 山东省计算中心(国家超级计算济南中心) 面向存算分离的算网资源协同调度方法及系统
CN117195316B (zh) * 2023-08-21 2024-08-09 深圳市云存宝技术有限公司 一种基于云技术的云硬盘管理方法、装置、服务器及介质
CN117579626B (zh) * 2023-11-17 2024-06-04 深圳白鹿云数据科技有限公司 基于分布式实现边缘计算下的优化方法及系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130064292A (ko) * 2011-12-08 2013-06-18 한국전자통신연구원 스마트 폰을 위한 클라우드 서비스 시스템 및 방법
CN105007312A (zh) * 2015-07-03 2015-10-28 叶秀兰 一种云计算服务器自适应负载均衡控制方法及控制系统
CN107547658A (zh) * 2017-09-27 2018-01-05 国云科技股份有限公司 一种集中式云存储平台自动分配与连接云盘的方法
CN115714817A (zh) * 2022-11-03 2023-02-24 天翼数字生活科技有限公司 一种动态反馈加权云存储资源调度方法、装置及设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130064292A (ko) * 2011-12-08 2013-06-18 한국전자통신연구원 스마트 폰을 위한 클라우드 서비스 시스템 및 방법
CN105007312A (zh) * 2015-07-03 2015-10-28 叶秀兰 一种云计算服务器自适应负载均衡控制方法及控制系统
CN107547658A (zh) * 2017-09-27 2018-01-05 国云科技股份有限公司 一种集中式云存储平台自动分配与连接云盘的方法
CN115714817A (zh) * 2022-11-03 2023-02-24 天翼数字生活科技有限公司 一种动态反馈加权云存储资源调度方法、装置及设备

Also Published As

Publication number Publication date
CN115714817A (zh) 2023-02-24

Similar Documents

Publication Publication Date Title
WO2024094104A1 (zh) 一种动态反馈加权云存储资源调度方法、装置及设备
CN102662764B (zh) 一种基于smdp的动态云计算资源优化分配方法
US20100076933A1 (en) Techniques for resource location and migration across data centers
US20200012602A1 (en) Cache allocation method, and apparatus
CN111614754B (zh) 面向雾计算的成本效率优化的动态自适应任务调度方法
CN109861850B (zh) 一种基于sla的无状态云工作流负载均衡调度的方法
US7437459B2 (en) Calculation of service performance grades in a multi-node environment that hosts the services
CN104375897A (zh) 基于最小相对负载不均衡度的云计算资源调度方法
CN111311286B (zh) 一种智能客服数据处理方法、装置及计算设备、存储介质
CN113037877A (zh) 云边端架构下时空数据及资源调度的优化方法
CN113946436B (zh) 一种基于负载均衡的资源预调度方法
CN118093326B (zh) 基于算力调度的云渲染资源监控方法及系统
Alkhalaileh et al. Dynamic resource allocation in hybrid mobile cloud computing for data-intensive applications
CN114490018A (zh) 一种基于资源特征匹配的服务调度算法
Durga et al. Context-aware adaptive resource provisioning for mobile clients in intra-cloud environment
CN110167031A (zh) 一种面向集中式基站的资源分配方法、设备及存储介质
CN117608806A (zh) 智能电网云边协同机制下计算任务雾-雾-云优化方法
CN116302578B (zh) 一种QoS约束的流应用延迟确保方法及系统
CN110213450B (zh) 基于多中心的手语在线客服分配管理方法、装置及系统
Farooq et al. Adaptive and resilient revenue maximizing dynamic resource allocation and pricing for cloud-enabled IoT systems
CN117076117A (zh) 一种基于新通信架构的媒体会场智能调度方法及系统
Khalifa et al. MobiCloud: A reliable collaborative mobilecloud management system
Saravanan et al. Cloud resource optimization based on Poisson linear deep gradient learning for mobile cloud computing
CN108540557A (zh) 一种基于动态限速的云应用负载调度方法
CN117194053B (zh) 一种基于大数据的云管理方法及系统

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: 23885030

Country of ref document: EP

Kind code of ref document: A1