CN106790666A - Load balancing mesh architecture and its build operation method - Google Patents

Load balancing mesh architecture and its build operation method Download PDF

Info

Publication number
CN106790666A
CN106790666A CN201710051772.1A CN201710051772A CN106790666A CN 106790666 A CN106790666 A CN 106790666A CN 201710051772 A CN201710051772 A CN 201710051772A CN 106790666 A CN106790666 A CN 106790666A
Authority
CN
China
Prior art keywords
memcached
data
target cache
user
servers
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
CN201710051772.1A
Other languages
Chinese (zh)
Inventor
李文杰
谭文
李建国
马述杰
郑其荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Taihua Wisdom Industry Group Co Ltd
Original Assignee
Taihua Wisdom Industry Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Taihua Wisdom Industry Group Co Ltd filed Critical Taihua Wisdom Industry Group Co Ltd
Priority to CN201710051772.1A priority Critical patent/CN106790666A/en
Publication of CN106790666A publication Critical patent/CN106790666A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1029Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers using data related to the state of servers by a load balancer

Abstract

Disclosure load balancing mesh architecture and its operation method is built, method includes:Some computers in network are chosen, Weblogic application servers are respectively mounted;At least one computer of alternative builds Memcached distributed memory target cache systems;By application server respectively with distributed memory target cache system relationship;At least two computers of alternative are respectively mounted Nginx loaded servers;Configure the mapping relations of the Nginx loaded servers and each application server on every computer;Loaded server receives the data access request of user, and the data access request is sent to any one application server;Application server preferentially downloads user requested data according to the data access request from distributed memory target cache system, if not being stored with required data in caching system, is downloaded from database and sent into user and caching system.

Description

