-
Notifications
You must be signed in to change notification settings - Fork 0
Update docker to use Aurora instead of MariaDB #9
Comments
I'm struggling to migrate the mariadb "bugzilla" content to the new "abugzilla" Aurora one I've created in the staging environment.
I backed up as root (or am I supposed to use a the user account?):
dev-root-backup.sql is 17GB btw. restore to Aurora is failing with https://ap-southeast-1.console.aws.amazon.com/rds/home?region=ap-southeast-1#dbinstance:id=abugzilla |
it might be a packet size issue actually... |
Btw once the Aurora DB is prepared, no Docker config changes are needed. IIUC db.dev.unee-t.com CNAME needs to be updated to abugzilla.c5eg6u2xj9yy.ap-southeast-1.rds.amazonaws.com. Though the security group should be double checked. |
2 things: 2- "no Docker config changes are needed" |
There is also a mention of Aurora not liking MyISAM too so we probably need to consider how we can force the BZ checksetup script to accomodate that too... https://aws.amazon.com/premiumsupport/knowledge-center/migrate-mysql-aurora/ This migration is non trivial I agree but do we have a better alternative? |
|
"We can create a new CNAME. auroradb.dev.unee-t.com and trigger a bugzilla re-deployment" "I assumed the stored procedures that trigger lambda would just failed on mariadb on a local instance." "it is very difficult if not impossible to replicate the functionality locally (off cloud)." |
This is working now in the dev (Aurora MySQL 5.7.12 db.t2.medium) and demo (Aurora MySQL 5.7.12
Local Docker mariadb will obviously not work since mysql.lambda_async is only available on AWS Aurora. |
At this point, local DB development is limited. i.e. it will be very confusing for new contributors when triggers fail to run Aurora proprietary lambda procedures. No Docker image exists to avoid this. For day to day local development, perhaps the errors can ignored, since they would only be pertaining to notifications. Giving new contributors access to an AWS staging environment should be considered. |
Since we need/want to use Aurora to benefit from AWS Lambda notification capabilities, we need to make sure that the docker uses Aurora at build time.
This is a Major update and will make Unee-T more dependent on AWS (until further releases) but this seems to be the most efficient and scalable way forward at this point.
We probably also need to update the README wherever relevant.
@kaihendry feel free to add/comment if necessary
The text was updated successfully, but these errors were encountered: