Kubernetes probes are a mechanism for determining the health of a container running within a pod. Kubernetes supports three types of probes: Liveness, Readiness, Startup. Each of these probes serves a different purpose and helps Kubernetes manage the container lifecycle. In the following diagram, I have tried to represent the[...]
Read moreAuthor: Sarav AK
Kubectl Scale down Pods and Save Cost - Kubernetes | Devops Junction
As the industry is going heavy on Kubernetes, as more and more monoliths are converted to microservices and onboarded to Kubernetes, as the number of namespace and nodes increase in your Kubernetes cluster, the cost of running Kubernetes would also increase proportionally There are a lot of cost optimization ideas[...]
Read moreAWS CLI assume role - How to use directly or as Profile | DevopsJunction
AWS CLI (Command Line Interface) is a powerful tool that allows users to interact with various AWS services through the command line. One of the essential features of AWS CLI is the ability to assume an IAM role, which allows users to access AWS resources and perform actions on behalf[...]
Read moreSQL queries for mysql RDS - CPU Usage, Locks, Waits and Kill | AWS
In this article let me share some SQL queries for RDS MYSQL troubleshooting It is true that when you are choosing RDS or any managed database, you cannot fully control or customize your database. There are few granular restrictions and constraints But AWS RDS is not a complete black box,[...]
Read moreHow to handle InnoDB: Unable to lock ibdata1 error - MYSQL
I have recently migrated a self-hosted MySQL from an EC2 instance to another using AMI copy and restore. and I have seen this error on the newly launched EC2 instance. Coming from a no-DBA background, I spent a day finding the root cause of this I am putting it here[...]
Read moreParsing HTTP POST data with NGINX OpenResty LUA | Devops Junction
In this article let us learn how to parse through the HTTP post payload in Nginx Openresty with LUA language OpenResty is an nginx distribution which includes the LuaJIT (Just in Time) interpreter for supporting Lua scripts. this LUA script helps you extend your regular NGINX with custom functionalities and features[...]
Read moreNGINX Dynamic IP address upstream - DNS Cache issue | How to solve
NGINX has become a standard for reverse proxy implementation, At least 20% of the internet is powered by NGINX webserver as the stats suggest I presume you all know what is a reverse proxy and forward proxy and how it works. Let us move on to the objective of this[...]
Read moreAWS SQS Dead Letter Queue Reprocessing script | Devops Junction
In this article let us see how to reprocess messages which are stuck in SQS Dead Letter Queue At times, Even if your messages are valid, due to Lambda Concurrency or other issues your message lands in Dead Letter Queue While there are a few ways to reprocess messages in[...]
Read moreAWS Lambda Usage and Cost Calculator - CloudWatch | Devops Junction
Serverless, as the name suggests takes the hosting and complex infrastructure elements away and helps developers and programmers to deploy their code to Production. All the underlying infrastructure, availability, and scaling would be taken care of by the service provider. For Cloud Functions its Google, ForLambda its AWS so on[...]
Read moreWhy Failed or Evicted pods are not deleted and How to delete them
In Kubernetes, Evicted or Failed Pods are not cleared until the sum of total terminated pods reaches a certain number This numeric value is by default set at 12500 on standard Kubernetes including managed services like EKS, AKS, GCP etc and it is set at the Control Plane level as[...]
Read more