load-balancing

What is the best solution for storing ASP.NET session variables? StateServer or SQLServer?

一笑奈何 提交于 2019-12-05 03:31:16
StateServer or SQLServer? What is the best solution for storing ASP.NET session variables? What are the pros and cons of each? Are one better then other in any particular situation? Here's some thoughts about pro's/con's. I've also added Microsoft Velocity Distributed Caching solution. Pros for InProc Fastest optional available (it's all in memory/ram) Easy to setup (nothing new required in the .config file .. i think this is the default behavior). Most people I believe use this. Cons for InProc If the web site (application pool) dies, then all session info is lost. Doesn't work in a WebFarm

Load Balancing using HAProxy for Postgresql 9.4

一曲冷凌霜 提交于 2019-12-05 02:55:55
问题 I have made a setup of multi-master replication of PostgreSQL using BDR (Bi-Directional Replication) among 4 nodes (virtual machines). Now i want to put a load-balancer for High Availability. For this i have installed and configured "HAProxy" on a different virtual machine, which is listening over 5432/tcp to connect. The haproxy configuration is as follows: listen pgsql_bdr *:5432 mode tcp option httpchk balance roundrobin server master 192.168.123.1:5432 check backup server slave1 192.168

Deploying multiple Grails instances with shared cache and sessions?

倾然丶 夕夏残阳落幕 提交于 2019-12-04 23:48:08
问题 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... 回答1: I was recently listening to

Why client-side load balancers like Ribbon?

≯℡__Kan透↙ 提交于 2019-12-04 21:33:36
问题 Netflix makes use of Ribbon, which is in their terms a "client-side load-balancer". What are the use-cases and advantages of a client-side load-balancer compared to a traditional load-balancer? Is Ribbon, and other Netflix OSS services AWS -specific or can they be used in other contexts? 回答1: As already mentioned by using Ribbon you don't need an additional load balancer. You can also configure the balancing algorithm for each client differently, if you need to. At first I was a bit surprised

Is Work Stealing always the most appropriate user-level thread scheduling algorithm?

China☆狼群 提交于 2019-12-04 18:30:28
问题 I've been investigating different scheduling algorithms for a thread pool I am implementing. Due to the nature of the problem I am solving I can assume that the tasks being run in parallel are independent and do not spawn any new tasks. The tasks can be of varying sizes. I went immediately for the most popular scheduling algorithm "work stealing" using lock-free deques for the local job queues, and I am relatively happy with this approach. However I'm wondering whether there are any common

Should swarm loadbalancing perform healthchecks on its nodes?

家住魔仙堡 提交于 2019-12-04 16:39:56
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_OP" 7 minutes ago Up 7 minutes springbootcrudsample.1.5syc6j4c8i3bnerdqq4e1yelm Node1: [root@node1 ~]#

Sticky Session in apache doesn't work

只愿长相守 提交于 2019-12-04 16:33:42
This is currently my environment setup. Apache Tomcat: Apache-Tomacat-7.0.21 Apache HTTP Server: c. Apache HTTP Server 2.2.19 Tomcat Connector JK 1.2.32 for Apache HTTP Server 2, mod_jk I'm trying to implement sticky session but i still can't get it to work. I'm able to load balance between 2 machines in a cluster. Please advise what else i have missed out! Following is my workers.properties file # Define 2 real workers using ajp13 & 1 balancer worker.list=balancer # worker.balancer.type=lb worker.balancer.balance_workers=worker1,worker2 worker.balancer.sticky_session=True # Set properties for

Session affinity on load balancer

♀尐吖头ヾ 提交于 2019-12-04 16:30:52
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 experiences or insight on how this problem can be solved please let me know. The most common way is to

WebLogic load balancing

我的梦境 提交于 2019-12-04 14:01:10
问题 I'm currently developing a project supported on a WebLogic clustered environment. I've successfully set up the cluster, but now I want a load-balancing solution (currently, only for testing purposes, I'm using WebLogic's HttpClusterServlet with round-robin load-balancing). Is there any documentation that gives a clear comparison (with pros and cons) of the various ways of providing load-balancing for WebLogic? These are the main topics I want to cover: Performance (normal and on failover );

Acceptor pooling and load balancing in Erlang?

丶灬走出姿态 提交于 2019-12-04 12:01:48
问题 From http://www.erlang.org/doc/man/gen_tcp.html#accept-1: It is worth noting that the accept call does not have to be issued from the socket owner process. Using version 5.5.3 and higher of the emulator, multiple simultaneous accept calls can be issued from different processes, which allows for a pool of acceptor processes handling incoming connections. (Q1) Does it mean that we can have Unicorn-style load balancing in Erlang? (Q2) If so, are there any existing servers or libraries making use