load-balancing

Read/Read-Write URIs for Amazon Web Services RDS

て烟熏妆下的殇ゞ 提交于 2019-12-13 03:46:15
问题 I am using HAProxy to for AWS RDS (MySQL) load balancing for my app, that is written using Flask. The HAProxy.cfg file has following configuration for the DB listen mysql bind 127.0.0.1:3306 mode tcp balance roundrobin option mysql-check user haproxy_check option log-health-checks server db01 MASTER_DATABSE_ENDPOINT.rds.amazonaws.com server db02 READ_REPLICA_ENDPOINT.rds.amazonaws.com I am using SQLALCHEMY and it's URI is: SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://USER:PASSWORD@127.0.0.1

What happens if a server receives more requests than it can handle?

白昼怎懂夜的黑 提交于 2019-12-13 03:26:35
问题 Say we have a server which can serve only 4 HttpRequests at max at a time. If 10 Http requests come, what will happen? What are the various options? Will the new requests be abandoned or kept in waiting ? Is this configurable? Is this dependent on the framework? If they are kept in waiting, where are those requests stored? Does load balancer take care of it? Does the developer need to take care of this in his code by building some queue? These questions were asked to me in an interview

haproxy backend redirect based on path

一个人想着一个人 提交于 2019-12-13 03:16:30
问题 is there a way to redirect to a specific backend, based on the path? Goal: http://example.com/node1 --> use backend myserver:8080 http://example.com/node2 --> use backend myserver:8081 http://example.com/node3 --> use backend myserver:8082 http://example.com/ --> use backend myserver:8080, 8081, 8082 This is my configuration: frontend ... acl head_domain hdr_beg(host) -i example.com acl head_n1 path_beg -i /node1 acl head_n1_ref hdr_dir(Referer) -i /node1 use_backend be_n1 if head_n1_ref head

Reverse proxy service on manager node: “host not found in upstream” but it works if the same service is on worker node

核能气质少年 提交于 2019-12-13 02:57:36
问题 I am running docker swarm with 1 manager and 2 worker nodes (centos VMs). Each worker node has 1 stack that has an nginx and php service that load "This is site1" in the browser. The site will only be loaded if the worker node has a reverse proxy (but it will always connect to the stack on that worker node which is part of the problem) but If I run the service on manager node that doesn't have the nginx/php stack it won't automatically direct to the stacks on worker nodes even though I have

httpd not started due to mod_proxy files not loaded

那年仲夏 提交于 2019-12-13 02:35:41
问题 I am trying to do jboss load balancing on centOS 7. I have installed httpd 2.4.7. Without any configuration changes it works, if I run Service httpd start. Whereas if I copy below files from http://mod-cluster.jboss.org/downloads/1-2-0-Final/ (mod_cluster-1.1.3.Final-linux2-x64-so) LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_ajp_module modules/mod_proxy_ajp.so LoadModule proxy_balancer_module modules/mod_proxy_balancer.so LoadModule proxy_connect_module modules/mod_proxy

Load Balancing with Azure Traffic Manager and Session state store necessary?

两盒软妹~` 提交于 2019-12-13 01:54:06
问题 I am using Azure Traffic manager to load balance two servers in different regions. I thought I would need a single store or redis cache for my session state. However, while testing it seems to keep me logged in even when I go back between servers by testing which server I am on. I log out, and I am logged out on the other. The only session state I am storing is a user profile, but if it's not found it just goes to the server and grabs it. Below is my forms setup. Do I really need something

Apache mod_jk load balancing not working but failover works

纵饮孤独 提交于 2019-12-13 00:41:30
问题 I am trying to configure an Apache load balancing solution with mod_jk. The clustering works but not load balancing. I have Apache httpd 2.2 server running on my laptop. I have two VMWare Virtual Machine Guest Operating systems. All three are windows. The VMware machines hosts Apache Tomcat Server serving the web application. I have configured httpd.conf file with mod_jk and a workers properties file with the worker information. I am able to access my web application using the URL : http:/

Web Service or WebServices

拥有回忆 提交于 2019-12-12 21:06:27
问题 I am in the process of creating an application which will communicate with a single server where WCF Web Service(s) would be installed. I am a little new to this process and was wondering which of these two options would be better in the long run to handle the load for a significant amount of users: 1- Create and install a single Web Service on a multi-core server for all of the client applications to communicate with. 2- Create and install multiple Web Services on a multi-core server, each

ZMQ sockets with custom load-balancing

被刻印的时光 ゝ 提交于 2019-12-12 20:05:37
问题 I looked at ZMQ PUSH/PULL sockets and even though I quite like the simplicity (especially compared to custom fragmentation/ack I am implementing right now in a system over UDP sockets), I would like to have custom load balancing instead of the naive round-robin (I believe) that ZMQ PUSH/PULL sockets are using. I am new to ZQM and not sure how I can implement it using ZMQ sockets and if it's even possible at all. What I would ideally like is, the serving PUSH socket (or some other socket type)

AWS EC2 Autoscaling: Defining a master instance, which is never terminated

て烟熏妆下的殇ゞ 提交于 2019-12-12 15:27:34
问题 I am using EC2 with autoscaling and loadbalancing to host my webapp. To guarantee consistency between the EC2 instances, I only want to allow access to the administration interface from one instance, so all write operations are executed on this instance. The other instaces then periodically download copies of the changed files. So here's my question: Can I have a designated "Master" Instance, in my autoscaling group, which is slightly different (runs script for uploading files which were