CN105491152A - A method for configuring a scheduler for cloud storage resources - Google Patents
A method for configuring a scheduler for cloud storage resources Download PDFInfo
- Publication number
- CN105491152A CN105491152A CN201511008896.9A CN201511008896A CN105491152A CN 105491152 A CN105491152 A CN 105491152A CN 201511008896 A CN201511008896 A CN 201511008896A CN 105491152 A CN105491152 A CN 105491152A
- Authority
- CN
- China
- Prior art keywords
- filter
- node
- candidate
- score
- nodes
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
- H04L67/1012—Server selection for load balancing based on compliance of requirements or conditions with available server resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
Description
技术领域technical field
本发明涉及云平台存储虚拟化技术领域,特别是一种云存储资源可配置调度器的方法。The invention relates to the technical field of cloud platform storage virtualization, in particular to a method for configuring a scheduler of cloud storage resources.
背景技术Background technique
在新搭建的云计算平台,通常一开始就需要创建大量的存储卷来虚拟机系统盘或云盘,而云计算平台通常提供自动分配存储卷,但自动分配通常只能根据一种简单的策略来完成,这样会带来以下问题:On a newly built cloud computing platform, it is usually necessary to create a large number of storage volumes to virtual machine system disks or cloud disks at the beginning, and cloud computing platforms usually provide automatic allocation of storage volumes, but automatic allocation is usually only based on a simple strategy To complete, this will bring the following problems:
一是分配方法不符合用户预期。用户不想手工配置,但自动配置又不够人性化。One is that the allocation method does not meet user expectations. Users don't want to configure manually, but automatic configuration is not user-friendly enough.
二是不同客户购买云计算平台的自动分配需求不完全一样,云平台不支持可配置的方式将常用的几个业务场景组合。Second, the automatic allocation requirements of different customers purchasing cloud computing platforms are not exactly the same, and the cloud platform does not support the combination of several commonly used business scenarios in a configurable way.
三是程序员维护多套代码来满足业务需求,开发效率低下并且维护成本高。The third is that programmers maintain multiple sets of codes to meet business needs, which leads to low development efficiency and high maintenance costs.
为了解决上述问题,需要有一种云存储资源可配置调度器的方法。用户根据自己的业务需求,配置需要的过滤器、称重器,系统调度器自动根据配置文件加载对应的过滤器和称重器,自动分配存储卷时选择最佳候选节点来创建存储卷。In order to solve the above problems, there is a need for a method for configuring a scheduler for cloud storage resources. Users configure the required filters and scales according to their business needs, and the system scheduler automatically loads the corresponding filters and scales according to the configuration files, and selects the best candidate node to create storage volumes when automatically allocating storage volumes.
发明内容Contents of the invention
本发明解决的技术问题在于提供一种云存储资源可配置调度器的方法,解决自动分配方法不够人性化、云平台不支持可配置的方式将常用的几个业务场景组合、程序员维护多套代码来满足业务需求时开发效率低下并且维护成本高等问题。The technical problem solved by the present invention is to provide a method for a configurable scheduler of cloud storage resources, which solves the problem that the automatic allocation method is not humanized enough, the cloud platform does not support configurable ways to combine several commonly used business scenarios, and programmers maintain multiple sets When the code is used to meet business needs, the development efficiency is low and the maintenance cost is high.
本发明解决上述技术问题的技术方案是:The technical scheme that the present invention solves the problems of the technologies described above is:
所述的方法包括如下步骤:Described method comprises the steps:
步骤1:设置过滤器名称列表;Step 1: Set the list of filter names;
步骤2:设置称重器名称列表;Step 2: Set the weighing device name list;
步骤3:加载过滤器;Step 3: Load the filter;
步骤4:加载称重器;Step 4: Load the scale;
步骤5:开始创建存储卷;Step 5: Start creating storage volumes;
步骤6:获取候选节点;Step 6: Obtain candidate nodes;
步骤7:过滤候选节点;Step 7: filter candidate nodes;
步骤8:候选节点称重;Step 8: Candidate nodes are weighed;
步骤9:称重排序;Step 9: Weighing and sorting;
步骤10:选择最佳节点创建存储卷。Step 10: Select the best node to create a storage volume.
所述的设置过滤器名称列表,在配置文件上设置各个过滤器的名称列表;The above-mentioned setting filter name list, set the name list of each filter on the configuration file;
所述的设置称重器名称列表,在配置文件上设置各个称重器的名称列表;Said setting the name list of the weighing device, the name list of each weighing device is set on the configuration file;
所述的加载过滤器,根据在配置文件上设置各个过滤器的名称列表加载对应的过滤器,过滤器可以是0个或多个,由用户配置;The loading filter loads the corresponding filter according to the name list of each filter set on the configuration file, and the filter can be 0 or more, configured by the user;
所述的加载称重器,根据在配置文件上设置各个称重器的名称列表加载对应的称重器,称重器可以是0个或多个,由用户配置。The loading of the weighing device loads the corresponding weighing device according to the name list of each weighing device set in the configuration file. There can be zero or more weighing devices configured by the user.
所述的开始创建存储卷,用户开始创建存储卷,可以指定目的节点也可以由系统调度器自动分配;自动分配之前,用户可以增加一些存储类型等过滤条件;When starting to create a storage volume, the user can specify the destination node or be automatically allocated by the system scheduler; before the automatic allocation, the user can add some filtering conditions such as storage type;
所述的系统调度器是由过滤器、称重器等核心组件组成。The system scheduler is composed of core components such as filters and weighing devices.
所述的获取候选节点,在所有存储节点上选择状态为激活的节点,已经关机的存储节点不能作为候选节点;For the acquisition of candidate nodes, select nodes whose status is active on all storage nodes, and storage nodes that have been shut down cannot be used as candidate nodes;
所述的过滤候选节点,所有已加载的过滤器过滤候选节点,只要符合所有过滤器要求的节点才能进入下一步,否则就从候选节点集合中剔除;过滤方式方式有通过指定节点过滤、通过存储类型过滤、通过剩余资源过滤。The filter candidate nodes mentioned above, all the loaded filter filter candidate nodes, only the nodes that meet all the filter requirements can enter the next step, otherwise they will be removed from the candidate node set; the filtering methods include filtering through specified nodes and storing Filter by type, filter by remaining resources.
所述的候选节点称重,每个称重器按顺序对候选节点称重;即每个称重器都对候选节点计算权重得分,那么每个候选节点权重总得分=称重器1的得分+称重器2的得分+...+称重器N的得分;The candidate nodes are weighed, and each weigher weighs the candidate nodes in order; that is, each weigher calculates a weight score for the candidate node, so each candidate node weight total score=the score of weigher 1 + Score of Scale 2 + ... + Score of Scale N;
所述的称重器是专门计算候选节点在某方面的权重。The weigher is specially used to calculate the weight of candidate nodes in certain aspects.
所述的称重排序,根据候选节点权重总得分进行排序,由高到低排序,最高分排在队列最前面;The weighing sorting is sorted according to the total weight score of the candidate nodes, sorted from high to low, and the highest score is at the front of the queue;
所述的选择最佳节点开始创建存储卷,选择权重得分最高(即队列最前面)候选节点作为最佳节点,发消息给此节点创建存储卷,存储卷就可作为虚拟机系统盘或云盘。Select the best node to start creating storage volumes, select the candidate node with the highest weight score (i.e. the front of the queue) as the best node, send a message to this node to create a storage volume, and the storage volume can be used as a virtual machine system disk or cloud disk .
本发明通过一种云存储资源可配置调度器的方法,分配方法不符合用户预期、云平台不支持可配置的方式将常用的几个业务场景组合、程序员维护多套代码来满足业务需求时开发效率低下并且维护成本高等问题。本发明支持自定义组合过滤器和称重器,通过计算权重称重总得分的方式,使自动分配创建存储卷更加智能并更加接近用户的需要。本发明专门针对云存储领域,区别其他资源调度器。本发明可以手工配置过滤器和称重器的组合,区别一般不能手工配置的调度器。本发明是可以自由组合不同的过滤器和称重器,区别于其他调度器需要维护多个版本。本发明是一种技术框架,支持快速开发新的过滤器或称重器,区别于其他调度器开发过滤器或称重器效率低。The present invention uses a configurable scheduler method for cloud storage resources. When the allocation method does not meet user expectations, the cloud platform does not support configurable ways to combine several commonly used business scenarios, and programmers maintain multiple sets of codes to meet business needs. Low development efficiency and high maintenance costs. The present invention supports self-defining combined filters and weighing devices, and makes the automatic allocation and creation of storage volumes more intelligent and closer to the needs of users by calculating the weight and weighing the total score. The present invention is specially aimed at the field of cloud storage, and is different from other resource schedulers. The present invention can manually configure the combination of the filter and the weighing device, and distinguishes the scheduler which cannot be manually configured generally. The present invention can freely combine different filters and weighing devices, and is different from other schedulers that need to maintain multiple versions. The invention is a technical framework that supports rapid development of new filters or weighing devices, which is different from the low efficiency of developing filters or weighing devices by other schedulers.
附图说明Description of drawings
下面结合附图对本发明进一步说明:Below in conjunction with accompanying drawing, the present invention is further described:
图1为流程图;Fig. 1 is a flowchart;
图2为本发明逻辑结构图;Fig. 2 is a logical structure diagram of the present invention;
具体实施方式detailed description
本发明的实施方式有多种,这里以云平台为例说明其中一种实现方法,流程图如图1所示,具体实施过程如下:There are multiple implementations of the present invention, and one of the implementation methods is described here by taking the cloud platform as an example. The flow chart is shown in Figure 1, and the specific implementation process is as follows:
1、设置过滤器名称列表。用户手工修改配置文件,配置过滤器的名称列表。1. Set the list of filter names. The user manually modifies the configuration file and configures the name list of the filter.
2、设置称重器名称列表。用户手工修改配置文件,配置称重器的名称列表。2. Set the weighing device name list. The user manually modifies the configuration file and configures the name list of the scale.
3、加载过滤器,代码如下:3. Load the filter, the code is as follows:
/**/**
*加载过滤器.* Load filter.
*parampath配置文件所在路径*Path where the parampath configuration file is located
*returnboolean返回结果*return boolean returns the result
*/*/
publicbooleanloadFieldters(Stringpath){public booleanloadFieldters(Stringpath){
returnDispatbService.loadFieldters(path);return DispatbService.loadFieldters (path);
}}
4、加载称重器,代码如下:4. Load the scale, the code is as follows:
/**/**
*加载称重器.*Load the scale.
*parampath配置文件所在路径*Path where the parampath configuration file is located
*returnboolean返回结果*return boolean returns the result
*/*/
publicbooleanloadWeights(Stringpath){public booleanloadWeights(Stringpath){
returnDispathService.loadWeights(path);return DispathService.loadWeights (path);
}}
5、开始创建存储卷,代码如下:5. Start to create a storage volume, the code is as follows:
/**/**
*开始创建存储卷.*Start creating storage volume.
*paramname卷名称*paramname volume name
*paramsize卷大小*paramsize volume size
*returnboolean返回结果*return boolean returns the result
*/*/
publicbooleancreateVolume(Stringname,intsize){public boolean createVolume(Stringname, intsize) {
returnVolumeService.createVolume(name,size);return VolumeService.createVolume (name, size);
}}
6、获取候选节点,代码如下:6. Obtain candidate nodes, the code is as follows:
/**/**
*获取候选节点.*Get candidate nodes.
*returnList<candidateHost>返回结果对象*returnList<candidateHost> returns the result object
*/*/
publicbooleangetCandidates(){public boolean getCandidates(){
returnDispathService.getCandidates();return DispathService.getCandidates ();
}}
7、过滤候选节点,代码如下:7. Filter candidate nodes, the code is as follows:
/**/**
*过滤候选节点.* Filter candidate nodes.
*paramchs候选节点对象* paramchs candidate node object
*returnResult返回结果对象*returnResult returns the result object
*/*/
publicList<CandidateHost>getFilteredHosts(List<CandidateHost>chs){publicList< CandidateHost >getFilteredHosts(List< CandidateHost >chs){
returnDispathService.getFilteredHosts(chs);return DispathService.getFilteredHosts (chs);
}}
8、候选节点称重,代码如下:8. Candidate nodes weigh, the code is as follows:
/**/**
*候选节点称重.*Candidate nodes are weighed.
*paramchs候选节点对象* paramchs candidate node object
*returnResult返回结果对象*returnResult returns the result object
*/*/
publicList<CandidateHost>getWeightHosts(List<CandidateHost>chs){publicList< CandidateHost >getWeightHosts(List< CandidateHost >chs){
returnDispathService.getWeightHosts(chs);return DispathService.getWeightHosts (chs);
}}
9、称重排序,代码如下:9. Weighing and sorting, the code is as follows:
/**/**
*称重排序.* Weighing order.
*paramchs候选节点对象* paramchs candidate node object
*returnList<candidateHost>返回结果对象*returnList<candidateHost> returns the result object
*/*/
publicList<CandidateHost>choose_host_weighers(List<CandidateHost>chs){publicList< CandidateHost >choose_host_weighers(List< CandidateHost >chs){
returnDispathService.choose_host_weighers(chs);return DispathService.choose_host_weighers (chs);
}}
10、选择最佳节点创建存储卷,代码如下:10. Select the best node to create a storage volume, the code is as follows:
/**/**
*选择最佳节点创建存储卷.*Choose the best node to create storage volume.
*paramchs候选节点对象* paramchs candidate node object
*returnCandidateHost返回结果对象*returnCandidateHost returns the result object
*/*/
publicCandidateHostgetTop(List<CandidateHost>chs){public CandidateHost getTop(List< CandidateHost >chs){
returnchs.first();returns. first();
}}
整个流程结束。The whole process is over.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511008896.9A CN105491152A (en) | 2015-12-25 | 2015-12-25 | A method for configuring a scheduler for cloud storage resources |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511008896.9A CN105491152A (en) | 2015-12-25 | 2015-12-25 | A method for configuring a scheduler for cloud storage resources |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105491152A true CN105491152A (en) | 2016-04-13 |
Family
ID=55677862
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201511008896.9A Pending CN105491152A (en) | 2015-12-25 | 2015-12-25 | A method for configuring a scheduler for cloud storage resources |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105491152A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107203333A (en) * | 2016-09-28 | 2017-09-26 | 郑州云海信息技术有限公司 | The method that block storage is automatically accessed in OpenStack cloud computing platforms |
CN110703986A (en) * | 2019-08-29 | 2020-01-17 | 华云数据(厦门)网络有限公司 | Cloud hard disk creation method, device, equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104679595A (en) * | 2015-03-26 | 2015-06-03 | 南京大学 | Application-oriented dynamic resource allocation method for IaaS (Infrastructure As A Service) layer |
CN104717251A (en) * | 2013-12-12 | 2015-06-17 | 中国科学院深圳先进技术研究院 | Scheduling method and system for Cell nodes through OpenStack cloud computing management platform |
CN104951354A (en) * | 2015-06-08 | 2015-09-30 | 北京大学 | Virtual machine dispatch algorithm security verification method based on dynamic migration |
WO2015171500A1 (en) * | 2014-05-08 | 2015-11-12 | Cisco Technology, Inc. | Collaborative inter-service scheduling of logical resources in cloud platforms |
-
2015
- 2015-12-25 CN CN201511008896.9A patent/CN105491152A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104717251A (en) * | 2013-12-12 | 2015-06-17 | 中国科学院深圳先进技术研究院 | Scheduling method and system for Cell nodes through OpenStack cloud computing management platform |
WO2015171500A1 (en) * | 2014-05-08 | 2015-11-12 | Cisco Technology, Inc. | Collaborative inter-service scheduling of logical resources in cloud platforms |
CN104679595A (en) * | 2015-03-26 | 2015-06-03 | 南京大学 | Application-oriented dynamic resource allocation method for IaaS (Infrastructure As A Service) layer |
CN104951354A (en) * | 2015-06-08 | 2015-09-30 | 北京大学 | Virtual machine dispatch algorithm security verification method based on dynamic migration |
Non-Patent Citations (1)
Title |
---|
程龙: "基于OpenStack的动态资源调度方法的研究与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107203333A (en) * | 2016-09-28 | 2017-09-26 | 郑州云海信息技术有限公司 | The method that block storage is automatically accessed in OpenStack cloud computing platforms |
CN110703986A (en) * | 2019-08-29 | 2020-01-17 | 华云数据(厦门)网络有限公司 | Cloud hard disk creation method, device, equipment and storage medium |
CN110703986B (en) * | 2019-08-29 | 2022-08-26 | 厦门星界链科技有限公司 | Cloud hard disk creation method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105900064B (en) | Method and apparatus for scheduling data flow tasks | |
EP3525096B1 (en) | Resource load balancing control method and cluster scheduler | |
KR101932872B1 (en) | Methods, devices, and programs for management and orchestration of network functions virtualization | |
CN105453040B (en) | The method and system of data flow is handled in a distributed computing environment | |
CN109582433B (en) | Resource scheduling method and device, cloud computing system and storage medium | |
CN104484220B (en) | The method and device of the dynamic resource scheduling of virtual cluster | |
CN107045455A (en) | A kind of Docker Swarm cluster resource method for optimizing scheduling based on load estimation | |
CN104615661B (en) | Service recommendation method, device and system for cloud platform application | |
CN112379971B (en) | Application container management method, device and equipment | |
CN103582867A (en) | A high-level language for specifying the configuration of cloud-based deployments | |
CN106663012B (en) | Hardware acceleration method and related equipment | |
US20160048611A1 (en) | System, Method, Apparatus, and Computer Program Product for Generation of an Elevation Plan for a Computing System | |
KR20200062299A (en) | Transaction selection device for selecting blockchain transactions | |
CN109510852A (en) | The method and device of gray scale publication | |
CN109872049A (en) | Resource allocation optimization method and device | |
CN106250202B (en) | The device and method of virtual machine is opened in a kind of cloud platform automation | |
CN105491152A (en) | A method for configuring a scheduler for cloud storage resources | |
CN108900435A (en) | A kind of method, apparatus and computer storage medium of service deployment | |
CN106548385A (en) | A kind of order resource allocation methods and device | |
JP2011192049A (en) | Virtual machine system, automatic migration method, and automatic migration program | |
WO2025050901A1 (en) | Task processing method, task scheduling method, computing device, and computer storage medium | |
CN110780992B (en) | A cloud computing platform optimization deployment method, system, terminal and storage medium | |
CN108874534A (en) | A kind of dispatching method and device of PCPU resource | |
CN109710484A (en) | Method of adjustment, device and the computer readable storage medium of equipment energy consumption | |
US10572412B1 (en) | Interruptible computing instance prioritization |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160413 |
|
RJ01 | Rejection of invention patent application after publication |