CN104636198B - A kind of nearly data source moving method of calculating task based on OSGi - Google Patents
A kind of nearly data source moving method of calculating task based on OSGi Download PDFInfo
- Publication number
- CN104636198B CN104636198B CN201510083101.4A CN201510083101A CN104636198B CN 104636198 B CN104636198 B CN 104636198B CN 201510083101 A CN201510083101 A CN 201510083101A CN 104636198 B CN104636198 B CN 104636198B
- Authority
- CN
- China
- Prior art keywords
- calculating task
- data source
- osgi
- task
- calculating
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 19
- 238000001514 detection method Methods 0.000 claims abstract description 8
- 238000004364 calculation method Methods 0.000 claims description 10
- 230000008569 process Effects 0.000 claims description 4
- 230000005012 migration Effects 0.000 claims description 2
- 238000013508 migration Methods 0.000 claims description 2
- 238000007726 management method Methods 0.000 abstract description 3
- 238000005516 engineering process Methods 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 230000005611 electricity Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000005856 abnormality Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 239000000686 essence Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000010076 replication Effects 0.000 description 1
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention proposes a kind of nearly data source moving method of calculating task based on OSGi, based on calculating task decision-making module, calculating task detection module and calculating task transferring module, calculating task is carried out OSGi modularizations, with OSGi it is flexible, hot-swappable the advantages that, on the premise of OSGi context managements are made full use of, the optimal nearly data source of most suitable calculating task is found, calculating task, which is moved to nearly data source, to be calculated, and achievees the purpose that high efficiency low power consumption.
Description
Technical field
The present invention relates to internet arenas, and in particular to a kind of nearly data source migration side of the calculating task based on OSGi
Method.
Background technology
The task immigration of nearly data source can allow calculating task to be performed at nearly data source, and eliminate end to end
Data transmission link greatly increases the efficiency of calculating task completion, saves the former computing resource consumption for calculating main body.Most
Technology close to the present invention has:
(1)、CloneCloud:It can calculate node from mobile device replication calculating task and data to strong, and return
Result of calculation;
(2)、CloudLet:Using the nigh CloudLet example above Service Instance of virtual machine technique, reduce empty
Between network latency and bandwidth limitation.
Wherein, CloneCloud needs to change JVM, therefore unrealistic in practical applications;CloudLet lacks to meter
The distribution and management of calculation task and data between different node.And CloneCloud and CloudLet are not based on OSGi technologies
What specification was realized, this allows for them and does not possess the high modularization of OSGi, the advantages such as flexible, hot-swappable.Meanwhile based near
The calculating of data source, existing technology are not all accounted for and designed in this respect.
The content of the invention
To solve shortcoming and defect of the prior art, the present invention proposes a kind of nearly data of the calculating task based on OSGi
Calculating task is carried out OSGi modularizations, on the premise of OSGi context managements are made full use of, found most suitable by source moving method
The optimal nearly data source of calculating task is closed, calculating task, which is moved to optimal nearly data source, to be calculated.
The technical scheme is that:
The nearly data source moving method of a kind of calculating task based on OSGi, based on calculating task decision-making module, calculating task
Detection module and calculating task transferring module, comprise the following steps:
Step (1) obtains calculating task information according to the context of OSGi, and calculating task detection module checks whether in real time
There is transportable calculating task;
Step (2), when detecting transportable task, by calculating task decision-making module carry out decision-making whether moved
It moves;
Step (3) if, without task immigration, obtain the required data of calculating task, then locally execute meter
Calculation task returns to result of calculation;If it is determined that shift the calculating task, then based on context assignment decisions module selects most preferably
Nearly data source;
Calculating task is migrated mesh by step (4), assignment decisions module calling task transferring module in the form of OSGi components
At the optimal nearly data source of mark, calculating task is calculated in the nearly data source of target;
Step (5) returns to result of calculation.
Optionally, the nearly data source moving method of the calculating task of the invention based on OSGi, further includes exception processing module,
The exception captured in exception processing module processing whole process.
Beneficial effects of the present invention:
(1) calculated by the way that calculating task is moved to nearly data source, avoid the transmission of source data, effectively improve
Computational efficiency;
(2) high modularization with OSGi, it is flexible, hot-swappable the advantages that;
(3) the former computing resource consumption for calculating main body, such as electricity, bandwidth, memory are saved.
Description of the drawings
It in order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the system construction drawing of the nearly data source moving method of calculating task the present invention is based on OSGi;
Fig. 2 is the flow chart of the nearly data source moving method of calculating task the present invention is based on OSGi.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work
Embodiment belongs to the scope of protection of the invention.
As shown in Figure 1, the system structure of the nearly data source moving method of the calculating task based on OSGi of the present invention includes four
A module:Calculating task detection module, calculating task decision-making module, calculating task transferring module and exception processing module.
With reference to Fig. 1 and Fig. 2, the idiographic flow of the nearly data source moving method of calculating task based on OSGi is carried out detailed
It describes in detail bright:
Step (1) obtains calculating task information according to the context of OSGi, and calculating task detection module checks whether in real time
There is transportable calculating task.
Step (2), when detecting transportable task, by calculating task decision-making module carry out decision-making whether moved
It moves.
Step (3) if, without task immigration, obtain the required data of calculating task, then locally execute meter
Calculation task returns to result of calculation;If it is determined that shift the calculating task, then calculating task decision-making module estimation tasks perform money
Source consumes, and based on context selects most preferably nearly data source, wherein, optimal nearly data source refers to be used for performing calculating times
Business reaches the data source of the neighbouring calculating main body of resource consumption minimum with this.
Calculating task is migrated mesh by step (4), assignment decisions module calling task transferring module in the form of OSGi components
At the optimal nearly data source of mark, calculating task is calculated in the nearly data source of target.
Step (5) returns to result of calculation, carries out relevant treatment.
Preferably, in whole process, exception processing module can handle the exception captured in whole process, including task
Detection is abnormal, calculating task component obtains exception, calculating task component transmission abnormality, calculating task component remotely perform exception.
The nearly data source moving method of the calculating task based on OSGi of the present invention, by the way that calculating task is moved to nearly data
Source is calculated, and is avoided the transmission of source data, is effectively improved computational efficiency;Moreover, the height mould with OSGi
Block, it is flexible, hot-swappable the advantages that;Save the former computing resource consumption for calculating main body, such as electricity, bandwidth, memory.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
With within principle, any modifications, equivalent replacements and improvements are made should all be included in the protection scope of the present invention god.
Claims (2)
1. a kind of nearly data source moving method of calculating task based on OSGi, which is characterized in that based on calculating task decision-making module,
Calculating task detection module and calculating task transferring module, comprise the following steps:
Step (1) obtains calculating task information according to the context of OSGi, and calculating task detection module checks whether there is in real time can
The calculating task of migration;
Step (2), when detecting transportable task, by calculating task decision-making module carry out decision-making whether migrated;
Step (3) if, without task immigration, obtain the required data of calculating task, then locally execute calculating and appoint
Business returns to result of calculation;If it is determined that shift the calculating task, then calculating task decision-making module estimation tasks perform resource and disappear
Based on context consumption, assignment decisions module select optimal nearly data source, wherein, optimal nearly data source is referred to for performing calculating
Task reaches the data source of the neighbouring calculating main body of resource consumption minimum with this;
Calculating task is migrated target most by step (4), assignment decisions module calling task transferring module in the form of OSGi components
At good nearly data source, calculating task is calculated in the nearly data source of target;
Step (5) returns to result of calculation.
2. the nearly data source moving method of calculating task as described in claim 1 based on OSGi, which is characterized in that further include different
Normal processing module, exception processing module handle the exception captured in whole process.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510083101.4A CN104636198B (en) | 2015-02-11 | 2015-02-11 | A kind of nearly data source moving method of calculating task based on OSGi |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510083101.4A CN104636198B (en) | 2015-02-11 | 2015-02-11 | A kind of nearly data source moving method of calculating task based on OSGi |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104636198A CN104636198A (en) | 2015-05-20 |
CN104636198B true CN104636198B (en) | 2018-05-29 |
Family
ID=53214989
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510083101.4A Expired - Fee Related CN104636198B (en) | 2015-02-11 | 2015-02-11 | A kind of nearly data source moving method of calculating task based on OSGi |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104636198B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105530313A (en) * | 2015-12-21 | 2016-04-27 | 中国石油大学(华东) | Context sensing service migrating method based on OSGi pervasive cloud environment |
CN108388470B (en) * | 2018-01-26 | 2022-09-16 | 福建星瑞格软件有限公司 | Big data task processing method and computer equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1624670A (en) * | 2003-12-03 | 2005-06-08 | 华为技术有限公司 | Method of local data migration |
CN101907989A (en) * | 2010-06-01 | 2010-12-08 | 南京大学 | Mobile agent-based application seamless migration method |
CN103366238A (en) * | 2012-03-30 | 2013-10-23 | 北京千橡网景科技发展有限公司 | Method and device for automatic allocation of calculation task |
CN103631657A (en) * | 2013-11-19 | 2014-03-12 | 浪潮电子信息产业股份有限公司 | Task scheduling algorithm based on MapReduce |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10318284B2 (en) * | 2008-06-02 | 2019-06-11 | International Business Machines Corporation | System and method of generating and managing computing tasks |
-
2015
- 2015-02-11 CN CN201510083101.4A patent/CN104636198B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1624670A (en) * | 2003-12-03 | 2005-06-08 | 华为技术有限公司 | Method of local data migration |
CN101907989A (en) * | 2010-06-01 | 2010-12-08 | 南京大学 | Mobile agent-based application seamless migration method |
CN103366238A (en) * | 2012-03-30 | 2013-10-23 | 北京千橡网景科技发展有限公司 | Method and device for automatic allocation of calculation task |
CN103631657A (en) * | 2013-11-19 | 2014-03-12 | 浪潮电子信息产业股份有限公司 | Task scheduling algorithm based on MapReduce |
Also Published As
Publication number | Publication date |
---|---|
CN104636198A (en) | 2015-05-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107766889B (en) | Cloud edge computing fused deep learning computing system and method | |
CN103279353B (en) | A kind of optimizing application strategy determines method, Apparatus and system | |
Hossain et al. | A belief rule based expert system for datacenter PUE prediction under uncertainty | |
CN103745225A (en) | Method and system for training distributed CTR (Click To Rate) prediction model | |
Li et al. | Proactive caching for edge computing-enabled industrial mobile wireless networks | |
CN104636198B (en) | A kind of nearly data source moving method of calculating task based on OSGi | |
CN113487083A (en) | Method and device for predicting residual service life of equipment, computer equipment and computer-readable storage medium | |
DE112021002386T5 (en) | DATA CENTER COOLANT QUALITY ANALYSIS AND DAMAGE CONTROL | |
CN106059940A (en) | Flow control method and device | |
DE102022120616A1 (en) | Self-healing and data centers | |
CN104219226A (en) | Method for determining number of optimal communication agent nodes in cloud platform | |
CN105607606B (en) | A kind of data acquisition device and method based on double mainboard frameworks | |
CN104184601A (en) | Obtaining method and device for user online time | |
Wienke et al. | Accelerators for technical computing: Is it worth the pain? a tco perspective | |
CN109388589A (en) | A kind of method, equipment and storage medium adjusting cache partitions ratio | |
CN112288128A (en) | Information prediction method and device | |
CN104468379B (en) | Virtual Hadoop clustered nodes system of selection and device based on most short logical reach | |
CN106598716A (en) | Task scheduling method based on multiple processors | |
CN113486583B (en) | Method and device for evaluating health of equipment, computer equipment and computer readable storage medium | |
CN110007940A (en) | Verification method, system, server and the readable storage medium storing program for executing of gray scale publication | |
CN104331326A (en) | Scheduling method and system for cloud computing | |
Tuli et al. | Optimizing the Performance of Fog Computing Environments Using AI and Co-Simulation | |
Babu et al. | A Context Sensitive with Effective Task Migration in Mobile Cloud Computing Services | |
Wang et al. | C3Meta: A Context-Aware Cloud-Edge-End Collaboration Framework Toward Green Metaverse | |
CN105224381A (en) | A kind of method, Apparatus and system moving virtual machine |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180529 |