in source/lambda/shared/elb_load_monitor/elb_listener_rule.py [0:0]
def is_sheddable(self, source_group_arn: str, max_shed_weight: int) -> bool:
current_weight = self.forward_configs.get(source_group_arn)
logger.debug(source_group_arn + ' ' + str(100 - current_weight) + ' max ' + str(max_shed_weight))
if max_shed_weight == (100 - current_weight):
return False
return True