Skip to content

Instantly share code, notes, and snippets.

How to Limit CPU and Memory Usage With Cgroups on Debian/Ubuntu Cgroups is a flexible Linux kernel feature to limit, police and account resources usage. A cgroup is a set of tasks for a subsystems, that is typically a resource controller.

A file system of type cgroup is mounted and all operations are run over it.

Installation The installation can be done using any of libcgroup, cgmanager or systemd.

Usage They can be used in multiple ways

@twoneks
twoneks / main.go
Created November 29, 2018 10:58 — forked from RealDeanZhao/main.go
go file to install chaincode
package chainmgmt
import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/hyperledger/fabric-sdk-go/pkg/client/msp"
"github.com/hyperledger/fabric-sdk-go/pkg/client/resmgmt"
"github.com/hyperledger/fabric-sdk-go/pkg/fab/ccpackager/gopackager"
"github.com/hyperledger/fabric-sdk-go/pkg/fabsdk"
@twoneks
twoneks / network-config.yaml
Created November 29, 2018 10:57 — forked from RealDeanZhao/network-config.yaml
network-config.yaml
---
name: "xyd-themis"
x-type: "hlfv1"
description: "Themis Network"
version: "1.0"
client:
organization: xiaoyudian
logging:
@twoneks
twoneks / remote heroku
Created April 20, 2015 15:43
add remote heroku
# remote list
git remote -v
# add heroku app remote
heroku git:remote --app brenda-kp
git remote -v
# heroku https://git.heroku.com/brenda-kp.git
# rename local remote