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

Support a production database for running as a hosted web server instance #56

Open
isabelle-dr opened this issue Jan 8, 2022 · 5 comments

Comments

@isabelle-dr
Copy link

Issue by barbeau
Nov 6, 2017
Originally opened as CUTR-at-USF#308


Summary:

We currently have a hosted instance of the validator at http://transittools.forest.usf.edu/, but it's just a running instance of the JAR snapshot, which means that it's using Hibernate with HSQLDB. This gets unstable when running in production and inserting a lot of data. Plus, this virtualized machine only has 4GB of RAM.

There are a number of options for a permanent hosted instance of the validator. Ideally we'd get it running on a platform-as-a-service like Amazon Lamba (etc.) or Google App Engine, as there should be relatively low traffic and both of those services have a free tier. However, I believe both of the above require changes to the project to leverage Hibernate.

For now, I believe the most straight-forward path for something stable in the near term will be to leverage another internal server at CUTR for hosting the database server, which will free up transittools for just the validator.

@Suryakandukoori I believe the other CUTR virtualized machine already has MS SQL Server running on it, so let's just re-use this instead of installing a new DBMS (e.g., MySQL).

@isabelle-dr
Copy link
Author

Comment by barbeau
Nov 22, 2017


Link to more documentation on setting up Hibernate for MS SQL Server (and other databases too):
https://github.com/CUTR-at-USF/gtfs-realtime-validator/blob/master/CONFIG.md#database

Direct link to MS SQL Server config:
https://stackoverflow.com/questions/3585544/how-to-configure-hibernate-config-file-for-sql-server/3588652#3588652

@isabelle-dr
Copy link
Author

Comment by barbeau
Nov 22, 2017


I believe you'll also need to install the latest MS SQL Server JDBC drivers on transittools too:
https://docs.microsoft.com/en-us/sql/connect/jdbc/microsoft-jdbc-driver-for-sql-server

@isabelle-dr
Copy link
Author

Comment by barbeau
Feb 20, 2018


As @Suryakandukoori worked on this, he discovered that several of the SQL statements behind some of the Hibernate view model objects do not work with Microsoft SQL Server. Therefore, to accomplish this task we need to abstract some of these SQL statements so they work beyond just HSQLDB.

@isabelle-dr
Copy link
Author

isabelle-dr commented Jan 8, 2022

Comment by barbeau
Dec 15, 2020


There is some work started on compatibility with MS SQL Server in this PR - CUTR-at-USF#323.

@isabelle-dr isabelle-dr added this to the v1.1 milestone Jan 8, 2022
@isabelle-dr isabelle-dr modified the milestones: v1.1, v1.0 Jan 9, 2022
@barbeau barbeau changed the title Support running as a hosted web server instance Support a production database for running as a hosted web server instance Feb 25, 2022
@barbeau
Copy link
Member

barbeau commented Feb 25, 2022

As mentioned in #88, there has been some work in that issue and referenced PR towards compatibility with Microsoft SQL Server. Alternate production DBMS could also be investigated.

@barbeau barbeau modified the milestones: v1.0, v1.2 Feb 25, 2022
@maximearmstrong maximearmstrong added this to GTFS Realtime - Validator in The Tech Dashboard (archived) Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
The Tech Dashboard (archived)
GTFS Realtime - Validator
Development

No branches or pull requests

2 participants