Skip to content
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

Add mongoDB scaler #1465

Closed
NUCsimple opened this issue Dec 31, 2020 · 4 comments
Closed

Add mongoDB scaler #1465

NUCsimple opened this issue Dec 31, 2020 · 4 comments

Comments

@NUCsimple
Copy link
Contributor

Provide a scaler based on a query to mongoDB:

  • Scaler Source: Mongo DB is a database with a large number of users.
  • How do you want to scale: Scale on target value from mongo query. Similar to mysql.
  • Authentication: MongoDB client require address and password for authentication
@tomkerkhove
Copy link
Member

Thanks for the contribution @NUCsimple, we'll review it asap!

@taxilian
Copy link

very cool -- wish I knew Go well enough to add support for tls connections. It's certainly possible to specify tls in the connection string, but the most secure way to do mongodb uses tls authentication as well, meaning that you need to not only tell it "use TLS", you need to give it a CA certificate and a client key / certificate to use.

Seems like this could be done either by having the key, cert, and ca in the same secret or by allowing you to provide a tls secret as well.

I may have to try to learn enough go to do a PR for this as it would be really useful for me

@zroubalik
Copy link
Member

@taxilian just give it a try, it is not that hard to contribute in Go :)
You can check other scalers how they handle certs referencing, for example Kafka, Metrics API scaler or other ones.

@JorTurFer
Copy link
Member

Maybe can this issue be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants