You noticed issues with autoscaling performance which includes the following symptoms:
When checking for the autoscaling app logs
cf target -o system -s autoscalingcf logs autoscale --recent
cf logs autoscaleThe 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
TAS autoscaler
The error:
Non HTTP response code: org.apache.http.ConnectionClosedException/Non HTTP response message: Premature end of chunk coded message body: closing chunk expectedmeans 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: