Skip to content

Current Equation of "Size of ETCD" is Incorrect #467

Open
@grantthomp

Description

@grantthomp

Describe the problem

The documentation states the equation to use for calculating maximum size of ETCD is:

max(etcd_db_total_size_in_bytes{job="kube-apiserver"} / (8 * 1024 * 1024 * 1024))

That being said:

  1. If the output intended is in Gigabytes, then the 8 should not be present
  2. If the output intended is in Gigabits, then the 8 should be in the numerator as you must first convert Bytes to Bits.

For Example:

Assume: etcd_db_total_size_in_bytes = 3,589,934,592

Convert this to Gigabytes:

(3,589,934,592 Bytes) X (1 Kilobyte / 1024 Bytes) X ( 1 Megabyte / 1024 Kilobytes) X ( 1 Gigabyte / 1024 Megabytes) == 3.34 Gigabytes

Since the top number is in "Bytes" and not "Bits", then the 8 should not be in the denominator.

If the equation is intending to display Gigabits, the math would be wrong since the 8 should be on the "numerator" and not the "denominator".

(3,589,934,592 Bytes) X (8 Bits / 1 Byte) X (1 Kilobit / 1024 Bits) X ( 1 Megabit / 1024 Kilobit) X ( 1 Gigabit / 1024 Megabit) == 26.75 Gigabits

References
Please include a link to the lines where the error appears.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions