Categories
Data Science

Analysing Response Time Differences from Apache Logs from PHP5.6 to PHP7.3

Recently I added response time to my apache logs, to keep track of how long the server response took. To do that, in your apache config apache2.conf, add %D: LogFormat “%v:%p %h %l %u %t \”%r\” %>s %O \”%{Referer}i\” \”%{User-Agent}i\” %D” vhost_combined # Added response time %D LogFormat “%h %l %u %t \”%r\” %>s %O […]

Categories
Containerisation Containers DevOps Docker

Containerising your Django Application into Docker and eventually Kubernetes

There shift to containers is happening, in some places faster than others… People underestimate the complexity and all the parts involved in making you applciation work. The Django Example In the case of Django, we would in the past (traditionally) deployed it on a webserver running: a Webserver (nginx) a python wsgi – web server […]

Categories
Containerisation Containers Docker Kubernetes

Pros and Cons of Openshift OKD and Portainer

Update 2022: Most of these platform are downstream from vanilla kubernetes. Other options: A Lightweight kubernetes with k3s or Rancher. My opinion at this time is that rancher is the easiest to run and develop with/for. If you are about to make a choice about which container orchestrator, sheduler or paltform to choose you have […]

Categories
Containerisation Containers Docker

Deploying Praeco on Portainer

In this post I’m going to attempt to setup Praeco on Portainer.Praeco is a frontend for setting up Elastalert rules that check an elasticsearch index and send automated messages via telegram, slack or webhook. To set this up you need 2 things already setup: Elasticsearch instance Portainer Instance You also should know a bit about […]

Categories
Containerisation Containers

Openshift will not run your container as a root user

So you have setup OpenShift Container Platform and try to deploy your first image, dockerhub’s nginx image and what do we get…an error: 2019/10/03 06:39:24 [warn] 1#1: the “user” directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:2 nginx: [warn] the “user” directive makes sense only if the master […]