How to use CGroup to realize process memory control in Go

background Starting from Linux kernel 2.6.25, CGroup supports the isolation and limitation of process memory, which is also the underlying support of Docker and other container technologies. Using CGroup has the following advantages: On the shared machine, processes are isolated from each other and do not affect each other, which is a kind of ...

Posted on Mon, 25 Nov 2019 07:12:49 -0500 by Eckstra

The core and installation of Docker

Bowen structure Docker image operation Docker container operation Docker resource control Docker core concepts I. what is Docker? (1) Docker is an open-source tool for running applications in Linux containers, and is a lightweight "virtual machine"The Logo is designed as a blue whale. The whale can be seen as the host. The contai ...

Posted on Mon, 25 Nov 2019 05:24:36 -0500 by kalinkap

K8s statefullset details

Summary StatefulSetRC, Deployment and DaemonSet are all stateless services. The IP address, name and start stop sequence of the Pod they manage are all random. What is stateful set? As the name implies, stateful collections manage all stateful services, such as MySQL and MongoDB clusters.Statefullset is essentially a variant of Deployment, whi ...

Posted on Mon, 25 Nov 2019 05:23:52 -0500 by ihcra

024. Master Pod-Deployment MongoDB

1. Pre-preparation 1.1 Preconditions Cluster deployment: Kubernetes cluster deployment reference 003-019. glusterfs-Kubernetes Deployment: Refer to GlusterFS Hyper-Fused Deployment with 010.Kubernetes Permanent Storage. 1.2 Deployment Planning This experiment uses StatefulSet to deploy the MongoDB cluster, while each MongoDB instance ...

Posted on Sun, 24 Nov 2019 22:42:07 -0500 by mikusan

How Gradle continues to build after a task fails

If we run a Gradle build and one of the tasks fails, the entire build stops immediately.So we can quickly feed back on the status of the build.If we don't want to do this and want Gradle to perform all the tasks, we can use the command line option -- continue even if some tasks may fail.When we use the --continue command line option, Gradle wil ...

Posted on Sun, 24 Nov 2019 22:18:10 -0500 by Knifee

How to Build Magento E-Commerce Website Using Linux Cloud Server

Magento is a professional open source e-commerce system.Magento is designed to be very flexible with a modular architecture and rich functionality.Easy to seamlessly integrate with third-party applications.It is oriented to enterprise applications, can handle all kinds of needs, and build a multi-purpose and applicable e-commerce website.It inc ...

Posted on Sun, 24 Nov 2019 13:43:25 -0500 by hassank1

redis yum installation configuration redis master slave

1. Installationyum install epel-release.noarch -yyum install redis -y 2. Configure master-slaveMain:Vim/etc/redis.conf #Modify Configuration Filebind 10.1.1.111 #Modify listening IPrequirepass 233233 #Add Password From:Vim/etc/redis.conf #Modify Configuration FileBid 10.1.1.112 #Modify Listening IPslaveof 10.1.1.111 6379 #Specify the primary i ...

Posted on Sun, 24 Nov 2019 11:38:45 -0500 by josaho

Create a book with GitBook

Gitbook is first and foremost a piece of software that uses Git and Markdown to organize books. If you haven't heard of Git and Markdown, gitbook may not be right for you to get started. You need to learn Git and Markdown first.Git is a version control tool, Markdown is a text editing grammar, basic use can be learned in about a few hours, no ...

Posted on Sat, 23 Nov 2019 17:12:19 -0500 by nologin666

Check the capacity of SD card and EMMC

The series of functions involved in the operation of this block: setmntent(), getmntent(), endmntent(), stavfs() man setmntent under linux #include <stdio.h> #include <mntent.h> FILE *setmntent(const char *filename, const char *type); //Open the file containing the mount point project struct m ...

Posted on Sat, 23 Nov 2019 12:29:51 -0500 by thedotproduct

A simulated Internet architecture experiment after DNS learning

Internet DNS architecture experiment An experiment after learning DNS for system Architecture diagram A total of 7 hosts, Jointly Implementing the Internet dns architecture 1 point the client dns server to the local dns server 2. Build the website root:~ # yum install httpd root:~ # cd /var/www/html/ root:/var/www/html # echo 192.168.64.5 ...

Posted on Sat, 23 Nov 2019 12:03:17 -0500 by mikkex