Skip to content
View yh-shurenyun-install-tutorial.md

下载安装包

文件名为YonghongBI.sh

使用java:8镜像为基础容器镜像

dsxiao@omegamaster1:~$ docker images java
REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
java                8                   de4a13c84f53        8 days ago          641.9 MB
View gist:55142ccedbe4f25628a3
# 下载测试包
git clone https://github.com/brownsys/zookeeper-benchmark.git
# build bench tools
mvn -DZooKeeperVersion=3.4.6 package
# run benchmark
java -cp target/lib/*:target/* edu.brown.cs.zkbenchmark.ZooKeeperBenchmark --conf benchmark.conf
View dki
#!/bin/sh
##############################################
data_paths=/srv/dockerdata/debuild:/build #
data_name=debdata #
data_image=user/debdata #
bridge=br0 #
ipfile=/etc/default/docker_ips #
##############################################
View sparkOnShurenyun.md

RUN SPARK ON 数人云

单机版

  • Mesos运行在host上
  • Spark driver 和 executor运行docker上
1.搭建Mesos集群环境

详情 ,登录数人云,登录控制台后,通过集群管理创建自己的集群

2.运行Spark demo
View mesos-docker
# ZooKeeper
$ sudo docker run --net=host jplock/zookeeper:3.4.6
#Mesos-Master
## It's important to specify --ip=<ip> and --hostname=<ip> parameters
$ sudo docker run --net=host mesosphere/mesos-master:0.21.0-1.0.ubuntu1404 --ip=10.42.0.1 --hostname=10.42.0.1 --zk=zk://10.42.0.1:2181/mesos --work_dir=/opt/ --quorum=1
#Mesosphere-Marathon
View README.md

Fix memory cgroup configuration for lxc-docker on Ubuntu 14.04

Step 1: enable hierarchical memory management

Drop memory-cg.conf into /etc/init. The upstart job will ensure that the memory cgroup is configured with hierarchical stats tracking before systemd-logind and/or docker start creating cgroups.

(Yes, it's mostly a crude hack with an obscure way of syncing with cgroup-lite. That can't be helped, though)

View gist:f2f7d53db1c17d508ee4
# /etc/security/limits.conf
* soft nofile 999999
* hard nofile 999999
root soft nofile 999999
root hard nofile 999999
===========================================================
# /etc/sysctl.conf
# sysctl for maximum tuning
View coreos-openstack
# https://coreos.com/docs/running-coreos/platforms/openstack/
Step one:
```
$ wget http://alpha.release.core-os.net/amd64-usr/current/coreos_production_openstack_image.img.bz2
$ bunzip2 coreos_production_openstack_image.img.bz2
$ glance image-create --name CoreOS \
--container-format bare \
--disk-format qcow2 \
View panamax-coreos-installer.sh
mkdir panamax
cd panamax
curl -O http://download.panamax.io/installer/pmx-installer-latest.zip
unzip pmx-installer-latest.zip
sudo su
./coreos install --stable
View method_missing.js
// This will only work in environments that support ES6 Proxies.
// As of right now, that's pretty much only Firefox.
function Refrigerator(foods) {
this.foods = foods;
return new Proxy(this, {
get: function (receiver, name) {
if (name in receiver) {
Something went wrong with that request. Please try again.