[go: up one dir, main page]

CN109922127A - A kind of cloud computing service method, apparatus and storage medium - Google Patents

A kind of cloud computing service method, apparatus and storage medium Download PDF

Info

Publication number
CN109922127A
CN109922127A CN201910016188.1A CN201910016188A CN109922127A CN 109922127 A CN109922127 A CN 109922127A CN 201910016188 A CN201910016188 A CN 201910016188A CN 109922127 A CN109922127 A CN 109922127A
Authority
CN
China
Prior art keywords
computation requests
calculated result
terminal
cloud computing
computing service
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
CN201910016188.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.)
Bola Network Co Ltd
Original Assignee
Bola Network Co Ltd
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 Bola Network Co Ltd filed Critical Bola Network Co Ltd
Priority to CN201910016188.1A priority Critical patent/CN109922127A/en
Publication of CN109922127A publication Critical patent/CN109922127A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to a kind of cloud computing service method, apparatus and storage mediums.This method comprises the following steps: receiving the computation requests from least one terminal, wherein the computation requests include terminal iidentification corresponding with the terminal;It determines current computing capability, and the computation requests is handled according to the current computing capability, obtain calculated result;The calculated result is sent to terminal corresponding with the terminal iidentification.Technical solution of the present invention can reduce corresponding hardware cost in the case where guaranteeing data-handling efficiency.

Description

