mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-09-30 07:57:27 +02:00
change volume specs to int32 and define max iops and throughput values (#3139)
* change int64 volume specs to int32 like in used AWS lib * upper iops and throughput limits * minor refactoring in ebs.go
This commit is contained in:
@@ -70,8 +70,8 @@ spec:
|
||||
"cost_memory": 0.014375,
|
||||
"free_iops": 3000,
|
||||
"free_throughput": 125,
|
||||
"limit_iops": 16000,
|
||||
"limit_throughput": 1000,
|
||||
"limit_iops": 80000,
|
||||
"limit_throughput": 2000,
|
||||
"postgresql_versions": [
|
||||
"18",
|
||||
"17",
|
||||
|
||||
@@ -86,9 +86,9 @@ COST_ELB = float(getenv('COST_ELB', 0.03)) # per hour
|
||||
|
||||
# maximum and limitation of IOPS and throughput
|
||||
FREE_IOPS = float(getenv('FREE_IOPS', 3000))
|
||||
LIMIT_IOPS = float(getenv('LIMIT_IOPS', 16000))
|
||||
LIMIT_IOPS = float(getenv('LIMIT_IOPS', 80000))
|
||||
FREE_THROUGHPUT = float(getenv('FREE_THROUGHPUT', 125))
|
||||
LIMIT_THROUGHPUT = float(getenv('LIMIT_THROUGHPUT', 1000))
|
||||
LIMIT_THROUGHPUT = float(getenv('LIMIT_THROUGHPUT', 2000))
|
||||
# get the default value of core and memory
|
||||
DEFAULT_MEMORY = getenv('DEFAULT_MEMORY', '300Mi')
|
||||
DEFAULT_MEMORY_LIMIT = getenv('DEFAULT_MEMORY_LIMIT', '300Mi')
|
||||
|
||||
+2
-2
@@ -28,8 +28,8 @@ default_operator_ui_config='{
|
||||
"cost_memory": 0.014375,
|
||||
"free_iops": 3000,
|
||||
"free_throughput": 125,
|
||||
"limit_iops": 16000,
|
||||
"limit_throughput": 1000,
|
||||
"limit_iops": 80000,
|
||||
"limit_throughput": 2000,
|
||||
"postgresql_versions": [
|
||||
"18",
|
||||
"17",
|
||||
|
||||
Reference in New Issue
Block a user