Lesson of the week - 2025's 6th
This week I encountered a problem when migrating a cron job to Cloud Run Job. I had experiences in this kind of task so many times before so I expected every thing to go smoothly as it used to be, until the cron run the 1st time and returned a 255 exit code.
The error message told that the process was lack of memory to run. It had a memory limit of 128M and I was wondering where was this limit because I set the memory limit on Cloud Run as much as 512Mi. After a short investigation, I realized that 128M was the memory limit of the php-fpm Docker image I built some months ago. Since I didn’t touch the memory limit, it is the default of the official php-fpm Docker image.