summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Riedemann <mriedem.os@gmail.com>2019-02-05 11:21:39 -0500
committerMatt Riedemann <mriedem.os@gmail.com>2019-02-05 11:21:39 -0500
commit1516e720ce1d6eb6eca38feb1ca18dc7fc8c105c (patch)
tree461a3a9715fdf920fa6a97b1d80ef3d67b7c66fd
parent12467ec408c5e5235c48d0568e6f0e6627fbb06e (diff)
Set ETCD_USE_RAMDISK=True by default
Cinder and etcd are enabled by default and by default cinder uses etcd as a distributed lock manager with tooz as an intermediary. We see a lot of ToozConnectionErrors [1] in the cinder logs when etcd is backed up [2] which results in cinder operations timing out causing test failures, like when a volume is not deleted within a given time. This changes ETCD_USE_RAMDISK=True by default to try and alleviate some of the pressure. An alternative is if we know we're in a single-node job we could just not use a DLM for Cinder. [1] http://status.openstack.org/elastic-recheck/#1810526 [2] etcd[26824]: sync duration of 12.076762123s, expected less than 1s Change-Id: I5f82aa40e9d84114e7b7b5cf19ec4942d6552490 Partial-Bug: #1810526
Notes
Notes (review): Code-Review+1: Balazs Gibizer <balazs.gibizer@ericsson.com> Code-Review+2: Jens Harbott (frickler) <j.harbott@x-ion.de> Code-Review+1: melanie witt <melwittt@gmail.com> Code-Review+2: Ian Wienand <iwienand@redhat.com> Workflow+1: Ian Wienand <iwienand@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Mon, 11 Feb 2019 05:37:48 +0000 Reviewed-on: https://review.openstack.org/634970 Project: openstack-dev/devstack Branch: refs/heads/master
-rw-r--r--lib/etcd32
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/etcd3 b/lib/etcd3
index 0748ea0..4f3a7a4 100644
--- a/lib/etcd3
+++ b/lib/etcd3
@@ -29,7 +29,7 @@ ETCD_SYSTEMD_SERVICE="devstack@etcd.service"
29ETCD_BIN_DIR="$DEST/bin" 29ETCD_BIN_DIR="$DEST/bin"
30# Option below will mount ETCD_DATA_DIR as ramdisk, which is useful to run 30# Option below will mount ETCD_DATA_DIR as ramdisk, which is useful to run
31# etcd-heavy services in the gate VM's, e.g. Kubernetes. 31# etcd-heavy services in the gate VM's, e.g. Kubernetes.
32ETCD_USE_RAMDISK=$(trueorfalse False ETCD_USE_RAMDISK) 32ETCD_USE_RAMDISK=$(trueorfalse True ETCD_USE_RAMDISK)
33ETCD_RAMDISK_MB=${ETCD_RAMDISK_MB:-512} 33ETCD_RAMDISK_MB=${ETCD_RAMDISK_MB:-512}
34 34
35if is_ubuntu ; then 35if is_ubuntu ; then