You noticed issues with autoscaling performance which includes the following symptoms:
When checking for the autoscaling app logs
cf target -o system -s autoscaling
cf logs autoscale --recent
cf logs autoscale
The logs contain the following error:
Non HTTP response code: org.apache.http.ConnectionClosedException/Non HTTP response message: Premature end of chunk coded message body: closing chunk expected
The error:
Non HTTP response code: org.apache.http.ConnectionClosedException/Non HTTP response message: Premature end of chunk coded message body: closing chunk expected
means that connections are being closed prematurely. One common cause is due to heavy load on autoscaler.
As your autoscale requests increases you need to tune other components of TAS which include the following: