Load Balancing

Load Balancing involves redistributing a computer’s workload between two or more machines. This allows for a more efficient use of computing resources and prevents any one machine from being overloaded, which is especially important for high-traffic websites.

Load Balancing subscription active
You will receive email notifications for new publications on Load Balancing.
323 Results
  • Question

    How to configure DO Load Balancer via doctl/Kubernetes

    I have manually (via web-based Control Panel) set SSL termination and SSL redirect on my Kubernetes' managed DO Load Balancer (which is managing my SSL cert). Unfortunately whenever there is a patch or I reconfigure n...
    Accepted Answer: Hey, All loadbalancers provisioned by Kubernetes are managed by the Cloud Controller Manager(CCM) running on the master. Any manual modifications to the LB through the cloud panel will be overwritten by the CCM during...
    1 By GubbaBump Kubernetes Load Balancing
  • Question

    How to reuse DO LoadBalancer previously created through Kubernetes?

    Hi, when creating a Kubernetes cluster and using a load balancer to host any public service, its easy to imagine that there would be anything going terribly wrong with the cluster. In that case I would like to create ...
    Accepted Answer: Hi Dennis, Thanks for your question. I'm Tyler, the product manager for our Load Balancer product. At this point in time, it's not possible to re-use an existing LB. It has to be generated as a new LB in order to get ...
    10 By dennisstr Kubernetes Load Balancing
  • Question

    What are the benefits of having cert-manager configured in k8s cluster comparing to SSL-termination configured on LoadBalancer?

    I'm configuring HTTPS for a website running in k8s cluster. For that I used the instructions from How To Set Up an Nginx Ingress on DigitalOcean Kubernetes Using Helm (https://www.digitalocean.com/community/tutorials/...
    Accepted Answer: Answering my own question: According to the article How to Configure Advanced Load Balancer Settings in Kubernetes Clusters (https://www.digitalocean.com/docs/kubernetes/how-to/configure-load-balancers/), I'm not supp...
    1 By muradx Kubernetes Load Balancing
  • Question

    How do I set DNS records for Kubernetes with a load balancer?

    I am using Helm to create a Kubernetes deployment. In front of this, there is a load balancer and an ingress server - see below for an abridged version of helm status auth ``` ==> v1/Service NAME TYPE ...
    Accepted Answer: I've sort of moved away from this now. Rather than managing my own ingress, I've wired it up with GitLab and let them manage my ingress. If I'd wanted to do this as my own ingress, I would need nginx-ingress controlle...
    2 By simon5396a2eb73fd67c2ed154 Kubernetes Load Balancing DNS DigitalOcean
  • Question

    Need help understanding load balancing and which database solution to use

    Our wordpress web site is going to go live and will receive possibly 23 million hits in one day. Need help making sure we are ready for this.
    Accepted Answer: Hi, @jcooksey I will try to be helpful as possible here. Let's make some calculations first: for an average of 23 Million hits in one day, these are: * 959k hits per hour or * 15,983 hits per minute or * 266 hits per...
    1 By jcooksey Databases Load Balancing
  • Question

    Kubernetes deployment with external load balancer: zero downtime rollouts

    Environment My Kubernetes cluster only has 1 node for now - managed by DigitalOcean. The web application that I deployed runs in 3 pods - all on ONE node. I used the external DigitalOcean's load balancer to expose the...
    Accepted Answer: This is fixed now, I asked too soon, but I hope this will help someone else: I had to add livenessProbe and readinessProbe to my deployment - to have kubelet check to make sure my pods are ready to start accepting tra...
    2 By alexkovshovik Kubernetes Deployment Load Balancing High Availability
  • Question

    How to create a droplet using snapshot with digitalocean api?

    We have snapshot of droplet which is obtained using digitalocean api in python. We want to create a droplet using the snapshot. How to do it using digitalocean api?
    Accepted Answer: Hello, @onurene22 To launch a new droplet based on a snapshot, you need to supply it’s ID for the image parameter: curl -X POST -H 'Content-Type: application/json' \ -H 'Authorization: Bearer $TOKEN' -d \ '{...
    1 By onurene22 API Python Load Balancing
  • Question

    Custom loadbalancer?

    Hi, I have created a Kubernetes cluster with the help of DOs' Kubernetes service. Every time I create a load balancer service inside my cluster, a load balancer from DO gets created which is a paid service. We current...
    Accepted Answer: I use a service mesh, Linkerd, which is on the DO Marketplace and easily installable in existing clusters. Then I use an ingress controller to handle the external traffic coming in. It can sustain drains and upgrades ...
    4 By tomescumihail93 Kubernetes Load Balancing
  • Question

    How do I get all real ip?

    Hi all My set up is a domain name with DO handling DNS, DO load balancer and droplets running nginx. How do I get real ip from the traffic from the load balancer and the traffic directly to my droplet? tia
    Accepted Answer: Added this to nginx.conf real_ip_header x-forwarded-for; set_real_ip_from 0.0.0.0/0; And now I see the correct addresses :D
    3 By awesomee42144fb2dfbc17195c Nginx Load Balancing
  • Question

    DO Load Balancer limits

    Hi, My service may keep connections (TCP) alive for a few minutes. I have read that there is a limit of 60 seconds and 10k connections. My questions are: Will the TCP connections to my service be closed after 60 secon...
    Accepted Answer: Keepalive doesn't mean that the connection will get closed after 60 seconds, it means that the connection will get closed after 60 seconds of inactivity. The 10001th connection will not be accepted - the user will get...
    1 By brunokakele Load Balancing DigitalOcean Managed Load Balancers
  • Question

    How to solve clusterissuer challenge timeouts?

    Setup: DO K8S Cluster w/ 2 nodes and 1 Ingress-NGINX LoadBalancer I was wondering why certificate requests fail and found in the logs of the Challenge, that the self check GET request runs into timeout. After looking ...
    Accepted Answer: Posted the same issue on SO, and already got an answer there: https://stackoverflow.com/questions/59286126/kubernetes-cluterissuer-challenge-timeouts For me, this is an acceptable workaround for now. Hope this can hel...
    2 By thc Kubernetes Nginx Load Balancing Networking DigitalOcean Managed Kubernetes
  • Question

    Kubernetes Load Balancer with multiple ports

    What is needed to create a kubernetes load balancer that supports multiple inbound ports? Is there an example of this anywhere? EG listening on port 9999 for silly-domain.com listening on port 443 for standard-domain...
    Accepted Answer: I got the former one to work on my beta k8s cluster on DO. Official link: https://github.com/kubernetes/ingress-nginx And here is the configuration I used on my cluster: https://github.com/haugom/do-ingress-nginx/ man...
    3 By guy1234 Kubernetes Load Balancing
  • Question

    How to best load balance a WordPress/WooCommerce e-commerce site?

    I have been running my WordPress/WooCommerce e-commerce and membership site happily for a couple of years now all on one server. But my traffic and membership is such that I want to transition to a more fault tolerant...
    Accepted Answer: Well, in case anyone was interested, here is what I ended up doing: After reading up on GlusterFS, I had a ton of reservations about performance issues for my needs. In short, it is apparently horrible for the multipl...
    2 By digitalocean679985 WordPress Load Balancing Security Ubuntu 16.04
  • Question

    Loadbalancer created by Kubernetes shows status "Issue" unless all workers has a service's target pod running on them

    I'm running a 4 node Kubernetes cluster with a loadbalancer as the service frontend for my application. The application is running in a Deployment with 3 replicas, so there will always be one worker without a pod for ...
    Accepted Answer: Hi there! Yes I understand the product here is misleading at best. This is a UI issue we are working on addressing. You are correct, that it tells the users there is an issue when in fact all is operating as expected....
    1 By marcushambraeus DigitalOcean Load Balancing Kubernetes
  • Question

    Disable automatic certificates renew from DigitalOcean Load Balancer

    Hello, A few months ago I was testing DigitalOcean's load balancers and activated Let'sEncrypt certificates for some domains. Subsequently I cancelled this service, but the certificates are still renewed automatically...
    Accepted Answer: Hey! You cannot delete SSL certificates that are still in use in Load Balancer. Firstly, you have to edit or remove the forwarding rule so that it no longer uses the certificate. You can then delete the certificate u...
    1 By arzuaga DigitalOcean Load Balancing Let's Encrypt
  • Question

    Load Balancer from Kubernetes is unstable

    Hi, I have a Kubernetes cluster with two nodes. I'm trying to deploy a Wordpress installation using yaml configs with: 1 MariaDB pod with its service 1 Wordpress pod 1 Load Balancer service targeting Wordpress Every c...
    Accepted Answer: Thanks for your response. Health checks were good and the ingress controller is provided by Digital Ocean. My problem was in the configuration of my LB service: I've fixed externalTrafficPolicy: Local in my service fo...
    2 By Sika Kubernetes Load Balancing
  • Question

    Kubernetes Loadbalancer is stuck showing default apache page

    Hi! I'm playing around with Kubernetes setup and noticed my loadbalancer all of the sudden is showing an apache default page... interestingly enough it was working before but suddenly decided to show the default page...
    Accepted Answer: Seems to be fixed now, I did nothing. Possibly a stray cache file or something im not sure..
    2 By cloutsnchara DigitalOcean Load Balancing Kubernetes
  • Question

    Outbound IP address on Load Balancers using PHP curl

    I have this scenario... 2 droplets on the same region, connected to Load Balancer... How is that possible that when sending a request via PHP curl the API end point gets the droplet IP address? I want to split the amo...
    Accepted Answer: Greetings! If I understand correctly, you have an outbound job on your droplet which reaches out to an external API. You want to balance that task so that the requests do not all come from the same IP. If I am underst...
    1 By brunnoperes Nginx PHP Load Balancing Networking Ubuntu 18.04
  • Question

    Trouble getting cert-manager on hosted Kubernetes with Drone helm chart.

    I am trying to get Drone CI/CD (v0.8.6) running in hosted Kubernetes (1.12) with SSL provisioned by Let's Encrypt cert-manager. The standard unencrypted install works fine, I specify a service of LoadBalancer and then...
    Accepted Answer: I have that exact setup working with ingress-nginx, in addition to external-dns chart adding the DNS entries automatically. You didn't mention having nginx as the ingress so if you don't I suggest you install that. in...
    2 By tapuzzo Kubernetes CI/CD Let's Encrypt Load Balancing
  • Question

    Should I use CloudFlare Load Balancer or DigitalOcean Load Balancer?

    Is it better for the load balancer to be next to droplets in DigitalOcean or to CloudFlare (which manages the DNS of my domain)?
    Accepted Answer: These two products provide some differing features: DO Load Balancer: Allows you to balance requests between multiple droplets All traffic between the load balancer and your droplets is done over the private network ...
    3 By calza Load Balancing