A kind of cloud computing service method, apparatus and storage medium
Technical field
The present invention relates to computer application technologies, and in particular to a kind of cloud computing service method, apparatus and storage are situated between Matter.
Background technique
With the fast development of information technology, mentioned rapidly in people's daily life by the data volume that various terminals generate It rises, higher requirements are also raised for this processing to data.A corresponding server is all equipped with if it is every data terminal, On the one hand, hardware cost is excessive, is not suitable for large-scale data processing system, on the other hand, works as special time period or specific item When generating mass data under part, normal data also will be unable to handle, and influence data-handling efficiency.
Summary of the invention
In view of the deficiencies of the prior art, the present invention provides a kind of cloud computing service method, apparatus and storage medium.
In a first aspect, this method comprises the following steps the present invention provides a kind of cloud computing service method:
Receive the computation requests from least one terminal, wherein the computation requests include corresponding with the terminal Terminal iidentification.
It determines current computing capability, and the computation requests is handled according to the current computing capability, counted Calculate result.
The calculated result is sent to terminal corresponding with the terminal iidentification.
Second aspect, the present invention provides a kind of cloud computing service device, which includes:
Module is obtained, for receiving the computation requests from least one terminal, wherein the computation requests include and institute State the corresponding terminal iidentification of terminal.
Processing module, for determining current computing capability, and according to the current computing capability to the computation requests into Row processing, obtains calculated result.
Sending module, for the calculated result to be sent to terminal corresponding with the terminal iidentification.
The third aspect, the present invention provides a kind of cloud computing service device, which includes memory and processor;It is described Memory, for storing computer program;The processor, it is as described above for when loaded and executed, realizing Cloud computing service method.
Fourth aspect is stored with computer on the storage medium the present invention provides a kind of computer readable storage medium Program realizes cloud computing service method as described above when the computer program is executed by processor.
Cloud computing service method, apparatus provided by the invention and the beneficial effect of storage medium are that cloud computing server can It to access more terminals, and does not need to be located at the same area with terminal, can be single high-performance server, it can also be with It is the distributed server of gathering network process resource.It, can be according to certainly when receiving the computation requests of one or more terminal Body computing capability handles it, for example, when current computing capability is abundant, can priority processing, current computing capability not It when sufficient, can handle in order, guarantee that data link is unlikely to congestion, all computation requests have been handled with peak efficiency, and by phase Calculated result is answered to be back to corresponding terminal.In the case where guaranteeing data-handling efficiency, corresponding hardware cost is reduced.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without any creative labor, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of cloud computing service method of the embodiment of the present invention;
Fig. 2 is a kind of structural block diagram of cloud computing service device of the embodiment of the present invention.
Specific embodiment
The principle and features of the present invention will be described below with reference to the accompanying drawings, and the given examples are served only to explain the present invention, and It is non-to be used to limit the scope of the invention.
As shown in Figure 1, a kind of cloud computing service method of the embodiment of the present invention includes the following steps:
Receive the computation requests from least one terminal, wherein the computation requests include corresponding with the terminal Terminal iidentification.
It determines current computing capability, and the computation requests is handled according to the current computing capability, counted Calculate result.
The calculated result is sent to terminal corresponding with the terminal iidentification.
In the present embodiment, cloud computing server can access more terminals, and not need to be located at same area with terminal Domain can be single high-performance server, be also possible to the distributed server of gathering network process resource.When receiving When the computation requests of one or more terminal, it can be handled according to itself computing capability, for example, in current computing capability When abundant, can priority processing can be handled in order in current computing capability deficiency, guarantee that data link is unlikely to congestion, with Peak efficiency has handled all computation requests, and corresponding calculated result is back to corresponding terminal.Guaranteeing data processing effect In the case where rate, corresponding hardware cost is reduced.
Preferably, the specific implementation of the current computing capability of the determination are as follows:
It determines processor occupancy and when the occupancy is greater than or equal to the first preset threshold, the occupancy becomes For the estimated time less than or equal to the second preset threshold, wherein it is pre- that first preset threshold is greater than or equal to described second If threshold value.
Whether single server or distributed server, are usually all in a parallel fashion handled data, can More intuitively to obtain its processor occupancy, such as CPU usage.If current occupancy is excessively high, such as beyond first Preset threshold 90% illustrates to be not suitable for increasing a large amount of new tasks at once again at this time, otherwise easily causes data congestion, causes dead Machine, it may be determined that occupancy is restored to acceptable level, the such as less than estimated time of the second preset threshold 40%, with this occupancy With the estimated time as computing capability, and then different computation requests are handled according to current computing capability.
Preferably, the terminal iidentification includes the priority tag of instruction terminal permission, the mistake for obtaining calculated result Journey includes:
When the occupancy is greater than or equal to first preset threshold, determine in current all computation requests most The corresponding computation requests of high priority tag, by the highest corresponding computation requests addition of priority tag sequence to be processed Column.
Specifically, such as when occupancy is higher than 90%, it is only capable of one computation requests of parallel processing again at this time, by preferential Grade mark determines one of highest priority in all computation requests being currently received, sequence to be processed is added into, at it When his condition meets, guarantee makes full use of processing computing capability, and the priority processing computation requests.
It should be noted that the first preset threshold can in order to guarantee that the computation requests of highest priority can be handled in time It is set according to actual conditions, to guarantee to crash in the highest computation requests of processing priority.
When the estimated time being less than or equal to first preset time, the size according to the priority tag is suitable The current all computation requests of ordered pair are ranked up, and ranked computation requests are sequentially added sequence to be processed.
Specifically, such as occupancy is higher than 90%, and restores to 40% estimated time to be lower than 10 seconds, illustrates Cloud Server Sufficient computing capability can be discharged as early as possible.Before computing capability release, according to priority sequence carries out current all computation requests Sequence can guarantee on the whole efficiently place to the process resource of multiple computation requests by order-assigned according to this in computing capability release Manage all computation requests.
It should be noted that in order to guarantee can the multiple computation requests for answering synchronization process of parallel processing, can be according to for example asking It seeks quantity or estimates the lower limit that occupancy determines the first preset time and occupancy recovery value, i.e. the second preset threshold.
Successively the computation requests in the sequence to be processed are carried out according to the sequencing that the sequence to be processed is added Processing.
Preferably, the method also includes following steps:
The calculated result is cached.
In the second preset time, received again including the meter with the matched terminal iidentification of the calculated result When calculating request, the calculated result is called.
When be more than second preset time after, do not receive also including with the matched terminal mark of the calculated result When the computation requests of knowledge, the calculated result is deleted.
Specifically, since the data from same terminal are overall similar, there may be identical computation requests.? In the case where meeting memory space requirement, by one timing of calculated result corresponding with the request of the specific calculation of particular terminal caching Between, if receiving identical computation requests again within this time, this calculated result can be called directly, is either directly transmitted To corresponding terminal, or the median calculated as other combinations, it can reduce the processing load of Cloud Server.If in this time It is interior, identical computation requests are not received by, this calculated result can be deleted, to guarantee memory space abundance.
As shown in Fig. 2, a kind of cloud computing service device of the embodiment of the present invention includes:
Module is obtained, for receiving the computation requests from least one terminal, wherein the computation requests include and institute State the corresponding terminal iidentification of terminal.
Processing module, for determining current computing capability, and according to the current computing capability to the computation requests into Row processing, obtains calculated result.
Sending module, for the calculated result to be sent to terminal corresponding with the terminal iidentification.
Preferably, the processing module is specifically used for:
It determines processor occupancy and when the occupancy is greater than or equal to the first preset threshold, the occupancy becomes For the estimated time less than or equal to the second preset threshold, wherein it is pre- that first preset threshold is greater than or equal to described second If threshold value.
Preferably, the terminal iidentification includes the priority tag of instruction terminal permission, and the processing module is specifically also used In:
When the occupancy is greater than or equal to first preset threshold, determine in current all computation requests most The corresponding computation requests of high priority tag, by the highest corresponding computation requests addition of priority tag sequence to be processed Column.
When the estimated time being less than or equal to first preset time, the size according to the priority tag is suitable The current all computation requests of ordered pair are ranked up, and ranked computation requests are sequentially added sequence to be processed.
Successively the computation requests in the sequence to be processed are carried out according to the sequencing that the sequence to be processed is added Processing.
Preferably, which further includes cache module.
The cache module, for caching the calculated result.
The processing module, is also used to when in the second preset time, receive again including with the calculated result When the computation requests for the terminal iidentification matched, the calculated result is called;After being more than second preset time, do not connect also When receiving including computation requests with the matched terminal iidentification of the calculated result, the calculated result is deleted.
In an alternative embodiment of the invention, a kind of cloud computing service device includes memory and processor.The memory, For storing computer program.The processor, for when loaded and executed, realizing cloud computing as described above Method of servicing.Wherein, which can be the devices such as server.
In an alternative embodiment of the invention, it is stored with computer program on a kind of computer readable storage medium, when described When computer program is executed by processor, cloud computing service method as described above is realized.
Reader should be understood that in the description of this specification reference term " one embodiment ", " is shown " some embodiments " The description of example ", specific examples or " some examples " etc. mean specific features described in conjunction with this embodiment or example, structure, Material or feature are included at least one embodiment or example of the invention.In the present specification, above-mentioned term is shown The statement of meaning property need not be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described It may be combined in any suitable manner in any one or more of the embodiments or examples.In addition, without conflicting with each other, this The technical staff in field can be by the spy of different embodiments or examples described in this specification and different embodiments or examples Sign is combined.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example Property, it is not considered as limiting the invention, those skilled in the art within the scope of the invention can be to above-mentioned Embodiment is changed, modifies, replacement and variant.

