Skip to content

Commit

Permalink
update expression
Browse files Browse the repository at this point in the history
  • Loading branch information
akumar1214 committed Nov 4, 2024
1 parent 5213414 commit 51b6b3c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def tune_indexer_concurrency(queue_urls:, min_cpu_target:, max_cpu_target:, maxi
nil
elsif free_storage < minimum_free_storage
details_logger.log_pause(free_storage)
0
MINIMUM_CONCURRENCY
elsif cpu_utilization < min_cpu_target
increase_factor = (cpu_midpoint / cpu_utilization).clamp(0.0, 1.5)
(current_concurrency * increase_factor).round.tap do |new_concurrency|
Expand Down Expand Up @@ -81,7 +81,7 @@ def tune_indexer_concurrency(queue_urls:, min_cpu_target:, max_cpu_target:, maxi
end
else
details_logger.log_reset
0
MINIMUM_CONCURRENCY
end

if new_target_concurrency && new_target_concurrency != current_concurrency
Expand Down Expand Up @@ -110,7 +110,7 @@ def get_min_free_storage
metric_data_queries: [
{
id: "minFreeStorageAcrossNodes",
expression: "SEARCH({AWS/ES,DomainName,NodeId} MetricName=\"FreeStorageSpace\", \"Minimum\", 30)",
expression: "SEARCH('{AWS/ES,ClientId,DomainName,NodeId} MetricName=\"FreeStorageSpace\"', 'Minimum', 30)",
return_data: true
}
]
Expand Down

0 comments on commit 51b6b3c

Please sign in to comment.