-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Removed OSCache. Using EHCache and Guava instead. (#67) * Gateway HA implementation * perf: Utilize EHCache and Guava cache only * fix: changes after review * docs: update gateway-ha README.md * fix: updated after review * fix: replaced cacheDir with gatewayStateDir * Removed OSCache. Using EHCache and Guava instead. (#67) * Gateway HA implementation * perf: Utilize EHCache and Guava cache only * fix: changes after review * docs: update gateway-ha README.md * fix: updated after review * fix: replaced cacheDir with gatewayStateDir * feat: Added db migration script * fix: removed db-migrator-plugin from validate phase
- Loading branch information
1 parent
0c52b95
commit 4cd9e18
Showing
3 changed files
with
44 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
development.driver=com.mysql.cj.jdbc.Driver | ||
development.username=root | ||
development.password=root123 | ||
development.url=jdbc:mysql://127.0.0.1:3306/prestogateway |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
CREATE DATABASE prestogateway; | ||
|
||
CREATE TABLE IF NOT EXISTS gateway_backend ( | ||
name VARCHAR(256) PRIMARY KEY, | ||
routing_group VARCHAR (256), | ||
backend_url VARCHAR (256), | ||
active BOOLEAN | ||
); | ||
|
||
CREATE TABLE IF NOT EXISTS query_history ( | ||
query_id VARCHAR(256) PRIMARY KEY, | ||
query_text VARCHAR (256), | ||
created bigint, | ||
backend_url VARCHAR (256), | ||
user_name VARCHAR(256), | ||
source VARCHAR(256) | ||
); | ||
CREATE INDEX query_history_created_idx ON query_history(created); |