Load balancing mesh architecture and its build operation method
Technical field
The application is related to application-development technologies field, specifically, be related to a kind of load balancing mesh architecture and its Build operation method.
Background technology
With advancing by leaps and bounds for continuing to develop for Modern IT Technology, particularly development of Mobile Internet technology, web application Function it is also stronger and stronger, accompanying problem is that:The CPU operational capabilities of single server cannot meet increasingly huge Big calculating demand, thus, the concept of the server cluster that has been born, to solve unit operational capability, the limitation of I/O abilities and not Foot.In server cluster, all application programs are deployed in every server respectively.
At present, as each Informatization is advanced, various a large amount of industry platforms are generated.These platforms are played in data Turn, resources centralized management function.Because industry platform often carries substantial amounts of various loads, but local server internal memory is again Mass data process demand cannot be met.So the Memory Management of existing server has been increasingly becoming platform property lifting Bottleneck.
In the prior art, realizing the mode of equally loaded has a lot, and different designs realize there are different advantage and disadvantage, such as The shared of session can be slightly better than Memcached implementations using the design of viscosity Sess1n in performance, have the disadvantage one Denier some application server node failure, its corresponding all business will be unable to treatment.
The content of the invention
In view of this, technical problems to be solved in this application there is provided a kind of load balancing mesh architecture and its build Operation method, a solution is provided for application program high concurrent is accessed with fault-tolerant design high, can be accessed high concurrent and be divided Flow to each application server processes, it is to avoid multi-service concentrates on the phenomenon that some application server causes overload.
In order to solve the above-mentioned technical problem, the application has following technical scheme:
A kind of load balancing mesh architecture builds operation method, it is characterised in that including:
Some computers in network are chosen, Weblogic application services are respectively mounted on some computers Device, and be the Weblogic application servers difference disposing application program on every computer so that on every computer Weblogic application servers being capable of normal independent operating;
Select at least one computer else in the network, Memcached is built respectively on each computer of selection Distributed memory target cache system;
By the Weblogic application servers on some computers respectively with the Memcached distributed memories Target cache system relationship so that each Weblogic application servers pass through the Memcached distributed memories object Caching system realizes that session is shared;
At least two computers of selection are respectively mounted Nginx loaded servers in addition in the networking;
Nginx loaded servers on every computer of configuration are closed with the mapping of each Weblogic application servers System so that the Nginx loaded servers on every computer are associated with each Weblogic application servers respectively;
The Nginx loaded servers receive the data access request of user, and by the data access request send to Any one Weblogic application server;
The Weblogic application servers judge that the Memcached is distributed interior according to the data access request Deposit and whether be stored with target cache system user requested data, if the Memcached distributed memories target cache system In be stored with the user requested data, then directly download institute from the Memcached distributed memories target cache system User requested data is stated, and user is sent to by Nginx loaded servers;Otherwise, then the user is downloaded from database Required data are simultaneously sent to user by Nginx loaded servers, and the user requested data is stored to described In Memcached distributed memory target cache systems.
Preferably, wherein:
The Weblogic application servers judge that the Memcached is distributed interior according to the data access request Deposit and whether be stored with target cache system user requested data, further for:
SessionID of the Weblogic application servers in the data access request, from described Whether the data of the identical SessionID that is stored with are inquired about in Memcached distributed memory target cache systems, if described Be stored with the data of identical SessionID in Memcached distributed memory target cache systems, then described identical The data of SessionID are the user requested data;If not deposited in the Memcached distributed memories target cache system The data of identical SessionID are contained, is then represented and do not store in the Memcached distributed memories target cache system State user requested data.
Preferably, wherein:
After the user requested data is stored into the Memcached distributed memories target cache system, The operation method of building is further included:
The Memcached distributed memories target cache system sets effectively making for received user requested data With the time so that in the effective storage life, the Weblogic application servers can directly from the Memcached The user requested data is downloaded in distributed memory target cache system.
Preferably, wherein:
When effectively using of the user requested data stored in the Memcached distributed memories target cache system Between reach after, the Memcached distributed memories target cache system judges that corresponding user requested data is fail data, And deleted the fail data.
Preferably, wherein:
If being stored with the user requested data in the Memcached distributed memories target cache system, directly It is described to build operation after downloading the user requested data from the Memcached distributed memories target cache system Method is further included:
The use that the Memcached distributed memories target cache system is downloaded to the Weblogic application servers The effective storage life of data needed for family is updated.
A kind of load balancing mesh architecture, including:Some Weblogic application servers, at least one Memcached Distributed memory target cache system and at least two Nginx loaded servers, wherein,
The some some Weblogic application servers, are respectively mounted on some computers in a network, The normal independent operating on every computer;
At least one Memcached distributed memories target cache system, builds another calculating in a network On machine, each Memcached distributed memories target cache system Weblogic application servers described with some respectively Association so that each Weblogic application servers are realized by the Memcached distributed memories target cache system Session is shared;
At least two Nginx loaded servers, are respectively mounted at least two computers in a network, every computer On Nginx loaded servers associated with each Weblogic application servers respectively;
The Nginx loaded servers, the data access request for receiving user, and the data access request is sent out Deliver to any one Weblogic application server;
The Weblogic application servers, for according to the data access request, judging the Memcached distributions Whether user requested data, if the Memcached distributed memories target cache if being stored with formula memory object caching system Be stored with the user requested data in system, then directly from the Memcached distributed memories target cache system under The user requested data is carried, and user is sent to by Nginx loaded servers;Otherwise, then download is described from database User requested data is simultaneously sent to user by Nginx loaded servers, and the user requested data is stored to described In Memcached distributed memory target cache systems.
Preferably, wherein:
The Weblogic application servers, are further used for:According to the SessionID in the data access request, Whether the data of the identical SessionID that is stored with are inquired about from the Memcached distributed memories target cache system, if institute State the data of the identical SessionID that is stored with Memcached distributed memory target cache systems, then it is described identical The data of SessionID are the user requested data;If not deposited in the Memcached distributed memories target cache system The data of identical SessionID are contained, is then represented and do not store in the Memcached distributed memories target cache system State user requested data.
Preferably, wherein:
The Memcached distributed memories target cache system, for after user requested data is received, setting institute The effective storage life of the user requested data for receiving so that in the effective storage life, the Weblogic applications Server directly can download the user requested data from the Memcached distributed memories target cache system.
Preferably, wherein:
The Memcached distributed memories target cache system, is further used in the Memcached is distributed After depositing the effective storage life arrival of the user requested data stored in target cache system, the Memcached is distributed interior Deposit target cache system and judge that corresponding user requested data is fail data, and the fail data is deleted.
Preferably, wherein:
The Memcached distributed memories target cache system, is further used in the Weblogic application services Device is downloaded after user requested data from the Memcached distributed memories target cache system, to the Weblogic The effective storage life of the user requested data that application server is downloaded is updated.
Compared with prior art, method and system described herein, have reached following effect:
First, load balancing mesh architecture provided by the present invention and its operation method is built, multiple Nginx load services Device is serviced for multiple Weblogic application servers simultaneously, using " multi-to-multi " model, one Nginx load services of any of which Device or Weblogic application server failures are normally run all without traffic affecting, can access high concurrent and be diverted to each Application server processes, it is to avoid multi-service concentrates on the phenomenon that some application server causes overload.
Second, load balancing mesh architecture provided by the present invention and its operation method is built, it is distributed by Memcached Formula memory object caching system realizes that the session of multiple Weblogic application servers is shared, it is ensured that even if wherein certain Weblogic Application server failure, business still is able to smooth other normal servers of transferring without influence user regular traffic operation.
3rd, load balancing mesh architecture provided by the present invention and its build operation method, Memcached is distributed User requested data is stored in memory object caching system, in user's request corresponding data, can directly from Memcached points Cloth memory object caching system is downloaded, it is to avoid time defect long is expended when being downloaded from database, and Memcached divides User requested data that cloth memory object caching system can also be stored to it sets effective time limit, when beyond set it is effective when Between when, automatic invalid data can be deleted, internal memory is effectively saved, so as to be conducive to improving Memcached distributed memories The speed of service of target cache system.
Brief description of the drawings
Accompanying drawing described herein is used for providing further understanding of the present application, constitutes the part of the application, this Shen Schematic description and description please does not constitute the improper restriction to the application for explaining the application.In the accompanying drawings:
Fig. 1 is that a kind of load balancing mesh architecture of the invention builds operational flow diagram;
Fig. 2 is a kind of structure chart of load balancing mesh architecture of the invention;
Fig. 3 is the flow chart that a kind of load balancing mesh architecture of the invention runs embodiment.
Specific embodiment
Some vocabulary have such as been used to censure specific components in the middle of specification and claim.Those skilled in the art should It is understood that hardware manufacturer may call same component with different nouns.This specification and claims are not with name The difference of title is used as distinguishing the mode of component, but the difference with component functionally is used as the criterion distinguished.Such as logical The "comprising" of piece specification and claim mentioned in is an open language, therefore should be construed to " include but do not limit In "." substantially " refer to that in receivable error range, those skilled in the art can solve described in the range of certain error Technical problem, basically reaches the technique effect.Additionally, " coupling " one word herein comprising it is any directly and indirectly electric property coupling Means.Therefore, if a first device is coupled to a second device described in text, representing the first device can direct electrical coupling The second device is connected to, or the second device is electrically coupled to indirectly by other devices or coupling means.Specification Subsequent descriptions be implement the application better embodiment, so it is described description be for the purpose of the rule for illustrating the application, It is not limited to scope of the present application.The protection domain of the application ought be defined depending on the appended claims person of defining.
Embodiment 1
Shown in Figure 1 is a kind of herein described specific embodiment of load balancing mesh architecture, and the method includes:
Step 101, some computers chosen in network, Weblogic is respectively mounted on some computers Application server, and be the Weblogic application servers difference disposing application program on every computer so that every calculating Weblogic application servers on machine being capable of normal independent operating;
Step 102, select at least one computer else in the network, built respectively on each computer of selection Memcached distributed memory target cache systems;
Step 103, by the Weblogic application servers on some computers respectively with the Memcached point Cloth memory object caching system is associated so that each Weblogic application servers are distributed by the Memcached Memory object caching system realizes that session is shared;
Step 104, in the networking in addition selection at least two computers be respectively mounted Nginx loaded servers;
Nginx loaded servers and each Weblogic application servers on step 105, every computer of configuration Mapping relations so that the Nginx loaded servers on every computer are associated with each Weblogic application servers respectively;
Step 106, the Nginx loaded servers receive the data access request of user, and please by the data access Ask transmission to any one Weblogic application server;
Step 107, the Weblogic application servers judge the Memcached according to the data access request Whether user requested data, if the Memcached distributed memories object if being stored with distributed memory target cache system Be stored with the user requested data in caching system, then directly from the Memcached distributed memories target cache system It is middle to download the user requested data, and user is sent to by Nginx loaded servers;Otherwise, then downloaded from database The user requested data is simultaneously sent to user, and the user requested data is stored to institute by Nginx loaded servers In stating Memcached distributed memory target cache systems.
Above-mentioned steps 101 embody the building method of load balancing mesh architecture in the application, above-mentioned step to step 105 Rapid 106 and step 107, embody the operation method of load balancing mesh architecture in the application.
Load balancing mesh architecture provided by the present invention builds operation method, and multiple Nginx loaded servers are same When be the service of multiple Weblogic application servers, using " multi-to-multi " model, one Nginx loaded server of any of which or Weblogic application server failures are normally run all without traffic affecting, can access high concurrent and be diverted to each application Server process, it is to avoid multi-service concentrates on the phenomenon that some application server causes overload.
Additionally, the application realizes multiple Weblogic application clothes by Memcached distributed memory target caches system The session of business device is shared, it is ensured that even if wherein certain Weblogic application server failure, and business still is able to smooth is transferring other just Normal server is without influence user regular traffic operation.
In above-mentioned steps 107, the Weblogic application servers judge described according to the data access request Whether be stored with user requested data in Memcached distributed memory target cache systems, further for:
SessionID of the Weblogic application servers in the data access request, from described Whether the data of the identical SessionID that is stored with are inquired about in Memcached distributed memory target cache systems, if described Be stored with the data of identical SessionID in Memcached distributed memory target cache systems, then described identical The data of SessionID are the user requested data;If not deposited in the Memcached distributed memories target cache system The data of identical SessionID are contained, is then represented and do not store in the Memcached distributed memories target cache system State user requested data.
In view of when the data access request of user is received, if inquired about from lane database, downloaded every time, due to The content of database purchase is huge, and query process will be consumed for a long time, first receive the data access request of user And from lane database inquire user needed for after data, user requested data is stored the application Memcached distributions in the lump In formula memory object caching system.After user is received again by the data access request of data needed for the user, then can be first Inquiry Memcached distributed memory target cache systems, then directly from Memcached distributed memory target cache systems Data needed for downloading user, dramatically saves on the time consumed from data base querying, effectively improve efficiency data query.
In above-mentioned steps 107, delay the user requested data is stored to the Memcached distributed memories object After in deposit system, the operation method of building is further included:
The Memcached distributed memories target cache system sets effectively making for received user requested data With the time so that in the effective storage life, the Weblogic application servers can directly from the Memcached The user requested data is downloaded in distributed memory target cache system.
Further, the user requested data for being stored in the Memcached distributed memories target cache system After effective storage life is reached, the Memcached distributed memories target cache system judges corresponding user requested data It is fail data, and the fail data is deleted.
Through the above way, the resource stored in Memcached distributed memory target cache systems is filtered, it is right The resource data of failure is deleted, so as to advantageously ensure that the operation speed of Memcached distributed memory target cache systems Degree, such mode is played a significant role to the overall efficiency data query of lifting.
In above-mentioned steps 107, if being stored with the user institute in the Memcached distributed memories target cache system Need data, then after directly downloading from the Memcached distributed memories target cache system user requested data, The operation method of building is further included:
The use that the Memcached distributed memories target cache system is downloaded to the Weblogic application servers The effective storage life of data needed for family is updated.
By with upper type, after from Memcached distributed memory target cache certain resource data of system downloads, Memcached distributed memory target caches system can be adjusted to the effective storage life of the resource data, suitably will Effective storage life is delayed, and to ensure to be deleted utilization rate resource data higher, meets the download demand of user. For example after user has downloaded 1 file A, the effective storage life of file A is delayed 1 day, file A is downloaded when there is user again Afterwards, then by the effective storage life of file A delay 1 day.Delay that number of times is more, the probability that supporting paper A is downloaded is bigger, lead to Cross delay the mode of effective storage life ensure download rate file higher can be in Memcached distributed memory target caches The long period is stored in system, is downloaded with user friendly quick search.
Embodiment 2
Shown in Figure 2 is a kind of herein described specific embodiment of load balancing mesh architecture, and the system includes:If Dry platform Weblogic application servers 10, at least one Memcached distributed memory target caches system 20 and at least two Nginx loaded servers 30, wherein,
The some some Weblogic application servers 10, are respectively mounted some computers in a network On, the normal independent operating on every computer;
At least one Memcached distributed memories target cache system 20, builds another meter in a network On calculation machine, Weblogic applications described with some take each Memcached distributed memories target cache system 20 respectively Business device 10 is associated so that each Weblogic application servers 10 pass through the Memcached distributed memories target cache System 20 realizes that session is shared;
At least two Nginx loaded servers 30, are respectively mounted at least two computers in a network, every calculating Nginx loaded servers 30 on machine are associated with each Weblogic application servers 10 respectively;
The Nginx loaded servers 30, the data access request for receiving user, and by the data access request Send to any one Weblogic application server 10;
The Weblogic application servers 10, for according to the data access request, judging the Memcached points Whether user requested data, if the Memcached distributed memories object if being stored with cloth memory object caching system 20 Be stored with the user requested data in caching system 20, then directly from the Memcached distributed memories target cache system The user requested data is downloaded in system 20, and user is sent to by Nginx loaded servers 30;Otherwise, then from database It is middle to download the user requested data and user is sent to by Nginx loaded servers 30, and by the user requested data Store into the Memcached distributed memories target cache system 20.
In load balancing mesh architecture provided by the present invention, several Weblogic application servers 10 form a clothes Business device application cluster 11.
In load balancing mesh architecture provided by the present invention, multiple Nginx loaded servers 30 are simultaneously multiple Weblogic application servers 10 are serviced, using " multi-to-multi " model, one Nginx loaded server 30 of any of which or The failure of Weblogic application servers 10 is normally run all without traffic affecting, and high concurrent access can be diverted into each should Processed with server 10, it is to avoid multi-service concentrates on the phenomenon that some application server 10 causes overload.
Additionally, the application realizes that multiple Weblogic are applied by Memcached distributed memory target caches system 20 The session of server 10 is shared, it is ensured that even if wherein certain failure of Weblogic application servers 10, and business still is able to smooth transfer Other normal servers are without influence user regular traffic operation.
Weblogic application servers 10 in the application, are further used for:According in the data access request SessionID, inquired about from the Memcached distributed memories target cache system 20 whether be stored with it is identical The data of SessionID, if being stored with identical SessionID in the Memcached distributed memories target cache system 20 Data, then the data of the identical SessionID be the user requested data;If the Memcached distributed memories Be not stored with the data of identical SessionID in target cache system 20, then represent the Memcached distributed memories object Be not stored with the user requested data in caching system 20.
In view of when the data access request of user is received, if inquired about from lane database, downloaded every time, due to The content of database purchase is huge, and query process will be consumed for a long time, first receive the data access request of user And from lane database inquire user needed for after data, user requested data is stored the application Memcached distributions in the lump In formula memory object caching system 20.After user is received again by the data access request of data needed for the user, then can be first Memcached distributed memory target caches system 20 is first inquired about, then directly from Memcached distributed memory target caches Data needed for the download user of system 20, dramatically saves on the time consumed from data base querying, effectively improves data and looks into Ask efficiency.
Memcached distributed memory target caches system 20 in the application, for receiving user requested data Afterwards, the effective storage life of received user requested data is set so that described in the effective storage life Weblogic application servers 10 directly can be downloaded described from the Memcached distributed memories target cache system 20 User requested data.
Memcached distributed memory target caches system 20 in the application, is further used in the Memcached It is described after the effective storage life of the user requested data stored in distributed memory target cache system 20 is reached Memcached distributed memory target caches system 20 judges that corresponding user requested data is fail data, and by the mistake Effect data are deleted.
Through the above way, the resource stored in Memcached distributed memory target caches system 20 is filtered, Resource data to failing is deleted, so as to advantageously ensure that the fortune of Memcached distributed memory target caches system 20 Scanning frequency degree, such mode is played a significant role to the overall efficiency data query of lifting.
Memcached distributed memory target caches system 20 in the application, is further used in the Weblogic Application server 10 is downloaded after user requested data from the Memcached distributed memories target cache system 20, right The effective storage life of the user requested data that the Weblogic application servers 10 are downloaded is updated.
By with upper type, after certain resource data is downloaded from Memcached distributed memory target caches system 20, Memcached distributed memory target caches system 20 can be adjusted to the effective storage life of the resource data, suitably Effective storage life is delayed, to ensure to be deleted utilization rate resource data higher, the download need of user is met Ask.For example after user has downloaded 1 file B, the effective storage life of file B is delayed 1 day, file is downloaded when there is user again After B, then the effective storage life of file B is delayed 2 days.Delay that number of times is more, the probability that supporting paper A is downloaded is bigger, It is more that effective storage life is extended.Ensure that download rate file higher can be by way of delaying effective storage life The long period is stored in Memcached distributed memory target caches system 20, so that user friendly quick search is downloaded.
In the application, after user downloads once certain file, the extended range to the effective storage life of this document can be certainly Row is flexibly set, for example, can be set to extend the identical time every time, and it is more to be also set to download time, and the extension time is incremented by etc. Deng.
Embodiment 3
A kind of Application Example of load balancing mesh architecture of the present invention presented below, specifically includes:
Step 201, Nginx loaded servers receive the data access request of user, and the data access request is sent out Deliver to any one Weblogic application server;
The SessionID of step 202, the Weblogic application servers in the data access request, from institute State the data that whether the identical SessionID that is stored with is inquired about in Memcached distributed memory target cache systems;
If being stored with identical SessionID's in step 203, the Memcached distributed memories target cache system Data, then the data of the identical SessionID are the user requested data, and the user requested data is sent into use Family;
If not being stored with identical SessionID in step 204, the Memcached distributed memories target cache system Data, then Weblogic application servers the user requested data is downloaded from database and by Nginx load services Device is sent to user;
Step 205, Weblogic application servers by from database download user requested data send to In Memcached distributed memory target cache systems;
The user requested data that step 206, Memcached distributed memory target cache system dockings are received sets effective Use time;
Step 207, Memcached distributed memory target cache systems will be stored when data download request is received Corresponding data wherein is sent to Weblogic application servers, and extends the effective storage life of corresponding data;
Step 208, Memcached distributed memory target caches system judge whether each item data being stored therein arrives Up to data effective time, if reaching, then it is assumed that data failure, and fail data is deleted.
By various embodiments above, the beneficial effect that the application is present is:
First, load balancing mesh architecture provided by the present invention and its operation method is built, multiple Nginx load services Device is serviced for multiple Weblogic application servers simultaneously, using " multi-to-multi " model, one Nginx load services of any of which Device or Weblogic application server failures are normally run all without traffic affecting, can access high concurrent and be diverted to each Application server processes, it is to avoid multi-service concentrates on the phenomenon that some application server causes overload.
Second, load balancing mesh architecture provided by the present invention and its operation method is built, it is distributed by Memcached Formula memory object caching system realizes that the session of multiple Weblogic application servers is shared, it is ensured that even if wherein certain Weblogic Application server failure, business still is able to smooth other normal servers of transferring without influence user regular traffic operation.
3rd, load balancing mesh architecture provided by the present invention and its build operation method, Memcached is distributed User requested data is stored in memory object caching system, in user's request corresponding data, can directly from Memcached points Cloth memory object caching system is downloaded, it is to avoid time defect long is expended when being downloaded from database, and Memcached divides User requested data that cloth memory object caching system can also be stored to it sets effective time limit, when beyond set it is effective when Between when, automatic invalid data can be deleted, internal memory is effectively saved, so as to be conducive to improving Memcached distributed memories The speed of service of target cache system.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, device or computer program Product.Therefore, the application can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.And, the application can be used and wherein include the computer of computer usable program code at one or more The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) is produced The form of product.
Described above has shown and described some preferred embodiments of the application, but as previously described, it should be understood that the application Be not limited to form disclosed herein, be not to be taken as the exclusion to other embodiment, and can be used for various other combinations, Modification and environment, and can be in invention contemplated scope described herein, by above-mentioned teaching or the technology or knowledge of association area It is modified.And the change and change that those skilled in the art are carried out do not depart from spirit and scope, then all should be in this Shen Please be in the protection domain of appended claims.

