load-balancing

GCP Kube-Lego forwarding rule pricing

跟風遠走 提交于 2019-12-11 04:31:06
问题 I've started to use kube-lego to manage load-balancing through a nginx controller, instead of GCP Load Balancer controller. I am being charged for: Network Load Balancing: Forwarding Rule Minimum Service Charge in EMEA right now, at about 21$ per month. Isn't the load balancing supposed to be done by nginx? I have TCP Load Balancer in my GCP network resources. Isn't possible to send the traffic to a node port and do the load balancing on the nginx controller instead ? I thought the advantage

do multiple web dynos make sense in a real-time socket.io node.js app?

a 夏天 提交于 2019-12-11 03:55:40
问题 i'm developing a node.js backend for a real-time chat app on heroku. As i'm looking at dynos and ways to scale the node.js backend, i can see the advantage that dynos could have on http servers because each dyno can be independent from other dynos (which is ok for most cases). My question is: how can you scale and handle load balancing of real-time socket.io apps? From what i'm reading dynos are containers that are 'sandboxed': each dyno runs its own process, independent from the other dynos.

Clustering doesn't work

大兔子大兔子 提交于 2019-12-11 01:39:50
问题 I config clustering for two tomcat using apache at front and mod_jk as connector. I tried a test application to check the configuration and it works fine. Session are being successfully replicated and failover is detected successfully. But when i tried this for my actual application, it does not work. I made the modification in httpd.conf accordingly and very carefully. There is no exception,no error in the logs. I am unable to track the problem. Initially i was getting

How to get a host name behind a load balancer in ASP.NET?

旧城冷巷雨未停 提交于 2019-12-10 22:45:05
问题 I have a couple of servers and a load balancer. I want to show a server name which is currently serving the page. I am using HttpContext.Current.Request.ServerVariables["SERVER_NAME"] and HttpContext.Current.Request.ServerVariables["LOCAL_ADDR"] but is shows the same data for all servers (load balancer information is shown but not the information about exact server name). How to get a relevant information? 回答1: Try System.Environment.MachineName . 回答2: Perhaps Server.MachineName does what you

How to balance webserver bandwith usage?

房东的猫 提交于 2019-12-10 22:04:25
问题 I have a drupal commerce website in which users upload a lot of images all the time. Each commerce order has n images. I would like balance network traffic in order to save bandwidth (bandwidth is limited for each server). I cannot use a conventional load balancing solution because the balancer server also will have a limited bandwidth. My database will be on the separated server. I would like to find a solution for handle request directly in each server and persist the connections by session

Load balancing with Yii sessions

假如想象 提交于 2019-12-10 19:51:26
问题 I am trying to configure a load-balanced environment using Yii 1.1.14 applications, but I seem to be having the problem where Yii does not keep a user logged in when the load balancer uses another node. Most of the time, when logging in, it will ask the user to login twice because it only logs in on one node, and then loads the page on another. Otherwise, it will ask the user to login again half-way through browsing. The application is using DB sessions and I can see that the expire time is

What should I do if I want to deploy Play Framework app to multiple servers?

这一生的挚爱 提交于 2019-12-10 19:29:38
问题 If I would like to deploy my application using Play Framework 2.x to multiple servers, what are the things I need to care about? If I am using (built-in) sessions, will it be available to all the nodes since they are stored in browser side? How can I share variables application-wide except for storing them in the database? 回答1: When putting a Play application in production to multiple server nodes, you should check following steps: Ensure the application secret (that encrypts and signs the

HTTP status code names are missing when using Nginx

末鹿安然 提交于 2019-12-10 19:19:14
问题 I'm using Nginx to redirect all HTTP requests to HTTPS in my spring boot application.This is the nginx configuration that i'm using,with that i was able to redirect all requests to Https but when i do it i get the status code returned correctly but it doesnt have the status code name anymore.if i remove nginx and run spring boot application alone i can get the http status with its code name and code . server { listen 80 default_server; listen [::]:80 default_server; server_name _ ; access_log

How to add/update the port of a backend in a Backend Service of an HTTP Load Balancer in GCP using gcloud CLI

风流意气都作罢 提交于 2019-12-10 16:42:38
问题 I can create a Backen Service using the following commands: # health check gcloud compute http-health-checks create "$HEALTH_CHECK_NAME" # backend service gcloud compute backend-services create "$BACKEND_SERVICE_NAME" --http-health-check "$HEALTH_CHECK_NAME" --port-name "http" --timeout "30" gcloud compute backend-services add-backend "$BACKEND_SERVICE_NAME" --instance-group "$GROUP_NAME" --balancing-mode "UTILIZATION" --capacity-scaler "1" --max-utilization "1" But I have to add also the

Ribbon load balance algorithms

烈酒焚心 提交于 2019-12-10 15:53:49
问题 I am using Spring Cloud with NetflixOSS in my microservice project. Also, I am using Ribbon with Feign Client as my client side load balancer. I was wondering, is there any possibility to implement or choose different types of load balancing algorithms for Ribbon? Because as I understood, the default is round robin. Thanks in advance! 回答1: Yes, it is possible. See the docs for full details how to customize. For a @FeignClient("foo") and a random load-balancing rule you could do: