CN103188205A - Information uploading method and system based on LVS framework - Google Patents
Information uploading method and system based on LVS framework Download PDFInfo
- Publication number
- CN103188205A CN103188205A CN2011104447951A CN201110444795A CN103188205A CN 103188205 A CN103188205 A CN 103188205A CN 2011104447951 A CN2011104447951 A CN 2011104447951A CN 201110444795 A CN201110444795 A CN 201110444795A CN 103188205 A CN103188205 A CN 103188205A
- Authority
- CN
- China
- Prior art keywords
- upload server
- uploading
- domain name
- upload
- 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.)
- Granted
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses an information uploading method and a system based on an LVS (Linux Virtual Server) framework. The method comprises the steps that uploading servers in an uploading server cluster of the LVS framework are subjected to DNS (Domain Name System) binding; a preview request from a client is directed to one uploading server in the uploading server cluster; a binding domain name of the directed uploading server is returned to the client; the preview request carries an uploading information content and identification; and the uploading server to which the binding domain name corresponds is informed of saving the corresponding uploading information content and identification according to a binding domain name and uploading information identification carried in a saving request from the client. With the adoption of the method and the system, the occupation of uploading information in the LVS framework to bandwidth is reduced, and resources are saved.
Description
Technical field
The present invention relates to Internet technical field, relate in particular to a kind of information method for uploading and system based on the LVS framework.
Background technology
LVS (Linux virtual server, Linux Virtual Server) be that a kind of virtual IP address load balance solves scheme, be widely used in distributed system at present, its principle is: virtual IP address points to a server cluster, and the request meeting of mailing to an IP is by load balance all machines in the cluster.The at present large-scale webserver all is based on the LVS framework, and the user needs first preview to preserve when information such as uploading pictures, page layout background usually again, and its information is uploaded and is divided into two steps:
Step 1, information such as picture, page layout background are uploaded to preview server (belonging to a upload server in the upload server cluster), preview in the page then;
After step 2, preview are finished, information such as picture, page layout background are uploaded to formal server (also belonging to a upload server in the upload server cluster) preserve.
In the aforesaid operations process; because the function of LVS; preview request can be directed to two different upload servers under the upload server cluster in the LVS framework (preview server and formal server as the aforementioned) usually with formal upload request; so just need upload information such as twice described picture, page layout background; thereby can increase taking of bandwidth, expend unnecessary resource.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of information method for uploading and system based on the LVS framework, can increase taking of bandwidth to upload information in the solution prior art under the LVS framework, expends unnecessary problem of resource.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides a kind of information method for uploading based on the LVS framework, this method comprises:
Upload server in the upload server cluster of Linux virtual server (LVS) framework is carried out multiple domain name (DNS) binding;
To be directed to a upload server in the described upload server cluster from the preview request of client, and the binding domain name of the upload server that is directed to will be returned to described client; Carry in the described preview request and upload the information content and sign;
According to the binding domain name that carries in the preservation request from client and upload message identification, notify the upload server of described binding domain name correspondence to carry out corresponding preservation of uploading the information content and sign.
Described upload server in the upload server cluster of LVS framework is carried out many DNS binding, is specially:
Be upload server cluster distribution virtual ip address and domain name, and be every upload server distribution binding domain name in the described upload server cluster that described binding domain name is used for every upload server of the described upload server cluster of unique identification.
A described upload server that will be directed to from the preview request of client in the upload server cluster is specially:
Send preview request to the described upload server that is directed to, the described upload server that is directed to carry in the preview request upload the information content and sign is kept in.
Described binding domain name with the upload server that is directed to returns to client, is specially:
Return URL(uniform resource locator) (URL) to described client, comprise the binding domain name of uploading message identification and the described upload server that is directed among the described URL.
This method further comprises:
The upload server of described binding domain name correspondence carries out validation verification according to the message identification of uploading in the notice, and carries out corresponding preservation of uploading the information content and sign after being proved to be successful.
The present invention also provides a kind of information uploading system based on the LVS framework, and this system comprises: DNS binding module, orientation module and preservation control module, wherein,
Described DNS binding module is used for the upload server of the upload server cluster of LVS framework is carried out many DNS bindings;
Described orientation module is used for being directed to from the preview request of client a upload server of described upload server cluster, and the binding domain name of the upload server that is directed to is returned to described client; Carry in the described preview request and upload the information content and sign;
Described preservation control module is used for according to the binding domain name that carries from the preservation request of client and uploads message identification, notifies the upload server of described binding domain name correspondence to carry out corresponding preservation of uploading the information content and sign.
Described DNS binding module is further used for, for the upload server cluster distributes virtual ip address and domain name, and be that every upload server in the described upload server cluster distributes binding domain name, described binding domain name is used for every upload server of the described upload server cluster of unique identification.
Described orientation module is further used for, and sends preview request to the described upload server that is directed to, the described upload server that is directed to carry in the preview request upload the information content and sign is kept in.
Described orientation module is further used for, and to described client Return URL, comprises the binding domain name of uploading message identification and the described upload server that is directed among the described URL.
The upload server of described binding domain name correspondence carries out validation verification according to the message identification of uploading in the notice, and carries out corresponding preservation of uploading the information content and sign after being proved to be successful.
A kind of information method for uploading and system based on the LVS framework provided by the present invention carry out many DNS bindings to the upload server in the upload server cluster of LVS framework; To be directed to a upload server in the described upload server cluster from the preview request of client, and the binding domain name of the upload server that is directed to will be returned to described client; Carry in the described preview request and upload the information content and sign; According to the binding domain name that carries in the preservation request from client and upload message identification, notify the upload server of described binding domain name correspondence to carry out corresponding preservation of uploading the information content and sign.By the present invention, reduced the information of uploading in the LVS framework to the taking of bandwidth, saved resource.
Description of drawings
Fig. 1 is the flow chart of a kind of information method for uploading based on the LVS framework of the embodiment of the invention;
Fig. 2 is the structural representation of a kind of information uploading system based on the LVS framework of the embodiment of the invention.
Embodiment
The technical solution of the present invention is further elaborated below in conjunction with the drawings and specific embodiments.
A kind of information method for uploading based on the LVS framework that the embodiment of the invention provides, its application scenarios is the upload server cluster of LVS framework, and upload procedure is divided into preview and preserves two operations.As shown in Figure 1, this method mainly may further comprise the steps:
Concrete operations are: be upload server cluster distribution virtual ip address and domain name, and be every upload server distribution binding domain name in the upload server cluster that described binding domain name is used for every upload server of unique identification upload server cluster.For example: for the upload server cluster distributes virtual ip address and domain name, the domain name of cluster is upload.t.qq.com, and be that every upload server in the upload server cluster distributes binding domain name upload[x] .t.qq.com, x can be number designation, for the upload server A in the upload server cluster distributes binding domain name upload[1] .t.qq.com, for upload server B distributes binding domain name upload[2] .t.qq.com etc.This binding domain name is used for every upload server of unique identification upload server cluster.
Send preview request to the upload server that is directed to, the described upload server that is directed to carry in the preview request upload the information content and sign is kept in.
The binding domain name of the upload server that is directed to can return to client by URL, namely return URL(uniform resource locator) (URL) to described client, the binding domain name that comprises the described upload server that is directed among the described URL also comprises among the described URL and uploads message identification.
The upload server of binding domain name correspondence carries out validation verification according to the message identification of uploading in the notice, and carries out corresponding preservation of uploading the information content and sign after being proved to be successful.Validation verification refers to, the upload server of binding domain name correspondence judges that whether having of self storage upload message identification and the corresponding information content of uploading thereof in the notice, if having, then is proved to be successful; If no, authentication failed then.When authentication failed, can return errored response to client.
Need to prove that the message of uploading in the embodiment of the invention can be picture, page layout background etc. need carry out preview before uploading preservation information.Wherein, page layout background comprises the information contents such as background picture and scheme of colour.
Upload with picture below and be example, information method for uploading of the present invention is further described.
At first, upload server in the upload server cluster of LVS framework is carried out many DNS bindings, for the upload server cluster distributes virtual ip address and domain name (as upload.t.qq.com), and be that every upload server in the upload server cluster distributes binding domain name (as upload[1] .t.qq.com, upload[2] .t.qq.com etc.), described binding domain name is used for every upload server of unique identification upload server cluster; Then, the user sends preview request and uploading pictures to upload.t.qq.com by client, and this preview request is directed to a upload server upload[x in the upload server cluster] on the .t.qq.com; To the client Return URL, the general type of described URL is upload[x] .t.qq.com/xxx.jpg, wherein, upload[x] .t.qq.com is the true binding domain name of handling the upload server of this picture, xxx.jpg is picture name, namely carries binding domain name and the picture name (sign) of the upload server that is directed among the URL; The user visits URL by client and Shows Picture in " preview " window; After preview finishes, client is to upload[x] .t.qq.com transmission preservation request, carry upload[x in this request] .t.qq.com and xxx.jpg, as upload[x] after the upload server of .t.qq.com receives the preservation notice of system, carry out validation verification, be proved to be successful, thereby preserve picture xxx.jpg.
Corresponding above-mentioned information method for uploading based on the LVS framework, the embodiment of the invention also provides a kind of information uploading system based on the LVS framework, and as shown in Figure 2, this system comprises: DNS binding module 10, orientation module 20 and preservation control module 30.Wherein, DNS binding module 10 is used for the upload server of the upload server cluster of LVS framework is carried out many DNS bindings.Orientation module 20 is used for being directed to from the preview request of client a upload server of upload server cluster, and the binding domain name of the upload server that is directed to is returned to client; Carry in the described preview request and upload the information content and sign.Preserve control module 30, be used for according to the binding domain name that carries from the preservation request of client and upload message identification, notify the upload server of described binding domain name correspondence to carry out corresponding preservation of uploading the information content and sign.The upload server of described binding domain name correspondence carries out validation verification according to the message identification of uploading in the notice, and carries out corresponding preservation of uploading the information content and sign after being proved to be successful.
Preferable, DNS binding module 10 can be further used for, for the upload server cluster distributes virtual ip address and domain name, and be that every upload server in the upload server cluster distributes binding domain name, described binding domain name is used for every upload server of the described upload server cluster of unique identification.
Preferable, orientation module 20 can be further used for, and sends preview request to the described upload server that is directed to, the described upload server that is directed to carry in the preview request upload the information content and sign is kept in.
Preferable, orientation module 20 can be further used for, and to the client Return URL, comprises the binding domain name of uploading message identification and the described upload server that is directed among the described URL.
In sum, reduce the information of uploading in the LVS framework to the taking of bandwidth by the present invention, saved resource; In addition, the present invention is not only applicable to upload procedure and is divided into preview and preserves the application scenarios of two operations, and it all is suitable for for the application scenarios that the continuous a plurality of requests from same client need be directed to the same station server in the LVS framework.
The above is preferred embodiment of the present invention only, is not for limiting protection scope of the present invention.
Claims (10)
1. information method for uploading based on the LVS framework is characterized in that this method comprises:
Upload server in the upload server cluster of Linux virtual server (LVS) framework is carried out multiple domain name (DNS) binding;
To be directed to a upload server in the described upload server cluster from the preview request of client, and the binding domain name of the upload server that is directed to will be returned to described client; Carry in the described preview request and upload the information content and sign;
According to the binding domain name that carries in the preservation request from client and upload message identification, notify the upload server of described binding domain name correspondence to carry out corresponding preservation of uploading the information content and sign.
2. according to the described information method for uploading based on the LVS framework of claim 1, it is characterized in that, described upload server in the upload server cluster of LVS framework carried out many DNS binding, be specially:
Be upload server cluster distribution virtual ip address and domain name, and be every upload server distribution binding domain name in the described upload server cluster that described binding domain name is used for every upload server of the described upload server cluster of unique identification.
3. according to claim 1 or 2 described information method for uploading based on the LVS framework, it is characterized in that a described upload server that will be directed to from the preview request of client in the upload server cluster is specially:
Send preview request to the described upload server that is directed to, the described upload server that is directed to carry in the preview request upload the information content and sign is kept in.
4. according to claim 1 or 2 described information method for uploading based on the LVS framework, it is characterized in that described binding domain name with the upload server that is directed to returns to client, is specially:
Return URL(uniform resource locator) (URL) to described client, comprise the binding domain name of uploading message identification and the described upload server that is directed among the described URL.
5. according to claim 1 or 2 described information method for uploading based on the LVS framework, it is characterized in that this method further comprises:
The upload server of described binding domain name correspondence carries out validation verification according to the message identification of uploading in the notice, and carries out corresponding preservation of uploading the information content and sign after being proved to be successful.
6. information uploading system based on the LVS framework is characterized in that this system comprises: DNS binding module, orientation module and preservation control module, wherein,
Described DNS binding module is used for the upload server of the upload server cluster of LVS framework is carried out many DNS bindings;
Described orientation module is used for being directed to from the preview request of client a upload server of described upload server cluster, and the binding domain name of the upload server that is directed to is returned to described client; Carry in the described preview request and upload the information content and sign;
Described preservation control module is used for according to the binding domain name that carries from the preservation request of client and uploads message identification, notifies the upload server of described binding domain name correspondence to carry out corresponding preservation of uploading the information content and sign.
7. according to the described information uploading system based on the LVS framework of claim 6, it is characterized in that, described DNS binding module is further used for, for the upload server cluster distributes virtual ip address and domain name, and be that every upload server in the described upload server cluster distributes binding domain name, described binding domain name is used for every upload server of the described upload server cluster of unique identification.
8. according to claim 6 or 7 described information uploading systems based on the LVS framework, it is characterized in that, described orientation module is further used for, send preview request to the described upload server that is directed to, the described upload server that is directed to carry in the preview request upload the information content and sign is kept in.
9. according to claim 6 or 7 described information uploading systems based on the LVS framework, it is characterized in that, described orientation module is further used for, and to described client Return URL, comprises the binding domain name of uploading message identification and the described upload server that is directed among the described URL.
10. according to claim 6 or 7 described information uploading systems based on the LVS framework, it is characterized in that, the upload server of described binding domain name correspondence carries out validation verification according to the message identification of uploading in the notice, and carries out corresponding preservation of uploading the information content and sign after being proved to be successful.
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 true CN103188205A (en) | 2013-07-03 |
CN103188205B 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) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106878476A (en) * | 2016-06-02 | 2017-06-20 | 阿里巴巴集团控股有限公司 | Network environment isolation, 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 |
CN116094804A (en) * | 2023-01-10 | 2023-05-09 | 广东红餐科技有限公司 | 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 |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106878476A (en) * | 2016-06-02 | 2017-06-20 | 阿里巴巴集团控股有限公司 | Network environment isolation, service acquisition method and device |
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 |
CN116094804A (en) * | 2023-01-10 | 2023-05-09 | 广东红餐科技有限公司 | Method for avoiding repeated login of user based on Lvs server cluster |
CN116094804B (en) * | 2023-01-10 | 2023-09-08 | 广东红餐科技有限公司 | Method for avoiding repeated login of user based on Lvs server cluster |
Also Published As
Publication number | Publication date |
---|---|
CN103188205B (en) | 2017-09-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100462977C (en) | Capture server, distribution server, method and system for generating webpage capture | |
CN103051646B (en) | Information synchronization method and device | |
CN103179148B (en) | A kind of processing method sharing adnexa in the Internet and system | |
CN104615391A (en) | File previewing method, device and system | |
CN108881228A (en) | Cloud registration activation method, device, equipment and storage medium | |
CN104980289A (en) | Message pushing method, device and system | |
WO2014166332A1 (en) | Method, client, server, and system for sharing content | |
US20120293826A1 (en) | Systems and methods for providing multiple images | |
CN102571941B (en) | Cloud point-to-point data transmission method and system | |
KR101638315B1 (en) | System and method for providing advertisement based on web using wifi network | |
CN103179099B (en) | A kind ofly access the uniform authentication method of open website platform and a kind of website platform | |
CN104869143A (en) | Data sharing method and device, client and server | |
CN106899669B (en) | Registration-based enterprise container mirror image establishing method and device | |
CN103475682A (en) | File transfer method and file transfer equipment | |
CN104144206A (en) | Method, system and device for loading interface | |
CN107135672A (en) | Application installation package acquisition methods, information broadcast method, mobile device and base station | |
EP2916522A1 (en) | File transmission method and system thereof | |
CN104660409A (en) | System login method in cluster environment and authentication server cluster | |
CN102710535B (en) | A kind of data capture method and equipment | |
CN105407413A (en) | Distributed video transcoding method and related device and system | |
CN102708192A (en) | Method, system and device for sharing documents | |
CN103188205A (en) | Information uploading method and system based on LVS framework | |
CN105049246A (en) | Group user management and service method and system | |
CN109040263B (en) | Service processing method and device based on distributed system | |
CN104618388A (en) | Quick registration and login method and corresponding reset server and information server |
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 |