Claims (10)

1. a kind of cloud computing service method, which is characterized in that described method includes following steps:
Receive the computation requests from least one terminal, wherein the computation requests include terminal corresponding with the terminal Mark;
It determines current computing capability, and the computation requests is handled according to the current computing capability, obtain and calculate knot Fruit;
The calculated result is sent to terminal corresponding with the terminal iidentification.
2. cloud computing service method according to claim 1, which is characterized in that the current computing capability of determination it is specific It realizes are as follows:
It determines processor occupancy and when the occupancy is greater than or equal to the first preset threshold, the occupancy becomes small In or equal to the second preset threshold estimated time, wherein first preset threshold be greater than or equal to the described second default threshold Value.
3. cloud computing service method according to claim 2, which is characterized in that the terminal iidentification includes instruction terminal power The priority tag of limit, the process for obtaining calculated result include:
When the occupancy is greater than or equal to first preset threshold, determine highest in current all computation requests The corresponding computation requests of priority tag, by the highest corresponding computation requests addition of priority tag sequence to be processed;
When the estimated time being less than or equal to first preset time, according to the size order pair of the priority tag Current all computation requests are ranked up, and ranked computation requests are sequentially added sequence to be processed;
Successively the computation requests in the sequence to be processed are handled according to the sequencing that the sequence to be processed is added.
4. cloud computing service method according to any one of claims 1 to 3, which is characterized in that the method also includes such as Lower step:
The calculated result is cached;
In the second preset time, receives asked including the calculating with the matched terminal iidentification of the calculated result again When asking, the calculated result is called;
When be more than second preset time after, do not receive also including with the matched terminal iidentification of the calculated result When computation requests, the calculated result is deleted.
5. a kind of cloud computing service device, which is characterized in that described device includes:
Module is obtained, for receiving the computation requests from least one terminal, wherein the computation requests include and the end Hold corresponding terminal iidentification;
Processing module, for determining current computing capability, and according to the current computing capability to the computation requests at Reason obtains calculated result;
Sending module, for the calculated result to be sent to terminal corresponding with the terminal iidentification.
6. cloud computing service device according to claim 5, which is characterized in that the processing module is specifically used for:
It determines processor occupancy and when the occupancy is greater than or equal to the first preset threshold, the occupancy becomes small In or equal to the second preset threshold estimated time, wherein first preset threshold be greater than or equal to the described second default threshold Value.
7. cloud computing service device according to claim 6, which is characterized in that the terminal iidentification includes instruction terminal power The priority tag of limit, the processing module are specifically also used to:
When the occupancy is greater than or equal to first preset threshold, determine highest in current all computation requests The corresponding computation requests of priority tag, by the highest corresponding computation requests addition of priority tag sequence to be processed;
When the estimated time being less than or equal to first preset time, according to the size order pair of the priority tag Current all computation requests are ranked up, and ranked computation requests are sequentially added sequence to be processed;
Successively the computation requests in the sequence to be processed are handled according to the sequencing that the sequence to be processed is added.
8. according to the described in any item cloud computing service devices of claim 5 to 7, which is characterized in that further include cache module;
The cache module, for caching the calculated result;
The processing module is also used in the second preset time, is received again including matched with the calculated result When the computation requests of the terminal iidentification, the calculated result is called;After being more than second preset time, do not receive also When including computation requests with the matched terminal iidentification of the calculated result, the calculated result is deleted.
9. a kind of cloud computing service device, which is characterized in that including memory and processor;
The memory, for storing computer program;
The processor, for when loaded and executed, realizing such as the described in any item cloud meters of Claims 1-4 Calculate method of servicing.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer program on the storage medium, work as institute When stating computer program and being executed by processor, such as the described in any item cloud computing service methods of Claims 1-4 are realized.
CN201910016188.1A 2019-01-08 2019-01-08 A kind of cloud computing service method, apparatus and storage medium Pending CN109922127A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910016188.1A CN109922127A (en) 2019-01-08 2019-01-08 A kind of cloud computing service method, apparatus and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910016188.1A CN109922127A (en) 2019-01-08 2019-01-08 A kind of cloud computing service method, apparatus and storage medium

