Skip to content

Commit 426f309

Browse files
authored
Remove limitation blocking autoscaling when multiple databases exist in a subscription
1 parent b63b312 commit 426f309

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

autoscaler/redis-cloud-autoscaler/src/main/java/com/redis/autoscaler/services/RedisCloudDatabaseService.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,6 @@ public Optional<Task> applyRule(Rule rule) throws IOException, InterruptedExcept
129129

130130
RedisCloudDatabase db = dbOpt.get();
131131

132-
int numDatabases = getDatabaseCount();
133-
if(numDatabases > 1){
134-
LOG.warn("Database count for subscription {} is greater than 1, using autoscaler is not supported, skipping rule: {}", config.getSubscriptionId(), rule);
135-
return Optional.empty();
136-
}
137-
138132

139133
ScaleRequest scaleRequest;
140134
switch (rule.getRuleType()){

0 commit comments

Comments
 (0)