Skip to main content

Posts

Showing posts from October, 2018

Linux Namespaces - Part 1

Overview First of all I would like to give credit to Docker which motivated me to write this blog, I've been using docker for more then 6 months but I always wondered how things are happening behind the scene. So I started in depth learning of Docker and here I am talking about Namespace which is the core concept used by Docker.

Before talking about Namespaces in Linux, it is very important to know that what namespaces actually is?
Let's take an example, We have two people with the same first name Abhishek Dubey and Abhishek Rawat but we can differentiate them on the basis of their surname Dubey and Rawat. So you can think surname as a namespace.

In Linux, namespaces are used to provide isolation for objects from other objects. So that anything will happen in namespaces will remain in that particular namespace and doesn't affect other objects of other namespaces. For example:- we can have the same type of objects in different namespaces as they are isolated from each othe…

Docker Logging Driver

The  docker logs command batch-retrieves logs present at the time of execution. The docker logs command shows information logged by a running container. The docker service logs command shows information logged by all containers participating in a service. The information that is logged and the format of the log depends almost entirely on the container’s endpoint command.



These logs are basically stored at "/var/lib/docker/containers/<container_id>.log", So basically it is not easy to use this file by using Filebeat because the file will change every time when the new container is up with a new container id.


So, How to monitor these logs which are formed in different files ? For this Docker logging driver were introduced to monitor the docker logs.


Docker includes multiple logging mechanisms to help you get information from running containers & services. These mechanisms are called logging drivers. These logging drivers are configured for the docker daemon.


To …

How to launch an ECS instance in Alibaba cloud

This blog introduces you to ECS service provided by Alibaba cloud.  After reading this blog you will be able to deploy your own ECS instance in no time.
What is ECS? Elastic Compute Service is a type of computing service, ECS is simple and more efficient than physical servers. We can create instances, change the OS and modify  any number of ECS instances at any time. An ECS instance is a virtual computing environment that includes CPU, memory, and other computing components.
If you have already used AWS then you can compare ECS with EC2.
What are the advantages of ECS?
Security
Cloud provider's job is to monitor security, most of the businesses don't like to openly  consider possibility of internal data theft, but the truth is that high percentage of data thefts  occur internally and are done by employees. Availability
Cloud providers are now days present in most of the continents and countries. So, if you  want to deploy your application in a particular region, you can easily do it with hel…