CN103780669A - Incremental deployment method on PaaS platform - Google Patents

Incremental deployment method on PaaS platform Download PDF

Info

Publication number
CN103780669A
CN103780669A CN201310445364.6A CN201310445364A CN103780669A CN 103780669 A CN103780669 A CN 103780669A CN 201310445364 A CN201310445364 A CN 201310445364A CN 103780669 A CN103780669 A CN 103780669A
Authority
CN
China
Prior art keywords
file
list
services
fingerprint
difference
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
CN201310445364.6A
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.)
Peking University
Original Assignee
Peking University
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 Peking University filed Critical Peking University
Priority to CN201310445364.6A priority Critical patent/CN103780669A/en
Publication of CN103780669A publication Critical patent/CN103780669A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses an incremental deployment method on a PaaS platform. The method comprises the following steps that 1) a user chooses an incremental uploading mode; 2) the user chooses new services to be uploaded, a fingerprint list of files in the chosen services is acquired, and the acquired finger print list is returned to a server; 3) the user chooses old services to be covered; 4) the server scans a folder of the old services to be covered, and a fingerprint list of the old services to be covered is acquired; 5) the server compares the two fingerprint lists to acquire a difference list of file fingerprints; 6) the server returns the difference list of the fingerprints to a browser; 7) the user authorizes uploading of files in the difference list; 8) the files in the difference list are uploaded; 9) the server reassembles a war pack; and 10) the pack is incorporated into the deploying process of general services. Incremental deployment of services can be realized on the PaaS platform by adopting the method disclosed by the invention, and repeat uploading of unmodified files is avoided, thereby not only reducing the uploading bandwidth of service packs, and improving the deployment efficiency.

Description