Claims (10)

1. a kind of load balancing mesh architecture builds operation method, it is characterised in that including:
Some computers in network are chosen, Weblogic application servers are respectively mounted on some computers, And be on every computer Weblogic application servers difference disposing application program so that on every computer Weblogic application servers being capable of normal independent operating;
Select at least one computer else in the network, build Memcached distributions respectively on each computer of selection Formula memory object caching system;
By the Weblogic application servers on some computers respectively with the Memcached distributed memories object Caching system is associated so that each Weblogic application servers pass through the Memcached distributed memories target cache System realizes that session is shared;
At least two computers of selection are respectively mounted Nginx loaded servers in addition in the networking;
Nginx loaded servers and the mapping relations of each Weblogic application servers on every computer of configuration, make The Nginx loaded servers obtained on every computer are associated with each Weblogic application servers respectively;
The Nginx loaded servers receive the data access request of user, and the data access request is sent to any One Weblogic application server;
The Weblogic application servers judge the Memcached distributed memories pair according to the data access request As the user requested data that whether is stored with caching system, if being deposited in the Memcached distributed memories target cache system The user requested data is contained, then directly downloads the use from the Memcached distributed memories target cache system Data needed for family, and user is sent to by Nginx loaded servers;Otherwise, then needed for downloading from database the user Data are simultaneously sent to user, and the user requested data is stored to the Memcached points by Nginx loaded servers In cloth memory object caching system.
2. load balancing mesh architecture builds operation method according to claim 1, it is characterised in that the Weblogic Application server according to the data access request, judge in the Memcached distributed memories target cache system whether Be stored with user requested data, further for:
SessionID of the Weblogic application servers in the data access request, from the Memcached points Whether the data of the identical SessionID that is stored with are inquired about in cloth memory object caching system, if the Memcached is distributed Be stored with the data of identical SessionID in memory object caching system, then the data of the identical SessionID are the use Data needed for family;If the number of the identical SessionID that is not stored with the Memcached distributed memories target cache system According to then representing and be not stored with the Memcached distributed memories target cache system user requested data.
3. load balancing mesh architecture builds operation method according to claim 1, it is characterised in that by the user After in required data storage to the Memcached distributed memories target cache system, the operation method of building enters one Step includes:
The Memcached distributed memories target cache system sets when effectively using of received user requested data Between so that in the effective storage life, the Weblogic application servers directly can be distributed from the Memcached The user requested data is downloaded in formula memory object caching system.
4. load balancing mesh architecture builds operation method according to claim 3, it is characterised in that described It is described after the effective storage life of the user requested data stored in Memcached distributed memory target cache systems is reached Memcached distributed memory target cache systems judge that corresponding user requested data is fail data, and by the failure Data are deleted.
5. load balancing mesh architecture builds operation method according to claim 1, it is characterised in that if described Be stored with the user requested data in Memcached distributed memory target cache systems, then directly from the Memcached Downloaded in distributed memory target cache system after the user requested data, the operation method of building is further included:
The user institute that the Memcached distributed memories target cache system is downloaded to the Weblogic application servers The effective storage life of data is needed to be updated.
6. a kind of load balancing mesh architecture, including:Some Weblogic application servers, at least one Memcached divide Cloth memory object caching system and at least two Nginx loaded servers, wherein,
The some some Weblogic application servers, are respectively mounted on some computers in a network, every Normal independent operating on platform computer;
At least one Memcached distributed memories target cache system, builds on another computer in a network, Weblogic application servers described with some are associated each Memcached distributed memories target cache system respectively, So that each Weblogic application servers realize that session is total to by the Memcached distributed memories target cache system Enjoy;
At least two Nginx loaded servers, are respectively mounted at least two computers in a network, on every computer Nginx loaded servers are associated with each Weblogic application servers respectively;
The Nginx loaded servers, the data access request for receiving user, and by the data access request send to Any one Weblogic application server;
The Weblogic application servers, according to the data access request, judging that the Memcached is distributed Deposit and whether be stored with target cache system user requested data, if the Memcached distributed memories target cache system In be stored with the user requested data, then directly download institute from the Memcached distributed memories target cache system User requested data is stated, and user is sent to by Nginx loaded servers;Otherwise, then the user is downloaded from database Required data are simultaneously sent to user by Nginx loaded servers, and the user requested data is stored to described In Memcached distributed memory target cache systems.
7. load balancing mesh architecture according to claim 6, it is characterised in that the Weblogic application servers, enters One step is used for:According to the SessionID in the data access request, from the Memcached distributed memories target cache Whether the data of the identical SessionID that is stored with are inquired about in system, if the Memcached distributed memories target cache system In be stored with the data of identical SessionID, then the data of the identical SessionID are the user requested data;If institute The data of the identical SessionID that is not stored with Memcached distributed memory target cache systems are stated, is then represented described Be not stored with the user requested data in Memcached distributed memory target cache systems.
8. load balancing mesh architecture according to claim 6, it is characterised in that the Memcached distributed memories pair As caching system, for after user requested data is received, setting when effectively using of received user requested data Between so that in the effective storage life, the Weblogic application servers directly can be distributed from the Memcached The user requested data is downloaded in formula memory object caching system.
9. load balancing mesh architecture according to claim 8, it is characterised in that the Memcached distributed memories pair As caching system, it is further used for number needed for the user stored in the Memcached distributed memories target cache system According to effective storage life reach after, the Memcached distributed memories target cache system is judged needed for corresponding user Data are fail data, and the fail data is deleted.
10. load balancing mesh architecture according to claim 6, it is characterised in that the Memcached distributed memories pair As caching system, it is further used for slow from the Memcached distributed memories object in the Weblogic application servers Downloaded in deposit system after user requested data, the user requested data downloaded to the Weblogic application servers has Effect use time is updated.
CN201710051772.1A 2017-01-20 2017-01-20 Load balancing mesh architecture and its build operation method Pending CN106790666A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710051772.1A CN106790666A (en) 2017-01-20 2017-01-20 Load balancing mesh architecture and its build operation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710051772.1A CN106790666A (en) 2017-01-20 2017-01-20 Load balancing mesh architecture and its build operation method

