You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found your SQS autoscaler from the Wattpad issues discussion (Wattpad/kube-sqs-autoscaler#7). Unfortunately, your tool is apparently suffering from it's own issues.
I ran into the region problem (#1), and was able to fix it with the suggested env var. However, I'm not faced with the following:
{'sqs_queue_url': '<sqs url>', 'kubernetes_deployment': '<deployment>', 'kubernetes_namespace': <namespace>', 'aws_region': '<region>', 'poll_period': 5, 'scale_down_cool_down': 300, 'scale_up_cool_down': 30, 'scale_up_messages': 2, 'scale_down_messages': 0, 'max_pods': 5, 'min_pods': 1}
Starting poll for <sqs url> every 5s
Waiting for scale up cooldown
Waiting for scale up cooldown
Waiting for scale up cooldown
Waiting for scale up cooldown
Waiting for scale up cooldown
Waiting for scale up cooldown
loading deployment: <deployment> from namespace: <namepsace>
Traceback (most recent call last):
File "./k8s-sqs-autoscaler", line 71, in <module>
sqs.run(options)
File "/usr/src/app/sqs/sqs.py", line 95, in run
SQSPoller(options).run()
File "/usr/src/app/sqs/sqs.py", line 88, in run
self.poll()
File "/usr/src/app/sqs/sqs.py", line 35, in poll
self.scale_up()
File "/usr/src/app/sqs/sqs.py", line 50, in scale_up
deployment = self.deployment()
File "/usr/src/app/sqs/sqs.py", line 74, in deployment
return deployments.items[0]
IndexError: list index out of range
The error isn't really all that clear. Is this due to a lack of RBAC permissions? Or just some bad logic in your code? I can't really tell, unfortunately.
The text was updated successfully, but these errors were encountered:
Make sure the namespace and deployment which you are passing is correct. The deployment here is the label which you defile in deployment section of your yaml file e.g.
I found your SQS autoscaler from the Wattpad issues discussion (Wattpad/kube-sqs-autoscaler#7). Unfortunately, your tool is apparently suffering from it's own issues.
I ran into the region problem (#1), and was able to fix it with the suggested env var. However, I'm not faced with the following:
The error isn't really all that clear. Is this due to a lack of RBAC permissions? Or just some bad logic in your code? I can't really tell, unfortunately.
The text was updated successfully, but these errors were encountered: