CN103188205B - A kind of information method for uploading and system based on LVS framework - Google Patents
A kind of information method for uploading and system based on LVS framework Download PDFInfo
- Publication number
- CN103188205B CN103188205B CN201110444795.1A CN201110444795A CN103188205B CN 103188205 B CN103188205 B CN 103188205B CN 201110444795 A CN201110444795 A CN 201110444795A CN 103188205 B CN103188205 B CN 103188205B
- Authority
- CN
- China
- Prior art keywords
- upload
- domain name
- upload server
- server
- binding domain
- 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.)
- Active
Links
Abstract
The invention discloses a kind of information method for uploading based on LVS framework and system, method includes:Many domain name (DNS) bindings are carried out to the upload server in the upload server cluster of Linux virtual server (LVS) framework;Preview request from client is directed to a upload server in upload server cluster, and the binding domain name for the upload server being directed to is returned into client;Carried in the preview request and upload the information content and mark;According to the binding domain name and upload message identification carried in the preservation request from client, the corresponding upload server of the binding domain name is notified to carry out the corresponding preservation for uploading the information content and identifying.By the present invention, reduce and information is uploaded in LVS framework to the occupancy of bandwidth, save resource.
Description
Technical field
The present invention relates to Internet technical field, more particularly to a kind of information method for uploading and system based on LVS framework.
Background technology
LVS (Linux virtual server, Linux Virtual Server) is a kind of virtual IP address load balance solution side
Case, is now widely used for distributed system, and its principle is:One virtual IP address points to a server cluster, is sent to an IP
Request can be supported all machines equilibrated in cluster.The large-scale webserver is all based on LVS framework at present,
User is in information such as uploading pictures, page layout backgrounds, it usually needs first preview is preserved again, and its information, which is uploaded, is divided into two steps:
Step 1, the information such as picture, page layout background are uploaded to preview server (one belonged in upload server cluster
Platform upload server), the then preview in the page;
After the completion of step 2, preview, the information such as picture, page layout background are uploaded into formal server and (fall within upload service
A upload server in device cluster) preserve.
During aforesaid operations, due to LVS function, preview request and formal upload request would generally be directed to
Two different upload server (preview server as the aforementioned and formal services in LVS framework under upload server cluster
Device), the information such as picture, page layout background for being so accomplished by uploading described in twice, so as to can increase the occupancy of bandwidth, it is unnecessary to expend
Resource.
The content of the invention
In view of this, it is a primary object of the present invention to provide a kind of information method for uploading based on LVS framework and system,
To solve to upload the problem of information can increase the occupancy of bandwidth, consuming spare resources under LVS framework in the prior art.
To reach above-mentioned purpose, the technical proposal of the invention is realized in this way:
The invention provides a kind of information method for uploading based on LVS framework, this method includes:
Many domain names are carried out to the upload server in the upload server cluster of Linux virtual server (LVS) framework
(DNS) bind;
Preview request from client is directed to a upload server in the upload server cluster, and will
The binding domain name for the upload server being directed to returns to the client;In the preview request carry upload the information content and
Mark;
According to the binding domain name and upload message identification carried in the preservation request from client, the binding domain is notified
The corresponding upload server of name carries out the corresponding preservation for uploading the information content and mark.
Upload server in the upload server cluster to LVS framework carries out many DNS bindings, is specially:
Virtual ip address and domain name are distributed for upload server cluster, and on every platform in the upload server cluster
Pass server-assignment binding domain name, every upload clothes that the binding domain name is used in upload server cluster described in unique mark
Business device.
Upload server preview request from client being directed in upload server cluster, specifically
For:
Preview request is sent to the upload server being directed to, the upload server being directed to is to preview request
The upload information content and mark of middle carrying are kept in.
The binding domain name by the upload server being directed to returns to client, is specially:
Return to include in URL (URL), the URL to the client and upload message identification and described fixed
To upload server binding domain name.
This method further comprises:
Upload message identification of the corresponding upload server of the binding domain name in notice carries out validation verification, and
The corresponding preservation for uploading the information content and mark is carried out after being proved to be successful.
Present invention also offers a kind of information uploading system based on LVS framework, the system includes:It is DNS binding modules, fixed
To module and preservation control module, wherein,
The DNS binding modules, many DNS are carried out for the upload server in the upload server cluster to LVS framework
Binding;
The orientation module, for the preview request from client is directed in the upload server cluster one
Platform upload server, and the binding domain name for the upload server being directed to is returned into the client;In the preview request
Carry and upload the information content and mark;
The preservation control module, for being believed according to the binding domain name and upload that are carried in the preservation request from client
Breath mark, notifies the corresponding upload server of the binding domain name to carry out the corresponding preservation for uploading the information content and mark.
The DNS binding modules are further used for, and are upload server cluster distribution virtual ip address and domain name, and be institute
Every upload server distribution binding domain name in upload server cluster is stated, the binding domain name is used for described in unique mark
Pass every upload server in server cluster.
The orientation module is further used for, and preview request, the orientation are sent to the upload server being directed to
To upload server the upload information content that is carried in preview request and mark are kept in.
The orientation module is further used for, and is returned to the client in URL, the URL comprising upload message identification
With the binding domain name of the upload server being directed to.
Upload message identification of the corresponding upload server of the binding domain name in notice carries out validation verification, and
The corresponding preservation for uploading the information content and mark is carried out after being proved to be successful.
A kind of information method for uploading and system based on LVS framework provided by the present invention, to the upload service of LVS framework
Upload server in device cluster carries out many DNS bindings;Preview request from client is directed to the upload server
A upload server in cluster, and the binding domain name for the upload server being directed to is returned into the client;It is described
Carried in preview request and upload the information content and mark;According to the binding domain name that carries in the preservation request from client and upper
Message identification is passed, notifies the corresponding upload server of the binding domain name to carry out the corresponding preservation for uploading the information content and mark.
By the present invention, reduce and information is uploaded in LVS framework to the occupancy of bandwidth, save resource.
Brief description of the drawings
Fig. 1 is a kind of flow chart of information method for uploading based on LVS framework of the embodiment of the present invention;
Fig. 2 is a kind of structural representation of information uploading system based on LVS framework of the embodiment of the present invention.
Embodiment
The technical solution of the present invention is further elaborated with specific embodiment below in conjunction with the accompanying drawings.
A kind of information method for uploading based on LVS framework that the embodiment of the present invention is provided, its application scenarios are LVS framework
Upload server cluster, and upload procedure be divided into preview and preserve two operation.As shown in figure 1, this method mainly include with
Lower step:
Step 101, many DNS (domain names, Domain are carried out to the upload server in the upload server cluster of LVS framework
Name System) binding.
Concrete operations are:Virtual ip address and domain name are distributed for upload server cluster, and in upload server cluster
Every upload server distribution binding domain name, the binding domain name be used for unique mark upload server cluster in every platform
Pass server.For example:Virtual ip address and domain name are distributed for upload server cluster, the domain name of cluster is
Upload.t.qq.com, and be every upload server distribution binding domain name upload [x] in upload server cluster
.t.qq.com, x can be number designation, be the upload server A distribution binding domain names upload in upload server cluster
[1] .t.qq.com, is upload server B distribution binding domain name upload [2] .t.qq.com etc..The binding domain name is used for only
Every upload server in one mark upload server cluster.
Step 102, the preview request from client is directed to a upload server in upload server cluster,
And the binding domain name for the upload server being directed to is returned into client;In the preview request carry upload the information content and
Mark.
Preview request is sent to the upload server being directed to, the upload server being directed in preview request to taking
The upload information content and mark of band are kept in.
The binding domain name for the upload server being directed to can return to client by URL, i.e., returned to the client
Return in URL (URL), the URL in the binding domain name for including the upload server being directed to, the URL
Also comprising upload message identification.
Step 103, according to the binding domain name and upload message identification carried in the preservation request from client, institute is notified
State the corresponding upload server of binding domain name and carry out the corresponding preservation for uploading the information content and mark.
Upload message identification of the corresponding upload server of binding domain name in notice carries out validation verification, and is testing
The corresponding preservation for uploading the information content and mark is carried out after demonstrate,proving successfully.Validation verification refers to that binding domain name is corresponding to upload clothes
Business device judges the upload message identification and its corresponding upload information content that whether have in notifying of itself storage, if so, then
It is proved to be successful;If it is not, authentication failed.In authentication failed, errored response can be returned to client.
Need uploading it should be noted that the message uploaded in the embodiment of the present invention can be picture, page layout background etc.
The information of preview is carried out before preservation.Wherein, page layout background includes the information contents such as background picture and scheme of colour.
Below so that picture is uploaded as an example, the information method for uploading of the present invention is further described.
First, many DNS bindings are carried out to the upload server in the upload server cluster of LVS framework, is upload service
Device cluster distributes virtual ip address and domain name (such as upload.t.qq.com), and is every upload in upload server cluster
Server-assignment binding domain name (such as upload [1] .t.qq.com, upload [2] .t.qq.com), the binding domain name
For every upload server in unique mark upload server cluster;Then, user sends preview request by client
And uploading pictures are to upload.t.qq.com, the preview request is directed to a upload service in upload server cluster
On device upload [x] .t.qq.com;URL is returned to client, the general type of the URL is upload [x] .t.qq.com/
Xxx.jpg, wherein, upload [x] .t.qq.com is the binding domain name for the upload server for truly handling the picture, xxx.jpg
To carry the binding domain name and picture name (mark) of the upload server being directed in picture name, i.e. URL;User passes through visitor
Family end accesses URL in " preview " window and shows picture;After preview is finished, client is sent to upload [x] .t.qq.com
Request is preserved, upload [x] .t.qq.com and xxx.jpg are carried in the request, when upload [x] .t.qq.com upload takes
Business device is received after the preservation notice of system, is carried out validation verification, is proved to be successful, so as to preserve picture xxx.jpg.
The above-mentioned information method for uploading based on LVS framework of correspondence, the embodiment of the present invention additionally provides a kind of based on LVS framework
Information uploading system, as shown in Fig. 2 the system includes:DNS binding modules 10, orientation module 20 and preservation control module 30.
Wherein, DNS binding modules 10, many DNS bindings are carried out for the upload server in the upload server cluster to LVS framework.
Orientation module 20, for a upload server being directed to the preview request from client in upload server cluster,
And the binding domain name for the upload server being directed to is returned into client;In the preview request carry upload the information content and
Mark.Preservation control module 30, for according to the binding domain name and upload information mark carried in the preservation request from client
Know, notify the corresponding upload server of the binding domain name to carry out the corresponding preservation for uploading the information content and mark.The binding
Upload message identification of the corresponding upload server of domain name in notice carries out validation verification, and is carried out after being proved to be successful
The corresponding preservation for uploading the information content and mark.
Preferably, DNS binding modules 10 can be further used for, it is upload server cluster distribution virtual ip address and domain
Name, and be every upload server distribution binding domain name in upload server cluster, the binding domain name is used for unique mark
Every upload server in the upload server cluster.
Preferably, orientation module 20 can be further used for, preview request, institute are sent to the upload server being directed to
The upload server being directed to is stated to keep in the upload information content and mark that carry in preview request.
Preferably, orientation module 20 can be further used for, returned to client in URL, the URL comprising upload information mark
Know the binding domain name with the upload server being directed to.
In summary, by The present invention reduces information is uploaded in LVS framework to the occupancy of bandwidth, saving resource;Separately
Outside, the present invention is applicable not only to the application scenarios that upload procedure is divided into two operations of preview and preservation, and it is for from same visitor
The application scenarios that continuous multiple requests at family end need to be directed to same server in LVS framework are all applicable.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.
Claims (8)
1. a kind of information method for uploading based on LVS framework, it is characterised in that this method includes:
Virtual ip address and domain name are distributed to the upload server cluster of Linux virtual server LVS framework, and is uploaded to be described
Every upload server distribution binding domain name DNS in server cluster;The binding domain name is used to upload described in unique mark
Every upload server in server cluster;
Preview request from client is directed to a upload server in the upload server cluster, and will orientation
To the binding domain name of upload server return to the client;Carried in the preview request and upload the information content and mark
Know;
According to the binding domain name and upload message identification carried in the preservation request from client, the binding domain name pair is notified
The upload server answered carries out the corresponding preservation for uploading the information content and mark.
2. the information method for uploading based on LVS framework according to claim 1, it is characterised in that described to come from client
Preview request be directed to a upload server in upload server cluster, be specially:
Preview request is sent to the upload server being directed to, the upload server being directed in preview request to taking
The upload information content and mark of band are kept in.
3. the information method for uploading based on LVS framework according to claim 1, it is characterised in that described upper by what is be directed to
The binding domain name for passing server returns to client, is specially:
To the client uniform resource position mark URL is returned to, comprising uploading message identification and described be directed in the URL
The binding domain name of upload server.
4. the information method for uploading based on LVS framework according to claim 1, it is characterised in that this method further comprises:
Upload message identification of the corresponding upload server of the binding domain name in notice carries out validation verification, and is testing
The corresponding preservation for uploading the information content and mark is carried out after demonstrate,proving successfully.
5. a kind of information uploading system based on LVS framework, it is characterised in that the system includes:DNS binding modules, orientation mould
Block and preservation control module, wherein,
The DNS binding modules, many DNS bindings are carried out for the upload server in the upload server cluster to LVS framework;
The orientation module, for the platform being directed to the preview request from client in the upload server cluster
Server is passed, and the binding domain name for the upload server being directed to is returned into the client;Carried in the preview request
Upload the information content and mark;
The preservation control module, for according to the binding domain name and upload information mark carried in the preservation request from client
Know, notify the corresponding upload server of the binding domain name to carry out the corresponding preservation for uploading the information content and mark;
The DNS binding modules are further used for, and are upload server cluster distribution virtual ip address and domain name, and are on described
Every upload server distribution binding domain name in server cluster is passed, the binding domain name is used to upload clothes described in unique mark
Every upload server being engaged in device cluster.
6. the information uploading system based on LVS framework according to claim 5, it is characterised in that the orientation module enters one
Walking is used for, and sends preview request to the upload server being directed to, the upload server being directed to is to preview request
The upload information content and mark of middle carrying are kept in.
7. the information uploading system based on LVS framework according to claim 5, it is characterised in that the orientation module enters one
Walking is used for, and is returned to the client in URL, the URL comprising upload message identification and the upload server being directed to
Binding domain name.
8. the information uploading system based on LVS framework according to claim 5, it is characterised in that the binding domain name correspondence
Upload message identification of the upload server in notice carry out validation verification, and accordingly uploaded after being proved to be successful
The preservation of the information content and mark.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110444795.1A CN103188205B (en) | 2011-12-27 | 2011-12-27 | A kind of information method for uploading and system based on LVS framework |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110444795.1A CN103188205B (en) | 2011-12-27 | 2011-12-27 | A kind of information method for uploading and system based on LVS framework |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103188205A CN103188205A (en) | 2013-07-03 |
CN103188205B true CN103188205B (en) | 2017-09-12 |
Family
ID=48679174
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110444795.1A Active CN103188205B (en) | 2011-12-27 | 2011-12-27 | A kind of information method for uploading and system based on LVS framework |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103188205B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106878476B (en) * | 2016-06-02 | 2020-04-24 | 阿里巴巴集团控股有限公司 | Network environment isolation and service acquisition method and device |
CN109600407A (en) * | 2017-09-30 | 2019-04-09 | 北京国双科技有限公司 | Request distribution method and device based on virtual server |
CN110311982A (en) * | 2019-07-05 | 2019-10-08 | 浪潮云信息技术有限公司 | A kind of implementation method of High Availabitity server cluster system |
CN116094804B (en) * | 2023-01-10 | 2023-09-08 | 广东红餐科技有限公司 | Method for avoiding repeated login of user based on Lvs server cluster |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1444149A (en) * | 2002-03-12 | 2003-09-24 | 中国科学院计算技术研究所 | Server system based on network storage and expandable system structure and its method |
CN1529460A (en) * | 2003-10-14 | 2004-09-15 | 北京邮电大学 | Whole load equalizing method based on global network positioning |
CN101115016A (en) * | 2007-08-23 | 2008-01-30 | 创新科存储技术(深圳)有限公司 | Method and system for implementing application server load balancing |
-
2011
- 2011-12-27 CN CN201110444795.1A patent/CN103188205B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1444149A (en) * | 2002-03-12 | 2003-09-24 | 中国科学院计算技术研究所 | Server system based on network storage and expandable system structure and its method |
CN1529460A (en) * | 2003-10-14 | 2004-09-15 | 北京邮电大学 | Whole load equalizing method based on global network positioning |
CN101115016A (en) * | 2007-08-23 | 2008-01-30 | 创新科存储技术(深圳)有限公司 | Method and system for implementing application server load balancing |
Also Published As
Publication number | Publication date |
---|---|
CN103188205A (en) | 2013-07-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103905497B (en) | Realize the method, apparatus and application platform of third-party application business website log | |
CN113206753B (en) | Information configuration method and management unit | |
TWI603206B (en) | Server cluster based data processing method and cluster based data processing system | |
CN103188205B (en) | A kind of information method for uploading and system based on LVS framework | |
KR20170066583A (en) | Software-defined network-based method and system for implementing content distribution network | |
CN105897769A (en) | Method and server for streaming content | |
KR20200035152A (en) | Session handling method and related devices | |
CN104349177B (en) | It is a kind of to turn to method, virtual machine and the system for playing multimedia file under desktop cloud | |
KR101638315B1 (en) | System and method for providing advertisement based on web using wifi network | |
CN110134350B (en) | Print file segmentation and transmission method | |
CN101039309A (en) | Link sharing service apparatus and communication method thereof | |
US10404774B2 (en) | Mobile device and method for controlling transmission to web server in mobile device | |
CN102307233A (en) | Cloud computing method for cloud computing server | |
CN107135672A (en) | Application installation package acquisition methods, information broadcast method, mobile device and base station | |
CN101930439B (en) | The Website processing device of the various model mobile phone of a kind of adaptation and application thereof | |
CN104601534A (en) | Method and system for processing CDN system images | |
CN101179392A (en) | Method and system for uploading document | |
CN110191186A (en) | CDN server dispatching method, equipment and computer readable storage medium | |
CN104780184A (en) | Method of using geographical location information for load balancing | |
CN106899564A (en) | A kind of login method and device | |
CN103997509B (en) | A kind of service processing method and device based on Services Oriented Achitecture | |
KR101857020B1 (en) | Apparatas and method for managing service of providing server in a terminal | |
CN103686852B (en) | A kind of method, equipment and Wireless acceleration system that interaction data is processed | |
CN107888643A (en) | A kind of UDP load-balancing methods, device and system | |
US20120124228A1 (en) | Multimedia session transfer control system and method |
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 |