Redis: fork – Cannot allocate memory, Linux, virtual memory and vm.overcommit_memory
0 (0)

28 August 2019

Currently, I’m configuring a Redis as a caching service for our application and during that, I faced with the question: do I need to set vm.overcommit_memory to the value 1, i.e. disable it – or not? The question is quite old for me, see The story, but only now I found time to get to… Read More: Redis: fork – Cannot allocate memory, Linux, virtual memory and… »

Loading

AWS: CloudCraft – an existing infrastructure’s map generator
0 (0)

21 August 2019

I’m using CloudCraft service for a while – really handy. A couple of days ago I got a full subscription with all its features (first two weeks are free, by the way) among which I’d like to try an ability to create a map of an existing AWS account with all its resources and their… Read More: AWS: CloudCraft – an existing infrastructure’s map generator0 (0) »

Loading

Docker: Compose shared networks
0 (0)

20 August 2019

We have a Docker Compose stack with Jenkins, SonarQube, and PostgresSQL, check the SonarQube: running tests from Jenkins Pipeline in Docker post. The problem is that they are described in the same Docker Compose file and are restarted by the same systemd file (check the Linux: systemd сервис для Docker Compose post, Rus) Thus, if… Read More: Docker: Compose shared networks0 (0) »

Loading

Kubernetes: part 3 – AWS EKS overview and manual EKS cluster set up
0 (0)

15 August 2019

Let’s proceed with our Kubernetes journey. Previous parts: Kubernetes: part 1 – architecture and main components overview Kubernetes: part 2 – a cluster set up on AWS with AWS cloud-provider and AWS LoadBalancer In this part we will start working with AWS Elastic Kuberneters Service (EKS) – its short overview, then will create Kubernetes Control… Read More: Kubernetes: part 3 – AWS EKS overview and manual EKS… »

Loading

Kubernetes: part 2 – a cluster set up on AWS with AWS cloud-provider and AWS LoadBalancer
0 (0)

10 August 2019

In the first part – Kubernetes: part 1 – architecture and main components overview – we did a quick glance about Kubernetes. Also, check the third part – Kubernetes: part 3 – AWS EKS overview and manual EKS cluster set up. The next thing I’d like to play with is to manually create a cluster… Read More: Kubernetes: part 2 – a cluster set up on AWS… »

Loading

NGINX: limit_req – limiting requests per IP
0 (0)

9 August 2019

The next task is to set a limit per one IP to our backend’s API: add requests limiter on the /user/oauth/refresh_token URI set limit to 5 requests/minute from one IP if the limit is reached – return 429 Too Many Requests response Will use NGINX ngx_http_limit_req_module. limit_req_zone To make limiting works firs need to create… Read More: NGINX: limit_req – limiting requests per IP0 (0) »

Loading

AWS RDS: “SQLSTATE[22001] – Data too long for column” using MariaDB 10.2
0 (0)

8 August 2019

We have a PHP-application with the AWS RDS MariaDB as a backend. On the previously used 10.0 version all was good, but right after we upgraded to the MariaDB 10.2 – got errors during tests: PDOException: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column ‘name’ at row 1 in /data/projects/projectname/vendor/yiisoft/yii2/db/Command.php:1290 The first… Read More: AWS RDS: “SQLSTATE[22001] – Data too long for column” using… »

Loading

Kubernetes: part 1 – architecture and main components overview
0 (0)

25 July 2019

On my current project for our mobile applications, we have an API-backend on the Yii PHP-framework, which is working now on an ordinary LEMP stack – Linux/NGINX/PHP-FPM/MySQL (AWS EC2 + MariaDB RDS). Eventually, it’s time to break this monolith into microservices which will be orchestrated by the Kubernetes and will be running on the AWS… Read More: Kubernetes: part 1 – architecture and main components overview0 (0) »

Loading

AWS: S3 Cross-Region Replication with DeleteMarkers set up
0 (0)

17 July 2019

At this moment I’m configuring a new CDN for our project. Will use CloudFront and Cloudflare here so need to create two dedicated buckets with different names – cdn.cfr.example.com => CloudFront and cdn.cfl.example.com => Cloudflare. To avoid coping data each time to both buckets – an AWS S3 Cross-Region Replication can be used, so data… Read More: AWS: S3 Cross-Region Replication with DeleteMarkers set up0 (0) »

Loading

NGINX: multi-branch deployment with Ansible, NGINX map and HTTP Headers
0 (0)

26 June 2019

We have a standard LEMP setup NGINX, PHP-FPM. Application – Yii-framework, deployed from Jenkins using Ansible role with the synchronize module on backend hosts in a /data/projects/prjectname/frontend/web,  directory which is set as a root for an NGINX virtual host. The task is to have the ability to deploy the same application on the same backend… Read More: NGINX: multi-branch deployment with Ansible, NGINX map and HTTP Headers0… »

Loading