Skip to content
This repository has been archived by the owner on May 24, 2020. It is now read-only.

gcs-etcd: etcd tunings #93

Merged
merged 1 commit into from
Dec 31, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions deploy/templates/gcs-manifests/gcs-etcd-cluster.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,29 @@ metadata:
app.kubernetes.io/component: etcd
app.kubernetes.io/name: etcd-cluster
spec:
pod:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: etcd_cluster
operator: In
values:
- etcd
topologyKey: kubernetes.io/hostname
etcdEnv:
# https://github.com/etcd-io/etcd/blob/master/Documentation/op-guide/maintenance.md#auto-compaction
- name: ETCD_AUTO_COMPACTION_MODE
value: "periodic"
- name: ETCD_AUTO_COMPACTION_RETENTION
value: "5m"
- name: ETCD_SNAPSHOT_COUNT
value: "10000"
- name: ETCD_QUOTA_BACKEND_BYTES
value: "8589934592" # 8 * 1024 * 1024 * 1024 = 8GiB
size: 3
version: 3.3.8

Expand Down