-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow providing separate host/port parameters for Redis scaler #694
Comments
@inuyasha82 is working on a prototype of this, we would like to know if you folks agree with adding this and any suggestion welcome. Thanks! |
That's a good point actually - I'm not sure if I'd bite the bullet and remove Thoughts by others? |
@tomkerkhove i.e some like the redis scaler supporot only one format, usually host:port with different naming (redis has address, others have host, etc). some like postgresql scaler have support for both format, host, port, and host:port but in this case is called "connection". maybe some scalers doesn't support the host:port format. |
@zroubalik @jeffhollan What do you think about this? Should we take this standardization into account for 2.0? |
I think we should, but I currently don't know all details about all scalers to make an informed decision. Therefore I don't know whether standardization is a good approach or not -> Do all scalers have similar needs/fields/paramteres to follow standardized format (given the nature of the scalers source, ie. queue/event/...)? Do we want to bring some partial mandatory format? Won't it bring unnecessary mess? We might need an analysis across all scalers, what parameters they are using and which way to see whether there is possibility to create some standard format. |
From looking at a number of the scalers which have proper docs linked at https://keda.sh/ I found one at least does not need this type of information: https://keda.sh/scalers/gcp-pub-sub/ but many others do and they are far from consistent. Most seem to only accept a single param that should contain host:port info, and the name of the parameter varies a lot, some examples: |
I think it would make it simpler to learn how to work with different queues if this was a bit more standard. |
What I'm reading is that:
Can everybody agree with that? If so, I'll create a dedicated issue for that. In terms of #694 itself, totally agree that we should add it but prefer |
@tomkerkhove yeah, i agree with your conclusions, as per 1 when you talk about mandatory fields, are u referring to some fields that should be commond in all scalers?
|
Hi everyone, just to let u know that i created PR #710 to implement this request. |
Thanks @inuyasha82! See #712 for standardization! |
I think we can close this |
Use-Case
The config for the Redis Lists scaler requires the following format for the host/port:
In our deployments we have separate env vars for hosts and ports, so would like to have an alternative to provide this information in separate parameters, similarly to how it is allowed for PostgreSQL and MySQL scalers.
Specification
address
param working as ishost
andport
parameters (look at implementation of MySQL/PostgreSQL as example)address
andhost/port
providedThe text was updated successfully, but these errors were encountered: