load-balancing

How to configure same context applications to use different machines with ModCluster and Wildfly10

北城余情 提交于 2019-12-03 22:45:53
I'm trying to use ModCluster to load balance some servers. We have one single EAR that need to be load balanced by different DNSs. We have this scenario. We need to maintain the same context 'system1' because of backward compatibility 4 servers for urla.com.br/system1/ 2 servers for urlb.com.br/system1/ Using Wildfly 10.1.0 in domain mode, they are separated by two server groups: URLA and URLB . They share the same profile (URL-HA) and socket bindings (URL-HA-SOCKET). I have an Apache with mod_cluster with a minimal configuration. LoadModule cluster_slotmem_module modules/mod_cluster_slotmem

Apache load balance tomcat websocket

筅森魡賤 提交于 2019-12-03 21:38:11
问题 I am currently developing a websocket application, which is deployed on a Tomcat server. Because of the huge number of users I would like to distribute the workload to multiple Tomcat instances. I decided to use Apache for load balancing. Now I have a problem with the implementation of Apache load balancing and sticky session for websockets requests. This is my Apache configuration: ProxyRequests off SSLProxyEngine on RewriteEngine On <Proxy balancer://http-localhost/> BalancerMember https:/

MongoDB load balancing and failover of query routers

本秂侑毒 提交于 2019-12-03 21:37:51
I'm wondering how load balacing and failover between client and query routers work in MongoDB. I haven't found any matching documentation so far. Everyone says it's not relevant and I don't think so. Every piece of software / hardware can die and there'll be always a reason why you can't bring it up immediately again. The situation is very simple. Assuming a usual setup with sharded replicat sets, a client connects to a query router and performs operations. What happens if the query router dies? Is there an intended way for automatic failover to a second query router? Or for load balancing

One domain name “load balanced” over multiple regions in Google Compute Engine

对着背影说爱祢 提交于 2019-12-03 20:25:16
I have service running on Google Compute Engine. I've got few instances in Europe in a target pool and few instances in US in a target pool. At the moment I have a domain name, which is hooked up to the Europe target pool IP, and can load balance between those two instances very nicely. Now, can I configure the Compute Engine Load Balancer so that the one domain name is connected to both regions? All load balancing rules seem to be related to a single region, and I don't know how I could get all the instances involved. Thanks! You can point one domain name (A record) at multiple IP addresses,

AWS Load Balancer with a static IP address

自闭症网瘾萝莉.ら 提交于 2019-12-03 18:38:11
问题 I have a set-up running on Amazon cloud with a couple of EC2 Instances running through a load balancer. It is important that the site has a unique(static) IP or set of IPs as I'm plugging in 3rd party APIs which only accept requests made from IPs which have been added to their whitelist. So basically unless we can give these 3rd parties a static IP or range of IPs that the requests from the site will always come from then we would be unable to make any calls to them. Anyone knows how to

Determine IP Address of Client Behind Amazon ELB

Deadly 提交于 2019-12-03 15:24:34
问题 We have some PHP servers on EC2 behind ELB. We would like to determine the locale/region by IP address of the clients connecting to our servers. The problem is the PHP servers only see the IP address of the ELB. We would like to see the IP addresses of the clients passed through the ELB. 回答1: According to the AWS docs, the ELB should be setting the 'X-Forwarded-For' HTTP header which preserves the original client ip address: The X-Forwarded-For request header helps you identify the IP address

Deploying multiple Grails instances with shared cache and sessions?

牧云@^-^@ 提交于 2019-12-03 14:58:19
I am looking for a solution that allows me to deploy multiple load balanced Grails instances that have shared cache (EhCache Server ?) and sessions, is this possible ? I can't find any documentation on this (connecting to a common EhCache server or using Distributed EhCache, and sharing sessions (using EhCache too ?))... I'm looking for something that will work like multiple Rails instances with a common memcached and sessions/caches stored in the memcached... I was recently listening to a talk by Dave Klein , author of the book "Grails: A Quick Start Guide", and Mike Allen, Product Managemer

Load blancing MQTT broker

☆樱花仙子☆ 提交于 2019-12-03 13:38:33
问题 Is it possible to load balance MQTT broker? Can I use ELB to load balance MQTT? Any pointers in this direction would be helpful. I hit upon http://www.slideshare.net/kellogh/mqtt-kafka-33100776 but it did not help much. 回答1: Use HAProxy . A free, fast and reliable solution offering high availability, load balancing and proxying for TCP and HTTP based applications. It’s suited for very high traffic web sites. 回答2: Load balancing MQTT brokers is not supported out-of-the-box by most MQTT brokers

Load balancing error with WCF service - NLB

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 13:36:33
问题 UPDATE 3: I created a Visual Studio 2008 test project and tried to create a service reference to shared site WCF service reference and received the following error: There was an error downloading 'http://apps.mydomain/MyService.svc'. The request failed with HTTP status 400: Bad Request. Metadata contains a reference that cannot be resolved: 'http://apps.mydomain/MyService.svc'. Content Type application/soap+xml; charset=utf-8 was not supported by service http://apps.mydomain/MyService.svc'.

Load balancing since Node v0.12.2 - cluster, pm2 or nginx

自闭症网瘾萝莉.ら 提交于 2019-12-03 13:08:14
问题 With Node v0.12.2, the cluster module supports Round-Robin (RR) load balancing, which ensures load is more evenly distributed than the previous OS-level load balancing. So now we are spoilt for choice: Use the cluster module Use pm2 which uses the cluster module under the hood Use nginx Use HAProxy I am aware of this excellent post as well as other answers here on SO, but none have addressed the newer Cluster module with RR mode. So the question boils down to: Judging only on their load