Avatar of Manish
ManishFlag for India asked on

pcf auto scaling issue

IN PCF, we have autoscaling enabled for CPU utilization, when it goes up instance get added. But somehow I think the instance is getting loaded, request are getting diverted to that instance which is giving 502 bad gateway as I think it is not ready yet. is there any property or what we need to do in load balancer to work this correctly?

VMwareCloud Services

Avatar of undefined
Last Comment
Manish

8/22/2022 - Mon
David Johnson, CD

by PCF are you referring to Bitwise Pivotal Cloud Foundry







btan

Loadbalancer should have a target pool and if the autoscaled instance fails within the same pool then it should be alright.

May need to understand 502 errors a bit more as it can come from any of the following:

If 502 errors only occur in specific app instances and not all app instances on the platform, it is likely an app-related error. The app might be overloaded, unresponsive, or unable to connect to the database.

If all apps are experiencing 502 errors, then it could either be a platform issue, such as a misconfiguration, or an app issue, such as all apps being unable to connect to an upstream database.


ASKER
Manish

Thanks @btan
I can see below error in log.
x_cf_routererror:"endpoint_failure"

Open in new window

It is written that here https://docs.pivotal.io/application-service/2-8/adminguide/troubleshooting-router-error-responses.html#app-errors.
Any idea?

Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
btan

seems to be apps error and not so much on LB or routing but the receiving point is not replying. Just thinking of the below section may be some to delve into though I am no expert in this area - https://github.com/cloudfoundry/gorouter

Healthchecking from a Load Balancer

Load Balancing

When terminating TLS in front of Gorouter with a component that does not support sending HTTP headers

Enabling apps to detect the requestor's IP address using PROXY Protocol

HTTP/2 Support

Supported Cipher Suites


ASKER CERTIFIED SOLUTION
Manish

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question