Publications (1)

Publication Number Publication Date
CN106790666A true CN106790666A (en) 2017-05-31

Family

ID=58941809

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710051772.1A Pending CN106790666A (en) 2017-01-20 2017-01-20 Load balancing mesh architecture and its build operation method

Country Status (1)

Country Link
CN (1) CN106790666A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109165078A (en) * 2018-07-12 2019-01-08 厦门中控智慧信息技术有限公司 A kind of virtual distributed server and its access method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523234A (en) * 2011-12-29 2012-06-27 山东中创软件工程股份有限公司 Implementation method and system for clustering of application servers
US20140040478A1 (en) * 2000-09-26 2014-02-06 Brocade Communications Systems, Inc. Global server load balancing
CN103595761A (en) * 2013-10-15 2014-02-19 北京航空航天大学 Data processing method based on distributed file system and server
CN104331444A (en) * 2014-10-27 2015-02-04 北京京东尚科信息技术有限公司 Method and device for protecting database
CN104618508A (en) * 2015-02-26 2015-05-13 浪潮电子信息产业股份有限公司 Load balancing net framework based on Nginx, Memcached and Tomcat
CN104780221A (en) * 2015-04-29 2015-07-15 温州中普知识产权有限公司 Intellectual property comprehensive service platform system for middle and small-sized enterprises
CN105635196A (en) * 2014-10-27 2016-06-01 中国电信股份有限公司 Method and system of file data obtaining, and application server

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140040478A1 (en) * 2000-09-26 2014-02-06 Brocade Communications Systems, Inc. Global server load balancing
CN102523234A (en) * 2011-12-29 2012-06-27 山东中创软件工程股份有限公司 Implementation method and system for clustering of application servers
CN103595761A (en) * 2013-10-15 2014-02-19 北京航空航天大学 Data processing method based on distributed file system and server
CN104331444A (en) * 2014-10-27 2015-02-04 北京京东尚科信息技术有限公司 Method and device for protecting database
CN105635196A (en) * 2014-10-27 2016-06-01 中国电信股份有限公司 Method and system of file data obtaining, and application server
CN104618508A (en) * 2015-02-26 2015-05-13 浪潮电子信息产业股份有限公司 Load balancing net framework based on Nginx, Memcached and Tomcat
CN104780221A (en) * 2015-04-29 2015-07-15 温州中普知识产权有限公司 Intellectual property comprehensive service platform system for middle and small-sized enterprises

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109165078A (en) * 2018-07-12 2019-01-08 厦门中控智慧信息技术有限公司 A kind of virtual distributed server and its access method
CN109165078B (en) * 2018-07-12 2020-12-04 厦门熵基科技有限公司 Virtual distributed server and access method thereof

