load-balancing

Pros and Cons of Sticky Session / Session Affinity load blancing strategy?

ε祈祈猫儿з 提交于 2019-11-26 18:47:56
问题 One approach to high scalability is to use network load balancing to split processing load between several servers. One challenge that this approach presents is where servers are state aware - storing user state in a "session". One solution to this problem is "sticky session" (aka "session affinity") where each user is assigned to a single server and his/her state data is contained on that server exclusively throughout the duration of the session. What are the Pros and Cons of the "sticky

Difference between session affinity and sticky session?

会有一股神秘感。 提交于 2019-11-26 18:45:42
问题 What is the difference between session affinity and sticky session in context of load balancing servers? 回答1: I've seen those terms used interchangeably, but there are different ways of implementing it: Send a cookie on the first response and then look for it on subsequent ones. The cookie says which real server to send to. Bad if you have to support cookie-less browsers Partition based on the requester's IP address. Bad if it isn't static or if many come in through the same proxy. If you

What is the best library for Java to grid/cluster-enable your application? [closed]

↘锁芯ラ 提交于 2019-11-26 18:21:41
This is the ability to run your application on a cluster of servers with the intent to distribute the load and also provide additional redundancy. I've seen a presentation for GridGain and I was very impressed with it. Know of any others? There are several: Terracotta ( open source, based on Mozilla Public License ); Oracle Coherence (formerly Tangosol Coherence; commercial; based on JSR 107 , which was never adopted officially); GigaSpaces (commercial; based on JavaSpaces API , part of Jini ); GridGain , which you mentioned (open source: LGPL ); memcached with a Java client library (open

What is the best way to handle sessions for a PHP site on multiple hosts? [closed]

狂风中的少年 提交于 2019-11-26 16:00:00
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 2 years ago . PHP stores its session information on the file system of the host of the server establishing that session. In a multiple-host PHP environment, where load is unintelligently distributed amongst each host, PHP session variables are not available to each request (unless by

Adding machineKey to web.config on web-farm sites

南楼画角 提交于 2019-11-26 15:20:47
We (our IT partner really) recently changed some DNS for a web farmed site we have, so that the two production server have round-robin DNS switching between them. Prior to this switch we didn't really have problems with WebResource.axd files. Since the switch, when we hit the live public URL, we get an error: CryptographicException Padding is invalid and cannot be removed. When we hit the specific servers themselves, they load fine. I've researched the issue and it seems since they're sharing assets between two servers, we need to have a consistent machineKey in the web.config for each server

ERROR 2013 (HY000): Lost connection to MySQL server at 'reading authorization packet', system error: 0

懵懂的女人 提交于 2019-11-26 12:41:18
问题 I am getting the following error ERROR 2013 (HY000): Lost connection to MySQL server at \'reading authorization packet\', system error: 0 when trying to connect to my MySQL server. What I am doing: I have Master - Slave replication in MySQL that is working and just added load balance capabilities using F5. I have configured the F5 according to their site. But when I am trying to connect to my MySQL server using the IP that the F5 was configured with I get ERROR 2013 (HY000): Lost connection

How can I use Spring Security without sessions?

拟墨画扇 提交于 2019-11-26 11:46:59
问题 I am building a web application with Spring Security that will live on Amazon EC2 and use Amazon\'s Elastic Load Balancers. Unfortunately, ELB does not support sticky sessions, so I need to ensure my application works properly without sessions. So far, I have setup RememberMeServices to assign a token via a cookie, and this works fine, but I want the cookie to expire with the browser session (e.g. when the browser closes). I have to imagine I\'m not the first one to want to use Spring

Load Balancing Cluster not working with Apache HTTP Server 2.4.6 and JBoss EAP 7

旧巷老猫 提交于 2019-11-26 11:34:12
问题 I am certifying my application on JBoss EAP 7. My application works on standalone mode but in cluster mode, my application gets deployed but I am unable to login. I am again re-routed to login url. I have setup cluster using mod_cluster. There is no error log in Load Balancer Server logs neither on individual nodes of the cluster. In my test environment, my load balancer and 2 server nodes are on same machine. I have given JBoss nodes different ports and instance-ids to differentiate the

PHP sessions in a load balancing cluster - how?

蹲街弑〆低调 提交于 2019-11-26 10:14:41
问题 OK, so I\'ve got this totally rare an unique scenario of a load balanced PHP website. The bummer is - it didn\'t used to be load balanced. Now we\'re starting to get issues... Currently the only issue is with PHP sessions. Naturally nobody thought of this issue at first so the PHP session configuration was left at its defaults. Thus both servers have their own little stash of session files, and woe is the user who gets the next request thrown to the other server, because that doesn\'t have

Nginx TCP forwarding based on hostname

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-26 08:47:57
问题 With the release of TCP load balancing for the Nginx community version, I would like to mix OpenVPN and SSL pass-through data. The only way for Nginx to know how to route the traffic is via their domain name. vpn1.app.com ─┬─► nginx at 10.0.0.1 ─┬─► vpn1 at 10.0.0.3 vpn2.app.com ─┤ ├─► vpn2 at 10.0.0.4 https.app.com ─┘ └─► https at 10.0.0.5 I have taken a look at the TCP guides and the module documentation, but it doesn\'t seem well referenced. If anyone can point me to the right direction, i