load-balancing

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

情到浓时终转凉″ 提交于 2019-11-27 05:22: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 nodes. I am sharing my mod_cluster.conf and JBoss standalone-ha.xml extracts from one of the nodes in

Proxying WebSockets with TCP load balancer without sticky sessions

穿精又带淫゛_ 提交于 2019-11-27 05:21:56
问题 I want to proxy WebSocket connections to multiple node.js servers using Amazon Elastic Load Balancer. Since Amazon ELB does not provide actual WebSocket support, I would need to use its vanilla TCP messaging. However, I'm trying to understand how this would work without some sort of sticky session functionality. I understand that WebSockets work by first sending an HTTP Upgrade request from the client, which is handled by the server by sending a response which correctly handles key

How to force node.js/express.js to HTTPS when it is running behind an AWS load balancer

北城余情 提交于 2019-11-27 04:12:22
问题 I'm running a node/express service on AWS and have deployed an ELB in front of it. When I spin up an ELB instance with SSL enabled, it works for the first page I hit, but then switches over to HTTP for every server access after that. The routing rule on the ELB terminates the SSL and forwards to port 8080 which node is listening on. The SSL termination solution will work fine for my purposes, but how can I keep subsequent server calls on HTTPS? 回答1: I have experienced the same issue, but in a

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

十年热恋 提交于 2019-11-27 04:03:31
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 to MySQL server at 'reading authorization packet', system error: 0 Any ideas? Update on my progress : ZERO

Nginx TCP forwarding based on hostname

喜你入骨 提交于 2019-11-27 02:49:44
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'd be grateful. Related question on ServerFault: Can a Reverse Proxy use SNI with SSL pass through?

PHP sessions in a load balancing cluster - how?

我是研究僧i 提交于 2019-11-27 02:46:10
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 the session he created on the first one. Now, I've been reading PHP manual on how to solve this situation.

GWT load testing with jmeter

泪湿孤枕 提交于 2019-11-27 01:58:24
问题 I have a GWT application and wanna to test load and functionality using a tool like jmeter. I am not sure jmeter is right tool for GWT. Can anybody direct me to proper tool or can tell me how to do it with jmeter? I want to test login functionality: I have two text box 'User name' and 'Password' on login screen and want to test how many users can log in simultaneously, how much time a round trip to server it takes. Don't know how jmeter can get 'user name' and 'password' and can submit it to

Load Balancing (HAProxy or other) - Sticky Sessions

感情迁移 提交于 2019-11-26 22:46:18
问题 I'm working on scaling out my app to multiple servers, and one requirement is that a client is always communicating with the same server (too much live data is used to allow bouncing between servers efficiently). My current setup is a small server cluster (using Linode). I have a frontend node running HAProxy using "balance source" so that an IP is always pointed towards the same node. I'm noticing that "balance source" is not a very even distribution. With my current test setup (2 backend

Haproxy route and rewrite based on URI path

烂漫一生 提交于 2019-11-26 20:26:05
问题 I am trying to setup an Haproxy to load balance requests on a few backends identified by the uri path. For example: https://www.example.com/v1/catalog/foo/bar Should lead to the "catalog-v1" backends. Thing is each app responds on a different path so I must not only identify the app but rewrite the URL path. E.g. https://www.example.com/v1/catalog/product https://www.example.com/v2-2/checkout/cart/123 https://www.example.com/v3.1.2/checkout/cart TO https://www.example.com/catalog-v1/product

How to redirect to HTTPS with .htaccess on Heroku Cedar stack

僤鯓⒐⒋嵵緔 提交于 2019-11-26 20:24:37
问题 I'm new to cloud hosting... I'm working on a PHP web app that's hosted on Heroku as a "Cedar" app. Heroku offers "piggy back" SSL to all their subdomains, so I can load https://myapp.herokuapp.com just fine. But I can also load http://myapp.herokuapp.com . I want to force SSL by redirecting http requests to https . Normally, this would be easy. I would just use mod_rewrite as follows: RewriteCond %{HTTPS} != on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] BUT THIS DOESNT WORK ON