Increment type dispositions method on a kind of PaaS platform
Technical field:
The present invention relates to a kind of dispositions method of the increment type towards PaaS platform, be applicable to the deployment of carrying out services package of automation on PaaS platform.Belong to software technology field.
Background technology:
PaaS platform, as a kind of critical services pattern of cloud computing, facilitates deployment and the use of software service.PaaS platform provides an environment that integrates deployment, storage, monitoring and control.PaaS provides the automatic deployment ability of service.When we in PaaS platform deploy after a service, in this locality, the indivedual files in this service are carried out to a small amount of modification again, wish now the service in update server, make it identical with local service, so just need to guarantee by file transfer the consistency of the file of local service and the service document of server end.If we upload the All Files of this service again, will expend a large amount of time and resource.In fact,, owing to only having indivedual files to be modified, the transmission that the file that other are not modified carries out is unnecessary.If the file that only transmission was revised, just can save lower a large amount of time and resource for us.
Summary of the invention:
The object of the invention is provides the increment type dispositions method on a kind of PaaS platform for the problems referred to above.The method can avoid the file not changing to be repeated to upload.Under incremental deploying pattern, which file is system first can judge there is variation, obtains the difference list of file, thereby only uploads the file in difference list.
Technical scheme of the present invention is as follows:
An increment type dispositions method for PaaS platform, realizes to being deployed in services package on PaaS platform that increment is uploaded and automatic deployment, comprises the steps:
1) user selects increment to upload mode;
2) user selects the new service that will upload, obtains the fingerprint list of file in selected service, and returns to server end;
3) user selects the old service that will cover;
4) server end scanning will override the file of old service, the fingerprint list of the old service that must be capped;
5) relatively two fingerprint lists of server end, obtain the difference list of file fingerprint;
6) server end, by the difference list of fingerprint, returns to browser;
7) the uploading of file in the list of subscriber authorisation difference;
8) upload the file in difference list;
9) server end re-assemblies war bag;
10) be incorporated to the deployment flow process of general service.
Increment type dispositions method on above-mentioned PaaS platform, described step 2) in, while obtaining the fingerprint list of file in selected service, adopt the summary of file content, namely MD5 value is as the file fingerprint of file.Hash value is the representative of file content, if variation has occurred the content of file, namely file was modified, and the hash value of file will change so.
Technique effect of the present invention is: obtain respectively the file fingerprint list of the new service that will upload, and the file fingerprint list of the old service that will be capped, and their fingerprint list is contrasted.Just can obtain through contrast the file that file fingerprint changes, they are placed in a difference list, to difference, list is processed afterwards.Adopt the method can only upload the file in difference list, greatly reduced the size of the services package that need to upload, thereby improved the efficiency of deployment services.
Accompanying drawing explanation
Fig. 1 represents to realize in the present invention the flow process that on PaaS platform, increment type is disposed.
Fig. 2 represents to improve in the present invention the overall architecture of rear deployment system
Fig. 3 is deployment system operation demonstration graph
Fig. 4 is that demonstration graph is uploaded in deployment system service
Fig. 5 is incremental deploying demonstration on interface figure
Fig. 6 is difference list sectional view
Embodiment:
Fig. 2 has shown the overall architecture of improving rear deployment system, and module wherein comprises that the module such as services package uploader, services package manager module all needs modify and adjust.The module that need to adjust is mainly as follows: (1) services package uploader
Services package uploader makes an adjustment on basis before, and present uploader can obtain the file fingerprint list of selected file folder, and can communicate the difference list that jointly obtains file with services package manager.For the file of listing in difference list, services package uploader can be uploaded them respectively.
(2) services package manager
Services package manager has increased function newly on basis before, should be able to carry out now in services package warehouse, and the acquisition of file fingerprint list in each services package, it also should be able to communicate with services package uploader simultaneously, the collaborative acquisition of carrying out difference list.For under the mechanism of incremental deploying, services package uploader is uploaded the differential file coming, and services package manager can utilize them to remove to cover the ancient deed in services package warehouse, thereby obtains one and the identical new services package of client service bag.
Fig. 1 has shown the flow process that on PaaS platform, increment type is disposed, and key technology is wherein as follows:
Obtaining of 1 fingerprint:
For the realization that obtains client hash value module, what this part will realize is the scanning of file and the calculating of file MD5 value.After user selects to enter incremental deploying flow process, we need to provide such interface, allow user select a file, this file of automatic scan after choosing, and obtain the wherein hash value list of file.Adopt the cross-platform assembly XPCOM of Mozilla company as the exploitation plug-in unit of browser end, arrange in problem in the safety of browser, only need client carry out little setting just smoothly the select File of running browser end press from both sides and scanning imaging system.Server end also needs to calculate the hash value of the file of having uploaded, because carry out in this locality, does not relate to safety problem, uses java statement and the MD5 class libraries that provides can be realized.
2 obtain the realization of difference table module
The algorithm that obtains difference list is as follows:
(1) whether scanning client Hash list, for each file of record wherein, have of the same name and with the file in path in searching service device end Hash list;
(2), if found the file in same path of the same name, relatively whether their hash value is identical, if the identical no longer scanning of hash value, and this file is not processed; If hash value difference, adds the path of this file to upload in list;
(3) if scanned, do not find yet the file in same path of the same name, the path of this file is added and uploaded in list;
(4) whether scanning server end Hash list, for each file of record wherein, exist of the same name and with the file in path in searching client Hash list;
(5), if found the file in same path of the same name, relatively whether their hash value is identical, if the identical no longer scanning of hash value, and this file is not processed; If hash value difference, adds the path of this file in delete list;
(6) if scanned, do not find yet the file in same path of the same name, the path of this file is added in delete list.
The file that need to delete at server end can directly carry out deletion action in this locality.For the file that need to upload from client, we are documented in the character string of a Json form returns to client.
3 difference lists present with file on transmission module realize method:
Server end obtains module through operation difference and has obtained difference list, and this difference list has been placed in the character string of a Json form and has returned to client.After client has arrived Json, need to, by it in visual mode, in the panel of browser, present to user.User, after having seen the file in difference table, just can carry out having uploaded of differential file by authoring system like this.
Difference list is in visual form and dedicates user to and obtain after subscriber authorisation, will carry out with that having uploaded of all files in difference list.There is no ready-made method because upload the file of specified path, therefore manually write the process that file is uploaded.In document uploading control, click upload button send be the request of a post.Data flow is sent to server end by Post request meeting, the operation after then being uploaded by server end.Therefore can manually carry out written document upload procedure it is simulated to realization.According to the path of file, from client, get this file and read, need afterwards with BASE64, file content to be encoded.Because comprise the character that transmission is interrupted in meetings such as "+" in BASE64, therefore also need to encode again.For the result now obtaining, in packing, needed data structure can be by data stream transmitting to server end.Mainly confusion possible when preventing from carrying out continuously file transmission and preventing from receiving for the packing of data structure.After server end receives data flow, analyze it, and be reassembled into file.Adopt in situation in this way, the upper transmission module of file needs client repeatedly to communicate by letter with server, in difference list, uploading of all files is in fact many post operations, all need each time client that data flow is sent to server end, then by server end, data stream is processed.
4. re-assembly the realization of module
Need to realize the module that re-assemblies of file, because in the process of uploading at file, need temporarily the file in difference list is stored under a temporary folder, after treating that all files has all completed and uploads, more file is served to the assembling of carrying out again.
The process re-assemblying, the file of newly uploading need to be moved to the identical relative path of client under.File is now uploaded in list, has recorded this relative path.Need only the list of uploading of file reading, find the relative path corresponding to file of certain filename, moved in this relative path under service root.If in movement, find that the relative path of file does not exist, only need to create new file.
It is below the detailed process of an increment type deployment services bag on PaaS platform.
Opening and disposing what first carry out behind interface is the selection of deployment way, if selected Java on application type, deployment way is divided into again and is deployed as new service and covers two kinds of old services.After having completed the selection of deployment system, also to carry out filling in of information on services, comprise service name, service describing and user's manual etc., these have facilitated user to being deployed in the use of serving on platform.After user has filled in whole information and clicked submission, deployment system just can carry out having mapped out the work of services package automatically.
If user selects the mode of incremental deploying to carry out the deployment of services package, for example, for this services package of struts2-blank, select general development scheme, cover old service, incremental deploying mode.First the selected old service that will be capped in deployment way has each ID of deployment services in the drop-down option frame of old service, and by struts2, this is served corresponding ID and chooses, and chooses " incremental deploying " option simultaneously.After clicking and entering and submitted this file to after determining, deployment system has calculated the file fingerprint of new and old service automatically, and user is presented in the difference list that documents fingerprint is obtained.After having obtained user's mandate, deployment system is uploaded the file in difference list, and automatically carries out incremental deploying.

