Hi mailinglist
**
*I am having troubles with the time to first byte (TTFB) on a newly deployed Mediawiki in a Docker image.*
*
With a freshly booted Image (w/o extensions), the initial TTFB is very high. (Browser: ~5s , Google Page Speed: ~3s). When i refresh the Page in the Browser or in the Page Speed test, the page is delivered quite fast. After not doing anything for about 30 mins, it is very slow again. I disabled all caching mechanisms and could still reproduce this behavior, so i looked in the DB, if there are still some caching actions. It seems, things stored in the table objectcache have a TTL, so i am trying out some combinations of file cache with prefilled page caches and php APCu.
I am using the official Docker Image based on MW 1.32 (apache with mod php 7.2) and i modified it to use a couple of extensions. It runs in a kubernetes environment on the Google Cloud Platform and the DB Backend is a Google Cloud SQL instance with MySQL 5.7. A Google Cloud Storage Bucket is fuse mounted to store uploads permanently. In order to scale horizontally there is a Pod with a redis service to provide all sessions infos to all instances of MW. The plan is to run also a Varnish Caching proxy in front of the LoadBalancer.
*My question is, what are the best practices to solve this issue?*
**
*Best regards,*
*Philipp *
*