-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
Also support mysql Keda trigger in scaledObject #36166
Labels
Comments
claneys
added
area:helm-chart
Airflow Helm Chart
kind:bug
This is a clearly a bug
needs-triage
label for new issues that we didn't triage yet
labels
Dec 11, 2023
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval. |
claneys
added a commit
to claneys/airflow
that referenced
this issue
Dec 11, 2023
apache#36166 Signed-off-by: Romain Forlot <romain.forlot@dailymotion.com>
claneys
added a commit
to claneys/airflow
that referenced
this issue
Dec 13, 2023
apache#36166 Signed-off-by: Romain Forlot <romain.forlot@dailymotion.com>
claneys
added a commit
to claneys/airflow
that referenced
this issue
Dec 15, 2023
apache#36166 Signed-off-by: Romain Forlot <romain.forlot@dailymotion.com>
hussein-awala
added
type:new-feature
Changelog: New Features
and removed
kind:bug
This is a clearly a bug
needs-triage
label for new issues that we didn't triage yet
labels
Dec 17, 2023
claneys
added a commit
to claneys/airflow
that referenced
this issue
Dec 18, 2023
apache#36166 Signed-off-by: Romain Forlot <romain.forlot@dailymotion.com>
claneys
added a commit
to claneys/airflow
that referenced
this issue
Dec 19, 2023
apache#36166 Signed-off-by: Romain Forlot <romain.forlot@dailymotion.com>
claneys
added a commit
to claneys/airflow
that referenced
this issue
Dec 20, 2023
apache#36166 Signed-off-by: Romain Forlot <romain.forlot@dailymotion.com>
claneys
added a commit
to claneys/airflow
that referenced
this issue
Dec 27, 2023
apache#36166 Signed-off-by: Romain Forlot <romain.forlot@dailymotion.com>
claneys
added a commit
to claneys/airflow
that referenced
this issue
Dec 28, 2023
apache#36166 Signed-off-by: Romain Forlot <romain.forlot@dailymotion.com>
claneys
added a commit
to claneys/airflow
that referenced
this issue
Jan 3, 2024
apache#36166 Signed-off-by: Romain Forlot <romain.forlot@dailymotion.com>
claneys
added a commit
to claneys/airflow
that referenced
this issue
Jan 8, 2024
apache#36166 Signed-off-by: Romain Forlot <romain.forlot@dailymotion.com>
claneys
added a commit
to claneys/airflow
that referenced
this issue
Jan 9, 2024
apache#36166 Signed-off-by: Romain Forlot <romain.forlot@dailymotion.com>
claneys
added a commit
to claneys/airflow
that referenced
this issue
Jan 11, 2024
apache#36166 Signed-off-by: Romain Forlot <romain.forlot@dailymotion.com>
claneys
added a commit
to claneys/airflow
that referenced
this issue
Jan 15, 2024
apache#36166 Signed-off-by: Romain Forlot <romain.forlot@dailymotion.com>
claneys
added a commit
to claneys/airflow
that referenced
this issue
Jan 16, 2024
apache#36166 Signed-off-by: Romain Forlot <romain.forlot@dailymotion.com>
claneys
added a commit
to claneys/airflow
that referenced
this issue
Jan 17, 2024
apache#36166 Signed-off-by: Romain Forlot <romain.forlot@dailymotion.com>
claneys
added a commit
to claneys/airflow
that referenced
this issue
Jan 18, 2024
apache#36166 Signed-off-by: Romain Forlot <romain.forlot@dailymotion.com>
claneys
added a commit
to claneys/airflow
that referenced
this issue
Jan 19, 2024
apache#36166 Signed-off-by: Romain Forlot <romain.forlot@dailymotion.com>
claneys
added a commit
to claneys/airflow
that referenced
this issue
Jan 20, 2024
apache#36166 Signed-off-by: Romain Forlot <romain.forlot@dailymotion.com>
10 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Official Helm Chart version
1.11.0 (latest released)
Apache Airflow version
2.7.3
Kubernetes Version
1.25
Helm Chart configuration
What happened
Airflow currently support two SQL database backend with postgresql and mysql. PostgreSQL being the default one it's also the trigger used by default by the Keda ScaledObject created when enabling autoscaling. Which do not work if using a mysql database. Query has to be changed a bit and mysql trigger parameters aren't the same (pretty sneaky little changes within key names) and most of all the connection string used isn't the correct one when addressing to mysql.
Rendered connection string: mysql://user:password@host:port/db_name
connection string that work: user:password@tcp(host:port)/db_name
What you think should happen instead
Have the trigger correctly set using values provided by the user to connect to the mysql database.
Use the already existing
kedaConnection
key to setup the correct connection string for mysql and as if using the Pgbouncer provide the KEDA_DB_CONN to the worker as environment variable.The correct connectionString
How to reproduce
disable internal postgresql instance and connect to a mysql one. Then
Anything else
I wrote a PR that supports both cases hoping that it will satisfying you but not sure if it's the best option. I'll be glad to discuss and improve it.
I saw the issue #34863 already opened and found that it has broader expection that only support the mysql db backend, so I opened this one.
Thanks
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: