diff --git a/docs/howto_config.md b/docs/howto_config.md index 6103dee49e..36b85feabc 100644 --- a/docs/howto_config.md +++ b/docs/howto_config.md @@ -86,9 +86,9 @@ List of ports that you must avoid: By default, etcd will be allowed to use as much memory as it needs to handle the load on the system; however, in memory constrained systems, it may be preferred or necessary to limit the amount of memory etcd is allowed to use at a given time. -Setting the `memoryLimitMB` to a value greater than 0 will result in a soft memory limit being applied to etcd; etcd will be allowed to go over this value during operation, but memory will be more aggresively reclaimed from it if it does. A value of `128` megabytes is the recommended starting place for this limit; however, the configuration floor is `50` megabytes - attempting to set the limit below 50 megabytes will result in the configuration being 50 megabytes. +Setting the `memoryLimitMB` to a value greater than 0 will result in a soft memory limit being applied to etcd; etcd will be allowed to go over this value during operation, but memory will be more aggresively reclaimed from it if it does. A value of `128` megabytes is the configuration floor - attempting to set the limit below 128 megabytes will result in the configuration being 128 megabytes. -Please note that values between 50 and 128 megabytes will heavily trade off memory footprint for etcd performance: the lower the memory limit, the more time etcd will spend on paging memory to disk and will take longer to respond to queries or even timing requests out if the limit is low and the etcd usage is high. +Please note that values close to the floor may be more likely to impact etcd performance - the memory limit is a trade-off of memory footprint and etcd performance. The lower the limit, the more time etcd will spend on paging memory to disk and will take longer to respond to queries or even timing requests out if the limit is low and the etcd usage is high. # Auto-applying Manifests diff --git a/etcd/vendor/github.com/openshift/microshift/pkg/config/config.go b/etcd/vendor/github.com/openshift/microshift/pkg/config/config.go index fc541ae654..df2ad6d6da 100644 --- a/etcd/vendor/github.com/openshift/microshift/pkg/config/config.go +++ b/etcd/vendor/github.com/openshift/microshift/pkg/config/config.go @@ -105,8 +105,8 @@ type Config struct { } const ( - // Etcd performance degrades significantly if the memory available is less than 50MB, enfore this minimum. - EtcdMinimumMemoryLimit = 50 + // Etcd performance degrades significantly if the memory available is less than 128MB, enfore this minimum. + EtcdMinimumMemoryLimit = 128 ) type Etcd struct { diff --git a/pkg/config/config.go b/pkg/config/config.go index fc541ae654..df2ad6d6da 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -105,8 +105,8 @@ type Config struct { } const ( - // Etcd performance degrades significantly if the memory available is less than 50MB, enfore this minimum. - EtcdMinimumMemoryLimit = 50 + // Etcd performance degrades significantly if the memory available is less than 128MB, enfore this minimum. + EtcdMinimumMemoryLimit = 128 ) type Etcd struct {