CN110737517A - electric power system cloud platform computing analysis micro-service resource scheduling method - Google Patents

electric power system cloud platform computing analysis micro-service resource scheduling method Download PDF

Info

Publication number
CN110737517A
CN110737517A CN201910748940.1A CN201910748940A CN110737517A CN 110737517 A CN110737517 A CN 110737517A CN 201910748940 A CN201910748940 A CN 201910748940A CN 110737517 A CN110737517 A CN 110737517A
Authority
CN
China
Prior art keywords
resource
micro
service
access
resources
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
Application number
CN201910748940.1A
Other languages
Chinese (zh)
Inventor
曹伟
何伊妮
韦昌福
唐羿轩
孙超
夏晨
陈州
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangxi Power Grid Co Ltd
Original Assignee
Guangxi Power Grid Power Dispatching Control Center
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 Guangxi Power Grid Power Dispatching Control Center filed Critical Guangxi Power Grid Power Dispatching Control Center
Priority to CN201910748940.1A priority Critical patent/CN110737517A/en
Publication of CN110737517A publication Critical patent/CN110737517A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5072Grid computing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06315Needs-based resource requirements planning or analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06316Sequencing of tasks or work
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/48Indexing scheme relating to G06F9/48
    • G06F2209/484Precedence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5021Priority

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Economics (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Marketing (AREA)
  • General Engineering & Computer Science (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Game Theory and Decision Science (AREA)
  • Health & Medical Sciences (AREA)
  • Educational Administration (AREA)
  • Development Economics (AREA)
  • Mathematical Physics (AREA)
  • Primary Health Care (AREA)
  • General Health & Medical Sciences (AREA)
  • Water Supply & Treatment (AREA)
  • Public Health (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a scheduling method for computing and analyzing micro-service resources by a cloud platform of an electric power system, wherein access requests of micro-services to resources comprise type identifications of the required resources and queues corresponding to the required resources, the priority ranking is firstly carried out on each micro-service access resource request according to importance or current requirements of users, the priority, access providing time and the weight of the priority and the access providing time determine the priority response sequence of the access requests, meanwhile, various resources required by the micro-services are ranked according to unlocking time, the access requests are sent to the queues corresponding to the resource identifications in the access requests, the micro-services sending the access requests preferentially access the resources arranged at the front in the queues and lock the resources, and the resources are unlocked when the access is finished.

Description

electric power system cloud platform computing analysis micro-service resource scheduling method
Technical Field
The invention relates to power system analysis cloud platform computing, in particular to a scheduling method for computing analysis micro-service resources of power system cloud platforms.
Background
The analysis and calculation service of the power system is an important tool for determining an economic, reasonable and technically feasible planning and design scheme by a power system planning designer; the method is an effective means for operation scheduling personnel to determine the system operation mode, analyze system accidents and seek anti-accident measures; the core content of the modern power dispatching automation system based on computer technology.
In the traditional development mode, developers can pack all functions, almost no external dependence exists, code maintenance becomes more difficult and expansibility is not high along with continuous expansion of system functions, and the micro-service aims to effectively split the developed functional service, combine a plurality of independent services into complete systems, develop independently and maintain independently, and realize agile development.
In the prior art, when a micro service accesses a resource, the resource is locked, and at this time, other micro services cannot access the resource.
However, after the micro-service finishes accessing the resource and unlocks the resource, if which micro-service happens to access the resource at the moment, it can lock the resource, and the micro-service which is rejected before still cannot access the resource.
The prior art has the defects that after the micro-service accessed before unlocks the resource, the micro-service accessed later accesses the resource according to a random sequence, namely, the micro-service which accesses the resource first by the th after the resource is unlocked instead of the sequence of the resource requirement, so that the micro-service which accesses the resource first needs to be accessed for a long time, and the micro-service has strong randomness in accessing and low predictability in accessing the resource.
Disclosure of Invention
The invention aims to provide methods for scheduling micro-service resources for computing and analyzing a power system cloud platform, so as to solve the technical problem of low predictability of micro-service access resources.
The technical scheme is as follows: the invention discloses a micro-service resource scheduling method for computing analysis of a cloud platform of an electric power system, which comprises the following steps:
(1) a micro-service access resource request;
(2) calculating an importance score according to the micro-service priority and the request time;
(3) the micro service access request with the highest importance score is transmitted to a resource queue;
(4) the resource at the top of the resource queue needed by the microservice is accessed and locked;
(5) and after the access is finished, unlocking the resources, and adding the resources into the resource queue again according to the unlocking time.
In step (1), the micro-service is the sender of the access request, and micro-services correspond to access requests.
The access request of the micro service to the resource comprises a resource identifier corresponding to the resource and a queue corresponding to the resource.
In the step (2), the micro-service access resource requests are classified according to the importance or the current requirements of users, and when a plurality of micro-services access the same resource at the same time, the priority response order of the access requests is considered according to the priority of the micro-service access resource requests, the access provision time and the weights of the priority and the access provision time.
The calculation score Ck of the importance of the micro service access request is a × Q1+ B × Q2, where a is a calculation score corresponding to the priority, B is a corresponding calculation score obtained by sorting according to the request time, Q1 is the weight of the priority, and Q2 is the weight of the request time.
The resource identification determines the type of the resource which is required to be accessed by the access request of the microservice, and the queue corresponding to the resource is positioned according to the type of the resource; and after the queue corresponding to the resource receives the access request of the micro service, the most front resource in the current queue is accessed.
When the micro service accesses a plurality of resources, the access request comprises a plurality of resource identifiers, the micro service sends the access request to a plurality of resource queues, and the resource at the front of each queue is accessed by the micro service.
When the micro service accesses the resource, the resource is locked, the queue is withdrawn, and other micro service access requests cannot be responded; and the micro service unlocks the resources after the access is finished, and adds the resources into the resource queue again according to the unlocking time of the resources.
The resources accessed by the microservices include hardware resources, software resources, electronic data resources or peripheral resources.
Has the advantages that: according to the method for dispatching the micro-service resources through computing and analyzing by the cloud platform of the power system, the micro-service access resources are executed in sequence, the randomness of the micro-service access and the unreasonable utilization of the resources caused by the randomness are reduced, and the predictability of the micro-service access resources is enhanced.
Drawings
Fig. 1 is a flowchart of a computing analysis micro-service resource scheduling method for a cloud platform of an electric power system according to the present invention.
Detailed Description
As shown in fig. 1, the method for scheduling micro-service resources of the present invention includes the following steps:
(1) micro service resource request;
(2) calculating an importance score according to the micro-service priority and the request time;
(3) the micro service access request with the highest importance score is transmitted to a resource queue;
(4) the resource at the top of the resource queue needed by the microservice is accessed and locked;
(5) and after the access is finished, unlocking the resources, and adding the resources into the resource queue again according to the unlocking time.
The specific process is as follows:
firstly, the implementation environment of the invention can be a smart phone, a tablet computer, a portable mobile device of a notebook computer, or a computer device, a field terminal, a desktop computer, a server, a fixed device of a workstation. Resources include hardware resources, software resources, electronic data resources, or peripheral resources that may be accessed by the micro-service in need.
Because the micro-services are the senders of the access requests, micro-services correspond to access requests, the resource requests of micro-services analyzed by the cloud platform of the power system are classified according to the importance of the resource requests or the current requirements of users, when a plurality of micro-services access the same resources at the same time, the priority response sequence of the access requests is comprehensively considered according to the priority of the resource requests accessed by the micro-services, the access proposing time and the weight of the access proposing time, the calculation score corresponding to the priority is assumed to be A, the corresponding calculation score can be obtained according to the ranking of the current request sequence after the request sequence is ordered according to the request time to be B, and the weight of the priority is Q1The weight of the request time is Q2The kth microservice access request importance calculation score Ck=A*Q1+B*Q2The micro-service with high comprehensive score can ask the resource request to access the required resource preferentially, and the most core micro-service or the micro-service which needs to access the resource most urgently is guaranteed to access the resource according to a more reasonable sequence.
The method comprises the steps of sequencing various resources required by the micro-service according to unlocking time, sequencing the resources earlier in the queue, and sequencing the resources earlier in the queue, so that queues are formed by the resources, the resource at the front of the queue is always accessed first, and the problems of disordered micro-service access sequence and no predictability are solved by a method of combining micro-service importance sequencing and the queues.
When the micro service executes the task, if the content of the resource needs to be called, the micro service automatically triggers the access request of the micro service to the resource, and the request is responded firstly according to the micro service with higher importance after the priority, the access providing time and the weight of the priority and the access providing time are integrated. The resource is packaged with an interface for processing micro-service instructions, when the micro-service is about to access the resource, the interface is sent out an access instruction, and the interface converts the instruction into an access request. If the resource is updating, the resource stops updating, and when the access is finished, the resource is allowed to update. The access request of the micro service to the resource comprises a resource identification corresponding to the required resource and a queue corresponding to the required resource. The resource identifier is used for determining the type of the resource which is required to be accessed by the access request of the microservice, and the queue corresponding to the resource can be positioned according to the type of the resource. And after the queue corresponding to the resource receives the access request of the micro service, the most front resource in the current queue is accessed. For the micro service needing to access various resources, the access request of the micro service needs to contain a plurality of resource identifiers of the needed resources, the access request is sent to a plurality of resource queues, and the resource at the front of each queue is accessed by the micro service.

Claims (9)

1, electric power system cloud platform computing analysis micro-service resource scheduling method, characterized by comprising the following steps:
(1) a micro-service resource access request;
(2) calculating an importance score according to the micro-service priority and the request time;
(3) the micro service access request with the highest importance score is transmitted to a resource queue;
(4) the resource at the top of the resource queue needed by the microservice is accessed and locked;
(5) and after the access is finished, unlocking the resources, and adding the resources into the resource queue again according to the unlocking time.
2. The power system cloud platform computing analysis micro-service resource scheduling method of claim 1, wherein in step (1), the micro-service is a sender of access requests, and micro-services correspond to access requests.
3. The power system cloud platform computing analysis micro-service resource scheduling method according to claim 1, characterized in that: the access request of the micro service to the resource comprises a resource identifier corresponding to the resource and a queue corresponding to the resource.
4. The power system cloud platform computing analysis micro-service resource scheduling method according to claim 1, characterized in that: in the step (2), the micro-service access resource requests are classified according to the importance or the current requirements of users, and when a plurality of micro-services access the same resource at the same time, the priority response order of the access requests is considered according to the priority of the micro-service access resource requests, the access provision time and the weights of the priority and the access provision time.
5. The power system cloud platform computing analysis micro-service resource scheduling method according to claim 1, characterized in that: the micro-service access request importance calculation score Ck=A*Q1+B*Q2Wherein A is the calculation score corresponding to the priority, B is the corresponding calculation score obtained after the ordering according to the request time, and Q1As a weight of priority, Q2Is the weight of the request time.
6. The power system cloud platform computing analysis micro-service resource scheduling method according to claim 3, wherein: the resource identification determines the type of the resource which is required to be accessed by the access request of the microservice, and the resource identification is positioned to the queue corresponding to the resource according to the type of the resource; and after the queue corresponding to the resource receives the access request of the micro service, the most front resource in the current queue is accessed.
7. The power system cloud platform computing analysis micro-service resource scheduling method according to claim 3, wherein: when the micro service accesses a plurality of resources, the access request comprises a plurality of resource identifiers, the micro service sends the access request to a plurality of resource queues, and the resource at the front of each queue is accessed by the micro service.
8. The power system cloud platform computing analysis micro-service resource scheduling method according to claim 1, characterized in that: when the micro service accesses the resource, the resource is locked, the queue is withdrawn, and other micro service access requests cannot be responded; and the micro service unlocks the resources after the access is finished, and adds the resources into the resource queue again according to the unlocking time of the resources.
9. The power system cloud platform computing analysis micro-service resource scheduling method of any of , wherein the resources accessed by the micro-service comprise hardware resources, software resources, electronic data resources or peripheral resources.
CN201910748940.1A 2019-08-14 2019-08-14 electric power system cloud platform computing analysis micro-service resource scheduling method Pending CN110737517A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910748940.1A CN110737517A (en) 2019-08-14 2019-08-14 electric power system cloud platform computing analysis micro-service resource scheduling method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910748940.1A CN110737517A (en) 2019-08-14 2019-08-14 electric power system cloud platform computing analysis micro-service resource scheduling method

Publications (1)

Publication Number Publication Date
CN110737517A true CN110737517A (en) 2020-01-31

Family

ID=69267667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910748940.1A Pending CN110737517A (en) 2019-08-14 2019-08-14 electric power system cloud platform computing analysis micro-service resource scheduling method

Country Status (1)

Country Link
CN (1) CN110737517A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111741079A (en) * 2020-06-01 2020-10-02 广西电网有限责任公司电力科学研究院 Micro-service architecture based interface processing method and system
CN114915663A (en) * 2022-03-21 2022-08-16 北京沃东天骏信息技术有限公司 Request response method, device, system, electronic equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107239329A (en) * 2016-03-29 2017-10-10 西门子公司 Unified resource dispatching method and system under cloud environment
US20180181390A1 (en) * 2016-12-22 2018-06-28 Juniper Networks, Inc. Automatic scaling of microservices applications
CN109150957A (en) * 2018-06-29 2019-01-04 中译语通科技股份有限公司 A kind of micro services concurrent control system
CN109491801A (en) * 2018-09-27 2019-03-19 平安科技(深圳)有限公司 Micro services access scheduling method, apparatus, medium and electronic equipment
US20190121889A1 (en) * 2017-10-19 2019-04-25 Pure Storage, Inc. Ensuring reproducibility in an artificial intelligence infrastructure

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107239329A (en) * 2016-03-29 2017-10-10 西门子公司 Unified resource dispatching method and system under cloud environment
US20180181390A1 (en) * 2016-12-22 2018-06-28 Juniper Networks, Inc. Automatic scaling of microservices applications
US20190121889A1 (en) * 2017-10-19 2019-04-25 Pure Storage, Inc. Ensuring reproducibility in an artificial intelligence infrastructure
CN109150957A (en) * 2018-06-29 2019-01-04 中译语通科技股份有限公司 A kind of micro services concurrent control system
CN109491801A (en) * 2018-09-27 2019-03-19 平安科技(深圳)有限公司 Micro services access scheduling method, apparatus, medium and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111741079A (en) * 2020-06-01 2020-10-02 广西电网有限责任公司电力科学研究院 Micro-service architecture based interface processing method and system
CN114915663A (en) * 2022-03-21 2022-08-16 北京沃东天骏信息技术有限公司 Request response method, device, system, electronic equipment and medium

Similar Documents

Publication Publication Date Title
Wang et al. Maptask scheduling in mapreduce with data locality: Throughput and heavy-traffic optimality
CN110825535B (en) Job scheduling method and system
CN110096353A (en) Method for scheduling task and device
CN108572970B (en) Structured data processing method and distributed processing system
RU2632125C1 (en) Method and system for tasks processing in cloud service
CN110363663B (en) Block chain-based data batch processing method, device, equipment and storage medium
CN110737517A (en) electric power system cloud platform computing analysis micro-service resource scheduling method
CN109684172A (en) Log method for pushing, system, equipment and storage medium based on access frequency
CN103685564A (en) Plug-in application ability layer introduced industry application online operation cloud platform architecture
CN108305134B (en) Safety detection method, equipment and system for air ticket order
CN111860853A (en) Online prediction system, online prediction equipment, online prediction method and electronic equipment
CN105955838A (en) System halt reason check method and device
CN115604144A (en) Test method and device, electronic equipment and storage medium
CN110912967A (en) Service node scheduling method, device, equipment and storage medium
US8667008B2 (en) Search request control apparatus and search request control method
Liu et al. KubFBS: A fine‐grained and balance‐aware scheduling system for deep learning tasks based on kubernetes
CN111209333B (en) Data updating method, device, terminal and storage medium
CN116820714A (en) Scheduling method, device, equipment and storage medium of computing equipment
CN112256760A (en) Data prediction method and device, computer equipment and storage medium
CN116431498A (en) Performance test method and device, electronic equipment and computer readable storage medium
US20130145004A1 (en) Provisioning using presence detection
CN115309558A (en) Resource scheduling management system, method, computer equipment and storage medium
CN107682573B (en) High-concurrency outbound method, system, equipment and storage medium
CN105162837A (en) Method and system for improving I/O throughput rate in massive data storage environment
CN110119300A (en) The load-balancing method and device of dummy unit cluster

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200213

Address after: 530000 No. 6, democracy Road, the Guangxi Zhuang Autonomous Region, Nanning

Applicant after: GUANGXI POWER GRID Co.,Ltd.

Address before: 530000 No. 6, democracy Road, the Guangxi Zhuang Autonomous Region, Nanning

Applicant before: Guangxi power grid power dispatching control center

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20200131

RJ01 Rejection of invention patent application after publication