Claims (1)

1. the method that on PaaS platform, increment type is disposed, realizes the increment type of file on PaaS platform and disposes, and comprises the steps:
1) user selects increment to upload mode;
2) user selects the new service that will upload, obtains the fingerprint list of file in selected service, and returns to server end;
3) user selects the old service that will cover;
4) server end scanning will override the file of old service, the fingerprint list of the old service that must be capped;
5) relatively two fingerprint lists of server end, obtain the difference list of file fingerprint;
6) server end, by the difference list of fingerprint, returns to browser;
7) the uploading of file in the list of subscriber authorisation difference;
8) upload the file in difference list;
9) server end re-assemblies war bag;
10) be incorporated to the deployment flow process of general service.
CN201310445364.6A 2013-09-25 2013-09-25 Incremental deployment method on PaaS platform Pending CN103780669A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310445364.6A CN103780669A (en) 2013-09-25 2013-09-25 Incremental deployment method on PaaS platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310445364.6A CN103780669A (en) 2013-09-25 2013-09-25 Incremental deployment method on PaaS platform

Publications (1)

Publication Number Publication Date
CN103780669A true CN103780669A (en) 2014-05-07

Family

ID=50572487

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310445364.6A Pending CN103780669A (en) 2013-09-25 2013-09-25 Incremental deployment method on PaaS platform

Country Status (1)

Country Link
CN (1) CN103780669A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106529233A (en) * 2016-10-20 2017-03-22 福建北卡科技有限公司 A return visit-paying user identification algorithm based on browser fingerprint differences
CN108268615A (en) * 2018-01-02 2018-07-10 中国工商银行股份有限公司 A kind of data processing method, device and system
CN110019021A (en) * 2017-10-25 2019-07-16 凯迈(洛阳)机电有限公司 A kind of transmission method of Windows system and NFS catalogue data in centos system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106529233A (en) * 2016-10-20 2017-03-22 福建北卡科技有限公司 A return visit-paying user identification algorithm based on browser fingerprint differences
CN106529233B (en) * 2016-10-20 2019-05-31 北卡科技有限公司 A kind of return visit user identification arithmetic based on browser fingerprint diversity factor
CN110019021A (en) * 2017-10-25 2019-07-16 凯迈(洛阳)机电有限公司 A kind of transmission method of Windows system and NFS catalogue data in centos system
CN108268615A (en) * 2018-01-02 2018-07-10 中国工商银行股份有限公司 A kind of data processing method, device and system
CN108268615B (en) * 2018-01-02 2021-10-26 中国工商银行股份有限公司 Data processing method, device and system

Similar Documents

Publication Publication Date Title
US10621278B2 (en) System and method for mobile presentation processing
US11210610B2 (en) Enhanced multimedia content preview rendering in a cloud content management system
JP5369103B2 (en) Updating content display based on cursor position
CN102708146B (en) Locally edit the image remotely stored
US10866931B2 (en) Desktop application for accessing a cloud collaboration platform
US8407363B2 (en) Generating low resolution user interfaces for transmission to mobile devices
JP6588112B2 (en) Method, computer program and system for wireless connection of devices
US20150046503A1 (en) System and method for capturing, managing, and distributing computer files
CN103544251B (en) Multi-source image processing method and its device
WO2016122656A1 (en) Systems and methods for obtaining an electronic signature via a word processing application
WO2013179151A1 (en) A system and method for creating and delivering complex graphic emails which automatically adapt to fit a variety of different recipient devices
JP6275201B2 (en) Character transmission method, computer program, and character transmission system
US20220342518A1 (en) Card-based information management method and system
CN109447248A (en) Deep learning platform and method
CN103780669A (en) Incremental deployment method on PaaS platform
CN104050227A (en) PDF File Preview Manipulation
US11775140B2 (en) Generating a customized organizational structure for uploading content to a cloud-based storage system
CA2931852A1 (en) System and method for creating and transferring media files
US20170272265A1 (en) Information processing apparatus, system, and information processing method
US20210326307A1 (en) Synchronizing changes within a collaborative content management system
US20230064537A1 (en) System and method for implementing automated harvesting of scanned contracts
US20140115664A1 (en) Instruction-based web service routing system that enables devices to control the flow of content
CN102902783B (en) photo maintenance method
US11876814B2 (en) Proxy services for the secure upload of file system tree structures
US20230394714A1 (en) Synthesizing visualizations for content collections

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140507