load-balancing

BizTalk server problem

心不动则不痛 提交于 2019-12-06 22:40:30
问题 we have a biztalk server (a virtual one (1!)...) at our company, and an sql server where the data is being kept. Now we have a lot of data traffic. I'm talking about hundred of thousands. So I'm actually not even sure if one server is pretty safe, but our company is not that easy to convince. Now recently we have a lot of problems. Allow me to situate in detail, so I'm not missing anything: Our server has 5 applications: One with 3 orchestrations, 12 send ports, 16 receive locations. One with

Google Load-balancer randomly failing requests to backend

99封情书 提交于 2019-12-06 15:37:11
I had done simple setup: Backend(website): 1 machine having tomcat installed and serving on 8080. webapps folder of tomcat has two folder 1 withGoogleRule1 |--test.html 2 withoutGoogleRule1 |--test.html Now i have a google-load-balancer setup with below settings Now Backend machine direct ip is http://104.197.37.171:8080/withoutGoogleRule1/test.html Load Balancer url is http://107.178.240.39:8080/withoutGoogleRule1/test.html PROBLEM: No matter how many time we refresh url for direct machine, all requests always servers correctly. But if you access url using load balancer 1 out of 5 time it

HTTP Load Balancing - rdirect only if first worker fails using mod_jk

只愿长相守 提交于 2019-12-06 15:18:44
I have used Apache HTTPD mod_jk and Tomcat for a high availability solution. Here is the workers.properties for it. worker.list=myworker worker.myworker1.port=8009 worker.myworker1.host=host1 worker.myworker1.type=ajp13 worker.myworker1.lbfactor=1 worker.myworker2.port=8009 worker.myworker2.host=host2 worker.myworker2.type=ajp13 worker.myworker2.lbfactor=1 worker.myworker.type=lb worker.myworker.balance_workers=myworker1,myworker2 worker.myworker.sticky_session=True Right now, the requests are equally distributed among the workers and applications are working fine. What I want is, all the

Tomcat 7 Load Balancing

孤人 提交于 2019-12-06 15:05:23
Looking to implement Load balancing for two Tomcat 7 instances each on a different machine & two other Tomcat 7 instances on a different machine serving two different purpose. On Machine 1, will have two Tomcat instances TomA.1 & TomB.1 running on different ports On Machine2, will have two Tomcat instances TomA.2 & TomB.2 running on different ports Now TomA.1 & TomA.2 needs to be run in LoadBalanced fashion & similarily TomB.1 & TomB.2 needs to be run in LoadBalanced fashion. Would highly appreciate if anyone can point to the best practices & which Apache module to use as a load balancer. Mod

Route traffic to multiple node servers based on a condition

寵の児 提交于 2019-12-06 13:24:04
I'm coding an online multiplayer game using nodejs and HTML5 and I'm at the point where I would like to have multiple maps for people to play on, but I'm having a scaling issue. The server I'm running this on isn't able to support the game loops for more than a few maps on its own, and even though it has 4 cores I can only utilize one with a single node process. I'd like to be able to scale this to not even necessarily be limited to a single server. I'd like to be able to start up a node process for each map in the game, then have a master process that looks up what map a player is in and

Session affinity on load balancer

为君一笑 提交于 2019-12-06 12:14:42
问题 We have a situation, where we are talking to a set of app servers(B) directly from another application(A). Since both are within the same SAN, we are making the httpClient Call directly connecting to application servers(from A to B) . For scaling purposes, we have put a load balancer in between(httpclient requests from A to B), but we want to make the subsequent requests goto same JVM on application(B). Hence we are looking if we can configure session affinity on load balancer, if you have

Should swarm loadbalancing perform healthchecks on its nodes?

六眼飞鱼酱① 提交于 2019-12-06 11:42:02
问题 The Load Balancing section in the swarm docs don't make it clear if the internal loadbalancer also does health checks, and if it removes nodes that aren't running the service anymore (because it got killed or the node got rebooted). In the following case I've got a service with replicas 3, 1 instance running on each of the 3 nodes. Manager: [root@centosvm ~]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES a593d485050a ddewaele/springboot.crud.sample:latest "sh -c 'java $JAVA

Load Balancing, AJAX, and You

拜拜、爱过 提交于 2019-12-06 10:05:28
If you were an asynchronous javascript call in an Asp.Net MVC environment, and you had to work with a round-robin style of load balancer, would you be able to find your way home? edit: adding clarification ..using in-memory session state. I'd configure my load balancer with stickey sessions to avoid this problem. With sticky sessions, you'll be directed to the same server over and over again during the session. If your application is stateless, it shouldn't matter. Whether a standard HTTP request or Ajax based request to your server, if your application does not rely on server side state (such

load-balancing in R foreach loops

怎甘沉沦 提交于 2019-12-06 09:49:12
Is there a way to modify how R foreach loop does load balancing with doParallel backend ? When parallelizing tasks that have very different execution time, it can happen all nodes but one have finished their tasks while the last one still have several tasks to do. Here is a toy example: library(foreach) library(doParallel) registerDoParallel(4) waittime = c(10,1,1,1,10,1,1,1,10,1,1,1,10,1,1,1) w = iter(waittime) foreach(i=w) %dopar% { message(paste("waiting",i, "on",Sys.getpid())) Sys.sleep(i) } Basically, the code register 4 cores. For each loop i , the task is to wait for waittime[i] seconds

HTTP_HOST not found behind load balancer on EC2

我怕爱的太早我们不能终老 提交于 2019-12-06 08:26:30
In some requests the $_SERVER['HTTP_HOST'] not exists. I researched on the causes and now I know that this occurs on HTTP 1.0 requests. I have 4 domains in many machines behind a load balancer on AWS EC2 and I don't have a idea how to solve this problem. This is important, because is a business rule. 来源: https://stackoverflow.com/questions/24044630/http-host-not-found-behind-load-balancer-on-ec2