Skip to content

Commit

Permalink
Merge pull request #1656 from dusk125/inc-etcd-min-mem
Browse files Browse the repository at this point in the history
OCPBUGS-11497:increase etcd memory limit floor
  • Loading branch information
openshift-merge-robot authored Apr 11, 2023
2 parents 373392c + fb2aa3a commit 3274576
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/howto_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

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

4 changes: 2 additions & 2 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3274576

Please sign in to comment.