Skip to content

Commit fb2aa3a

Browse files
author
Allen Ray
committed
OCPBUGS-11497:increase etcd memory limit floor
1 parent 373392c commit fb2aa3a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/howto_config.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ List of ports that you must avoid:
8686

8787
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.
8888

89-
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.
89+
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.
9090

91-
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.
91+
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.
9292

9393
# Auto-applying Manifests
9494

etcd/vendor/github.com/openshift/microshift/pkg/config/config.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/config/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ type Config struct {
105105
}
106106

107107
const (
108-
// Etcd performance degrades significantly if the memory available is less than 50MB, enfore this minimum.
109-
EtcdMinimumMemoryLimit = 50
108+
// Etcd performance degrades significantly if the memory available is less than 128MB, enfore this minimum.
109+
EtcdMinimumMemoryLimit = 128
110110
)
111111

112112
type Etcd struct {

0 commit comments

Comments
 (0)