Page 1 of 1

Question about OpenDental and Amazon EC2

Posted: Wed Apr 23, 2014 6:54 am
by jaynahar
Hello All,
I am testing latency while using AWS (with OpenDental) in the following two cases:
1. MySQL running using AWS RDS instance
2. MySQL running on AWS EC2 instance

For #1, I am able to connect using OD without any issues but not sure how to create connection for #2. I am able to make a connection using MySQL workbench by choosing TCP/IP over SSH but there is no such option in OD (or may be I do not know about it). Anyone who has been able to do this and can provide guidance would be appreciated.

Thanks,
-Jatin

Re: Question about OpenDental and Amazon EC2

Posted: Tue Apr 29, 2014 10:11 am
by dqadri
You have to expose the mysql daemon from your EC2 instance to your local machine, and then allow Open Dental to connect to that. I haven't looked closely at how OpenDental can utilize port numbers, but if you don't run a local mysql daemon, then it should be relatively simple.

Basically, you need to forward port 3306 from your EC2 instance to your local machine. SSH can setup port forwarding for you. Check out: https://help.ubuntu.com/community/SSH/O ... Forwarding for some tips.

at some point, you should be able to connect from your local machine to the Amazon EC2 instance by using the mysql command line tool, or other database tool. If that works, then Open Dental will work as well.

Re: Question about OpenDental and Amazon EC2

Posted: Fri May 30, 2014 9:33 am
by nanfad
You can also setup the web service to connect, they call it middle tier now. You can run it over ssh with only a single port forwarded. It helps a lot with latency as well.


I am highly interested in your results regarding RDS.

Take a look at this article

http://www.laurencegellert.com/2013/05/ ... -with-aws/

Re: Question about OpenDental and Amazon EC2

Posted: Wed Jun 04, 2014 1:06 pm
by sammyp42
Is running MySQL on Amazon HIPAA compliant? Sounds like it is as long as MySQL is encrypted. What about Google Cloud SQL? Seem to have a high level of encryption baked in... https://developers.google.com/cloud-sql/ Is this also HIPAA compliant? If not, what needs to be done to make this setup HIPAA friendly? Google Drive is already HIPAA compliant... using Google Cloud SQL seems like a perfect fit.

Re: Question about OpenDental and Amazon EC2

Posted: Wed Jun 18, 2014 8:32 am
by mjackson
I've been trying to get OpenDental working with either Amazon RDS or Google Cloud SQL the last day or so, and it seems that the biggest hiccup so far is that neither of these services grant you SUPER privileges, which seem required when OpenDental connects.

At the moment, I'm getting a

Code: Select all

Unable to set global sql mode. User probably does not have enough permission.
error after connecting. A little digging indicates this is because it's running

Code: Select all

SET GLOBAL sql_mode=' '
. FYI, RDS does have some entries in sql_mode, but Cloud SQL's global sql_mode is empty, so running this SET after checking the value of sql_mode would at least make this work for the Google case, but not for RDS.

The thread at viewtopic.php?f=3&t=2587 suggests that this topic came up several years ago, but I don't see any indication of a way around it.

Anyone had any luck here?

Re: Question about OpenDental and Amazon EC2

Posted: Mon Jun 23, 2014 11:29 am
by Arna
We are adding an enhancement shortly to allow us to operate in a Google Cloud SQL environment. We will need to do a little more research before I can confidently say that Amazon RDS will work.

Re: Question about OpenDental and Amazon EC2

Posted: Tue Jul 01, 2014 6:18 pm
by irfan
that would be huge . please keep us updated. im on a plane and got bored so i started to look into this and came across this thread. personally i prefer amazon over google in general:)

Would love to host OD in the cloud and not worry about server failure. imaging as well but id have to get a much better connection.

Re: Question about OpenDental and Amazon EC2

Posted: Thu Jul 10, 2014 9:51 am
by Tralston
The bug has been fixed and is available as of version 14.2.19.0, and we should now be okay to run in a Google Cloud SQL environment. We made an adjustment so that if the SET GLOBAL sql_mode ' ' is left blank it will overlook the permission issue.

