Add restart policy and set LimitNOFILE to/in etcd.service file
Update etcd.config file: add new flags and remove depricated Update 'go build' flags for GIT_SHA (used in build script) Don't use 4001 and 7001 ports in etcd.conf, they are replaced with 2379 and 2380
This commit is contained in:
parent
7ee98eabb2
commit
11f76e8645
3 changed files with 26 additions and 10 deletions
21
etcd.conf
21
etcd.conf
|
|
@ -4,19 +4,19 @@ ETCD_DATA_DIR="/var/lib/etcd/default.etcd"
|
|||
#ETCD_SNAPSHOT_COUNTER="10000"
|
||||
#ETCD_HEARTBEAT_INTERVAL="100"
|
||||
#ETCD_ELECTION_TIMEOUT="1000"
|
||||
#ETCD_LISTEN_PEER_URLS="http://localhost:2380,http://localhost:7001"
|
||||
ETCD_LISTEN_CLIENT_URLS="http://localhost:4001"
|
||||
#ETCD_LISTEN_PEER_URLS="http://localhost:2380"
|
||||
ETCD_LISTEN_CLIENT_URLS="http://localhost:2379"
|
||||
#ETCD_MAX_SNAPSHOTS="5"
|
||||
#ETCD_MAX_WALS="5"
|
||||
#ETCD_CORS=""
|
||||
#
|
||||
#[cluster]
|
||||
#ETCD_INITIAL_ADVERTISE_PEER_URLS="http://localhost:2380,http://localhost:7001"
|
||||
#ETCD_INITIAL_ADVERTISE_PEER_URLS="http://localhost:2380"
|
||||
# if you use different ETCD_NAME (e.g. test), set ETCD_INITIAL_CLUSTER value for this name, i.e. "test=http://..."
|
||||
#ETCD_INITIAL_CLUSTER="default=http://localhost:2380,default=http://localhost:7001"
|
||||
#ETCD_INITIAL_CLUSTER="default=http://localhost:2380"
|
||||
#ETCD_INITIAL_CLUSTER_STATE="new"
|
||||
#ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster"
|
||||
ETCD_ADVERTISE_CLIENT_URLS="http://localhost:2379,http://localhost:4001"
|
||||
ETCD_ADVERTISE_CLIENT_URLS="http://localhost:2379"
|
||||
#ETCD_DISCOVERY=""
|
||||
#ETCD_DISCOVERY_SRV=""
|
||||
#ETCD_DISCOVERY_FALLBACK="proxy"
|
||||
|
|
@ -26,9 +26,16 @@ ETCD_ADVERTISE_CLIENT_URLS="http://localhost:2379,http://localhost:4001"
|
|||
#ETCD_PROXY="off"
|
||||
#
|
||||
#[security]
|
||||
#ETCD_CA_FILE=""
|
||||
#ETCD_CERT_FILE=""
|
||||
#ETCD_KEY_FILE=""
|
||||
#ETCD_PEER_CA_FILE=""
|
||||
#ETCD_CLIENT_CERT_AUTH="false"
|
||||
#ETCD_TRUSTED_CA_FILE=""
|
||||
#ETCD_PEER_CERT_FILE=""
|
||||
#ETCD_PEER_KEY_FILE=""
|
||||
#ETCD_PEER_CLIENT_CERT_AUTH="false"
|
||||
#ETCD_PEER_TRUSTED_CA_FILE=""
|
||||
#
|
||||
#[logging]
|
||||
#ETCD_DEBUG="false"
|
||||
# examples for -log-package-levels etcdserver=WARNING,security=DEBUG
|
||||
#ETCD_LOG_PACKAGE_LEVELS=""
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@ WorkingDirectory=/var/lib/etcd/
|
|||
EnvironmentFile=-/etc/etcd/etcd.conf
|
||||
User=etcd
|
||||
ExecStart=/usr/bin/etcd
|
||||
Restart=on-failure
|
||||
LimitNOFILE=65536
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
|
|||
13
etcd.spec
13
etcd.spec
|
|
@ -21,12 +21,13 @@
|
|||
%global project coreos
|
||||
%global repo etcd
|
||||
%global commit 5686c33e4b27e905a15ecbe8702dcfc3c270ca76
|
||||
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
||||
|
||||
%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
|
||||
|
||||
Name: %{repo}
|
||||
Version: 2.0.12
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: A highly-available key value store for shared configuration
|
||||
License: ASL 2.0
|
||||
URL: https://%{import_path}
|
||||
|
|
@ -142,9 +143,9 @@ export GOPATH=$(pwd):%{gopath}:$GOPATH
|
|||
|
||||
%if 0%{?with_debug}
|
||||
# *** ERROR: No build ID note found in /.../BUILDROOT/etcd-2.0.0-1.rc1.fc22.x86_64/usr/bin/etcd
|
||||
function gobuild { go build -a -ldflags "-B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n')" -v -x "$@"; }
|
||||
function gobuild { go build -a -ldflags "-B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n') -s -X %{import_path}/version.GitSHA %{shortcommit}" -v -x "$@"; }
|
||||
%else
|
||||
function gobuild { go build -a "$@"; }
|
||||
function gobuild { go build -a "$@" -ldflags "-s -X %{import_path}/version.GitSHA %{shortcommit}"; }
|
||||
%endif
|
||||
|
||||
gobuild -o bin/etcd %{import_path}
|
||||
|
|
@ -261,6 +262,12 @@ getent passwd %{name} >/dev/null || useradd -r -g %{name} -d %{_sharedstatedir}/
|
|||
%endif
|
||||
|
||||
%changelog
|
||||
* Thu Jun 25 2015 jchaloup <jchaloup@redhat.com> - 2.0.12-2
|
||||
- Add restart policy and set LimitNOFILE to/in etcd.service file
|
||||
- Update etcd.config file: add new flags and remove depricated
|
||||
- Update 'go build' flags for GIT_SHA (used in build script)
|
||||
- Don't use 4001 and 7001 ports in etcd.conf, they are replaced with 2379 and 2380
|
||||
|
||||
* Wed Jun 24 2015 jchaloup <jchaloup@redhat.com> - 2.0.12-1
|
||||
- Update to v2.0.12
|
||||
- Polish spec file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue