Skip to content

Commit

Permalink
etcd-pod: Use ionice -c2 -n0
Browse files Browse the repository at this point in the history
This will have no currect effect with the default I/O scheduler
of `mq-deadline`, but I think it will help once we switch to `bfq`
as part of openshift/machine-config-operator#1946
  • Loading branch information
cgwalters committed Aug 6, 2020
1 parent f4022a2 commit e1dae76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bindata/etcd/pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ ${COMPUTED_ENV_VARS}
env | grep ETCD | grep -v NODE
set -x
exec etcd \
# See https://etcd.io/docs/v3.4.0/tuning/ for why we use ionice
exec ionice -c2 -n0 etcd \
--initial-advertise-peer-urls=https://${NODE_NODE_ENVVAR_NAME_IP}:2380 \
--cert-file=/etc/kubernetes/static-pod-certs/secrets/etcd-all-serving/etcd-serving-NODE_NAME.crt \
--key-file=/etc/kubernetes/static-pod-certs/secrets/etcd-all-serving/etcd-serving-NODE_NAME.key \
Expand Down
3 changes: 2 additions & 1 deletion pkg/operator/etcd_assets/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e1dae76

Please sign in to comment.