Re: Question about OpenDental and Amazon EC2

Posted: Thu Jul 10, 2014 1:56 pm
by KevinRossen
Just an FYI. To get a business associates agreement from Amazon you have to have your EC2 run in a dedicated environment AND there is a substantial hourly upcharge for running instances on EC2. I can't share the specifics (they told me it's confidential), but it would be an understatement to say it's not very cost-effective after the upcharge.

EDIT: Well, you can get an estimate for EC2 services from their website. Based on that data, a dedicated medium server in a dedicated environment runs $1,728/mo.

Re: Question about OpenDental and Amazon EC2

Posted: Fri Jul 11, 2014 1:52 am
by Justin Shafer
Whoa...... This is exciting.

Re: Question about OpenDental and Amazon EC2

Posted: Sun Jan 25, 2015 8:18 pm
by dqadri
How is this going by the way? I think I would go Google over Amazon, but obviously pricing is imporant.

Re: Question about OpenDental and Amazon EC2

Posted: Sun Jun 21, 2015 10:16 pm
by KevinRossen
I've been on a mission to find an affordable virtual server for a few projects. I finally circled back to Google and they're apparently the most cost-effective BY FAR. You can get a BAA from them and they don't require any advanced level servers. The cheapest I found from Amazon was over $1,000 per month. Others ranged between $500-$800. Google is pennies in comparison.

But they also offer what they're calling Google Cloud SQL, which, from what I can tell, is essentially just your MySQL database running on their own MySQL server. I don't really know all the technical details yet, but it seems like it could be an attractive option. If not Cloud SQL, then you could easily setup a virtual server with either Windows 2012 or Linux (if that's your flavor). They've really built out a great looking infrastructure service. Anyway, below is a screenshot showing what would be a Cloud SQL setup running 10 hours, 5 days a week. It's a 2GB database (WAY bigger than most would need for a long time) with 2GB of RAM. That's an attractive price.

Image

I have not yet tested it as I haven't finalized getting the BAA from them.

Re: Question about OpenDental and Amazon EC2

Posted: Mon Apr 04, 2016 4:59 pm
by nanfad
Has anyone followed up with this?

I don't see a web based version of OD coming anytime soon. VM is just way to expensive. Cloud SQL is probably the best stop gap at the moment.

Re: Question about OpenDental and Amazon EC2

Posted: Mon Apr 04, 2016 6:03 pm
by irfan
My IT guy got a BAA from amazon and he isnt paying that much.

Re: Question about OpenDental and Amazon EC2

Posted: Tue Apr 05, 2016 5:08 pm
by nanfad
Amazon has many different BAA services. Was it RDS or AWS?

Re: Question about OpenDental and Amazon EC2

Posted: Tue Apr 05, 2016 7:05 pm
by irfan
Aws

Re: Question about OpenDental and Amazon EC2

Posted: Thu Apr 07, 2016 6:08 am
by KevinRossen
AWS & Google Cloud are the two most affordable options out there. The key is making sure you get a BAA from whichever company you go with AND to make sure you have access control configured properly. You'll want to make sure that you're not leaving the server/SQL exposed to anyone on the internet. I have used both AWS and Google and I prefer Google because their web tools are a bit easier to use. That said, I prefer AWS for the S3 storage as it is a bit more robust in terms of controlling access to the data.

Irfan, you should share your IT guy's contact info. He seems to be very knowledgeable on utilizing AWS.

Re: Question about OpenDental and Amazon EC2

Posted: Wed Aug 03, 2016 7:25 pm
by epicurean
Hi,
Sorry to ask a newbie question, but what is BAA? How do you go about getting one?
I am operating out of Singapore and would be interested in a google cloud sql server as well.

Re: Question about OpenDental and Amazon EC2

Posted: Thu Aug 04, 2016 9:08 am
by Arna
A BAA is a Business Associate Agreement. They are required as part of HIPAA in the United States (Health Insurance Portability and Accountability Act).
For Singapore outfits, you will need to comply with your local and federal privacy laws.