Autoscaling fails with Premature end of chunk coded message body
search cancel

Autoscaling fails with Premature end of chunk coded message body

book

Article ID: 368344

calendar_today

Updated On:

Products

VMware Tanzu Application Service for VMs

Issue/Introduction

You noticed issues with autoscaling performance which includes the following symptoms:

  • applications not being scaled up to the desired instance
  • scaling applications results application stuck in starting state

When checking for the autoscaling app logs

cf target -o system -s autoscaling
cf logs autoscale --recent
OR
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

Cause

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.

Resolution

 

 As your autoscale requests increases you need to tune other components of TAS which include the following: