-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
157 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
PYTHONUNBUFFERED=True | ||
PYTHONUNBUFFERED=True |
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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
api: python3 -m bottle --bind=localhost:$PORT --debug --reload user | ||
api: python3 -m bottle --bind=localhost:$PORT --debug --reload timeline | ||
gateway: python3 -m bottle --bind=localhost:$PORT --debug --reload gateway | ||
users: python3 -m bottle --bind=localhost:$PORT --debug --reload user | ||
timelines: python3 -m bottle --bind=localhost:$PORT --debug --reload timeline | ||
# foreman start -m gateway=1,users=1,timelines=3 |
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,24 @@ | ||
#reverse proxy | ||
[proxy] | ||
upstreams = [ | ||
"http://localhost:5200" | ||
] | ||
#These are tree instances for the load balancer to direct the users requests | ||
[users] | ||
userports = [ | ||
"http://localhost:5100", | ||
"http://localhost:5101", | ||
"http://localhost:5102" | ||
] | ||
#These are tree instances for the load balancer to direct the timeline requests | ||
[timeline] | ||
timelineports = [ | ||
"http://localhost:5000", | ||
"http://localhost:5001", | ||
"http://localhost:5002" | ||
] | ||
|
||
[logging] | ||
config = logging.ini | ||
requests = true | ||
|
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,37 @@ | ||
# | ||
# Simple logging configuration for Python | ||
# | ||
# NOTE: Don't add spaces between comma-separated lists in this file | ||
# | ||
|
||
[DEFAULT] | ||
filename = 'gateway.log' | ||
|
||
[loggers] | ||
keys = root | ||
|
||
[logger_root] | ||
level = DEBUG | ||
handlers = console,logfile | ||
|
||
[handlers] | ||
keys = console,logfile | ||
|
||
[handler_console] | ||
class = StreamHandler | ||
args = (sys.stderr,) | ||
formatter = simple | ||
|
||
[handler_logfile] | ||
class = FileHandler | ||
args = (%(filename)s,) | ||
formatter = dated | ||
|
||
[formatters] | ||
keys = simple,dated | ||
|
||
[formatter_simple] | ||
format = %(levelname)s in %(name)s: %(message)s | ||
|
||
[formatter_dated] | ||
format = [%(asctime)s] %(levelname)s in %(name)s: %(message)s |
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 @@ | ||
[sqlite] | ||
dbfile2 = ./timeline.db | ||
commit = auto | ||
|
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,5 @@ | ||
[sqlite] | ||
dbfile = ./user.db | ||
#dbfile2 = ./timeline.db | ||
commit = auto | ||
|
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 |
---|---|---|
|
@@ -19,4 +19,5 @@ timelineports = [ | |
|
||
[logging] | ||
config = logging.ini | ||
requests = true | ||
requests = true | ||
|
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
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