Setup
前置配置
部署一个 etcd
docker run -d --net host --name etcd --restart always quay.io/coreos/etcd:v3.4.9 /usr/local/bin/etcd --enable-v2 --listen-client-urls http://0.0.0.0:2379 --advertise-client-urls http://etcd:2379准备一个配置文件
mkdir -p /etc/eru
cat <<! > /etc/eru/core.yaml
log_level: "DEBUG"
bind: ":5001"
service_address: 127.0.0.1:5001
statsd: "127.0.0.1:8125"
profile: ":12346"
global_timeout: 300s
lock_timeout: 30s
cert_path: "/tmp"
max_concurrency: 20
grpc:
max_concurrent_streams: 100
etcd:
machines:
- "http://localhost:2379"
prefix: "/eru"
lock_prefix: "core/_lock"
docker:
log:
type: "json-file"
config:
"max-size": "10m"
network_mode: "bridge"
hub: "hub.docker.com"
namespace: "projecteru2"
build_pod: "local"
local_dns: true
scheduler:
maxshare: -1
sharebase: 100
!起服务
加节点
Last updated