Publications (1)

Publication Number Publication Date
CN109922127A true CN109922127A (en) 2019-06-21

Family

ID=66960159

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910016188.1A Pending CN109922127A (en) 2019-01-08 2019-01-08 A kind of cloud computing service method, apparatus and storage medium

Country Status (1)

Country Link
CN (1) CN109922127A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101895668A (en) * 2009-11-09 2010-11-24 深圳市同洲电子股份有限公司 Set top box and family cloud computing method based on same
US20120096473A1 (en) * 2010-10-19 2012-04-19 International Business Machines Corporation Memory maximization in a high input/output virtual machine environment
CN102821162A (en) * 2012-08-24 2012-12-12 上海和辰信息技术有限公司 System for novel service platform of loose cloud nodes under cloud computing network environment
CN103780679A (en) * 2014-01-03 2014-05-07 电子科技大学 Long time delay remote invocation method based on HTTP protocol
CN105868008A (en) * 2016-03-23 2016-08-17 深圳大学 Resource scheduling method and recognition system based on key resources and data preprocessing
CN106911731A (en) * 2015-12-22 2017-06-30 阿里巴巴集团控股有限公司 The dispatching method and device of a kind of internet information resource
CN107197043A (en) * 2017-07-11 2017-09-22 王焱华 A kind of cloud computing system
CN108205561A (en) * 2016-12-19 2018-06-26 北京国双科技有限公司 data query system, method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101895668A (en) * 2009-11-09 2010-11-24 深圳市同洲电子股份有限公司 Set top box and family cloud computing method based on same
US20120096473A1 (en) * 2010-10-19 2012-04-19 International Business Machines Corporation Memory maximization in a high input/output virtual machine environment
CN102821162A (en) * 2012-08-24 2012-12-12 上海和辰信息技术有限公司 System for novel service platform of loose cloud nodes under cloud computing network environment
CN103780679A (en) * 2014-01-03 2014-05-07 电子科技大学 Long time delay remote invocation method based on HTTP protocol
CN106911731A (en) * 2015-12-22 2017-06-30 阿里巴巴集团控股有限公司 The dispatching method and device of a kind of internet information resource
CN105868008A (en) * 2016-03-23 2016-08-17 深圳大学 Resource scheduling method and recognition system based on key resources and data preprocessing
CN108205561A (en) * 2016-12-19 2018-06-26 北京国双科技有限公司 data query system, method and device
CN107197043A (en) * 2017-07-11 2017-09-22 王焱华 A kind of cloud computing system

