Search code examples
google-app-enginegoogle-cloud-build

Application size in appengine suddenly much bigger (go 1.14)


We are using google appengine with go114 runtime. Our application size was usually around the 40mb. Suddenly from one moment to the other the size of our application versions went to 240mb, without any change on our side.

The strange thing is that the same code version resulted in one environment still to 40mb and in the other to 240mb. Later version also increased in the first environment.

There are not changes on our code whatsoever which could have impacted any of this, but I have also no clue what could have caused this on the appengine side of things.

Anyone knows what could have caused this rise of application size?


Solution

  • I opened ticket to Google and I got the following answer:

    According to our App Engine product team, the previous version size was computed as the sum of the sizes of user code files, error blobs and static files.

    When the infrastructure change was made, due to other dependencies, version size started being computed using the sizes of the user layers of the container (considering values such as raw_bytes, tar_bytes, file_bytes, etc) rather than just the size of the code itself. Since user layers may contain far more than just the code files, the version size appears significantly larger.