Similar Documents

Publication Publication Date Title
CN113596110B (en) Cloud primary micro-service platform oriented to heterogeneous cloud
US7237239B1 (en) Availability and consistent service semantics in a load balanced collection of services running different instances of an application
EP3249545B1 (en) Content delivery network
KR101947851B1 (en) Smb2 scaleout
CN104054316B (en) Systems and methods for conducting load balancing on SMS center and building virtual private network
US10146848B2 (en) Systems and methods for autonomous, scalable, and distributed database management
CN106663033B (en) System and method for supporting a wraparound domain and proxy model and updating service information for cross-domain messaging in a transactional middleware machine environment
US20110153953A1 (en) Systems and methods for managing large cache services in a multi-core system
US9552326B2 (en) Cache system and cache service providing method using network switch
US9390156B2 (en) Distributed directory environment using clustered LDAP servers
WO2019100266A1 (en) Mobile edge host-machine service notification method and apparatus
US11853806B2 (en) Cloud computing platform that executes third-party code in a distributed cloud computing network and uses a distributed data store
CN103248670A (en) Connection management in a computer networking environment
JP2016051446A (en) Calculator system, calculator, and load dispersing method and program
US9760370B2 (en) Load balancing using predictable state partitioning
US9736082B2 (en) Intelligent high-volume cloud application programming interface request caching
CN113079098B (en) Method, device, equipment and computer readable medium for updating route
CN113110800A (en) Data processing method and device, electronic equipment and storage medium
CN106790666A (en) Load balancing mesh architecture and its build operation method
CN113783914A (en) Data processing method, device and equipment
CN114827177B (en) Deployment method and device of distributed file system and electronic equipment
US10791088B1 (en) Methods for disaggregating subscribers via DHCP address translation and devices thereof
US20180107504A1 (en) Setting method for server apparatus and server apparatus
US11652746B1 (en) Resilient consistent hashing for a distributed cache
CN110493891A (en) Resource allocation methods, apparatus and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170531