Similar Documents

Publication Publication Date Title
Chaczko et al. Availability and load balancing in cloud computing
US9894021B2 (en) Cloud messaging services optimization through adaptive message compression
CN105281981B (en) The data traffic monitoring method and device of network service
CN102891868B (en) The load-balancing method of a kind of distributed system and device
CN103970587B (en) A kind of method, apparatus and system of scheduling of resource
CN112988390A (en) Calculation power resource allocation method and device
CN110471749B (en) Task processing method, device, computer readable storage medium and computer equipment
CN103067297A (en) Dynamic load balancing method and device based on resource consumption prediction
CN104901898A (en) Load balancing method and device
CN111427674A (en) Micro-service management method, device and system
CN109214613A (en) A kind of method, apparatus, electronic equipment and the storage medium of automatic distribution task
CN114124968A (en) Load balancing method, device, device and medium based on market data
CN115633039A (en) Communication establishing method, load balancing device, equipment and storage medium
CN105550025B (en) Distributed infrastructure services (IaaS) dispatching method and system
CN101114984A (en) Multithreading network load control method
CN104052677A (en) Soft load balancing method and apparatus of single data source
CN109039933B (en) A cluster network optimization method, device, equipment and medium
CN105302907A (en) Request processing method and device
CN106570011B (en) Distributed crawler URL seed distribution method, scheduling node and capturing node
US9128771B1 (en) System, method, and computer program product to distribute workload
CN114253710A (en) Computing request processing method, intelligent terminal, cloud server, device and medium
WO2025044815A1 (en) Distributed object storage scheduling method and system
CN109922127A (en) A kind of cloud computing service method, apparatus and storage medium
CN115665173B (en) MQ-based Websocket communication method, system and storage medium
CN115334001B (en) Data resource scheduling method and device based on priority relation

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190621