Question

App platform - load balancing tcp traffic

Hello everyone,

Recently I’ve started using digital ocean app platform for setting microservice based architecture for my startup but I’m having issues with horizontal scalling.

At the time I have:

  • 1 main api that sends TCP commands to microservice
  • 1 microservice, but scaled horizontally to two instances of container

They are communicating through TCP, but the problem is that only one instance of microservice is used to do the hard work, the second one never gets any traffic.

What can I do with this situation?


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
June 11, 2022

Hi there,

The load balancing that comes with the App Platform is a built-in part that can’t be configured.

It is distributing incoming requests evenly across all containers that pass a health check and are tasked with providing capacity to your service.

Can you confirm that both of your instances are with status healthy and are passing the health checks?

https://docs.digitalocean.com/support/my-app-deployment-failed-because-of-a-health-check/

https://docs.digitalocean.com/glossary/health-check/

Best,

Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel