Cees-Jan

async & await at the edge with ReactPHP

PHP 8.1 is out and the hip new feature for non-blocking and asynchronous programming in PHP are fibers. In this post we're going to explore them and see how we at ReactPHP will start with them at the edge.

PHP 8.1 fibers (green threads)

Photo by Dids from Pexels


Read on →

Categories: PHP - ReactPHP Tags: 8.1 - Fibers - PHP - Async - Await

Cees-Jan

Using GitHub private images on your Kubernetes on DigitalOcean (DOKS) 1.20 cluster

Started the upgrade for my Kubernetes cluster on DigitalOcean earlier tonight, previous upgrades ran without issues, but this time it took a dark turn. In a nutshell, if you have private Docker images hosted at docker.pkg.github.com migrate them to ghcr.io.

Kubernetes 1.20 Chaos


Read on →

Cees-Jan

Scaling PHP FPM based on utilization demand on Kubernetes

Ever since I've migrated to Kubernetes I've been working on a Matomo Helm chart. Part of that Helm chart is having autoscale it on how busy PHP FPM is, a.k.a. the percentage of busy workers.

Horizontal Pod Autoscaler Status


Read on →

Categories: PHP - Kubernetes Tags: PHP - Kubernetes - FPM - Metrics