To use VLANs over bonds and bridges, proceed as follows:
- Add a bond device as root:
ip link add bond0 type bond
ip link set bond0 type bond miimon 100 mode active-backup
ip link set em1 down
To use VLANs over bonds and bridges, proceed as follows:
ip link add bond0 type bond
ip link set bond0 type bond miimon 100 mode active-backup
ip link set em1 down
http://vladimir-ivanov.net/how-to-compact-virtualboxs-vdmk-file-size/
cat /dev/zero > zero.fill; sync; sleep 1; sync; rm -f zero.fill
cmake_minimum_required(VERSION 3.8) | |
project(linux C) | |
include_directories(include) | |
file(GLOB_RECURSE ALL_FILES | |
"*.h" | |
"*.c" | |
) |
/msg nickserv register [password] [email] | |
/msg nickserv identify [password] |
# set up on host1 192.168.33.11, 08:00:27:f8:73:79 | |
ip link add vxlan0 type vxlan id 42 group 239.1.1.1 dev eth1 dstport 4789 | |
ip link set vxlan0 address 54:8:20:0:0:1 | |
ip address add 10.0.0.1/8 dev vxlan0 | |
ip link set up vxlan0 | |
# set up on host2 192.168.33.12, 08:00:27:d9:18:aa | |
ip link add vxlan0 type vxlan id 42 group 239.1.1.1 dev eth1 dstport 4789 | |
ip link set vxlan0 address 54:8:20:0:0:2 | |
ip address add 10.0.0.2/8 dev vxlan0 |
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.min.map */ (function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b=f.trim,x=function(e,t){return new x.fn.init(e,t,r)},w=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=/\S+/g,C=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,k=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,E=/^[\],:{}\s]*$/,S=/(?:^|:|,)(?:\s*\[)+/g,A=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,j=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,D=/^-ms-/,L=/-([\da-z])/gi,H=function(e,t){return t.toUpperCase()},q=function(e){(a.addEventListener||"load"===e.type||"complete"===a.readyState)&&(_(),x.ready())},_=function(){a.addEventListener?(a.removeEventListener("DOMContentLoaded",q,!1),e.removeEventListener("load",q,!1)):(a.detachEvent("onreadystatechange",q),e.detachEvent("onload", |
APP resource monitoring
rest api
http://localhost:4242/api/query?start=1466564936&m=avg:20s-max:rate:cpu_usage_total{queue=gaia_queue,user=11,appName=rami_test,instance=3}
curl 'http://localhost:4242/api/query?start=1466564936&m=avg:20s-max:rate:cpu_usage_total\{queue=root.demo,user=null,appName=rami,instanceId=1\}'
put sys.cpu.user 1356998400 1 h=w1 c=0
put sys.cpu.user 1356998401 3 h=w1 c=1
put sys.cpu.user 1356998400 5 h=w2 c=0
go version < 1.5 | |
cd /usr/local/go/src | |
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 ./make.bash --no-clean | |
all go version, compile your app | |
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -v . | |
env GOOS=linux GOARCH=amd64 go build -v . |