Skip to content

Commit

Permalink
#2935: webserver-xxx.yaml, add new configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff1evesque committed Apr 5, 2018
1 parent a082fb2 commit 0ea97a0
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
29 changes: 29 additions & 0 deletions hiera/webserver/webserver-api.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
##
## This file contains webserver related configurations:
##
## - flask: application framework
## - gunicorn: webserver(s)
## - nginx: forward proxy
##
## @gunicorn:workers, the number of work processes should be between 2-4
## workers per core in the server.
##
## http://docs.gunicorn.org/en/latest/run.html#commonly-used-arguments
##
webserver:
root_dir: '/var/machine-learning'
pyyaml: '3.12'

flask:
log_path: '/log/webserver/flask.log'

gunicorn:
version: 19.6.0'
conf: '/etc/init/gunicorn.conf'
user: 'root'
group: 'root'
version: ''
bind: 0.0.0.0
port: 6001
workers: 6
log_path: '/log/webserver/gunicorn.log'
24 changes: 24 additions & 0 deletions hiera/webserver/webserver-web.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
##
## This file contains webserver related configurations:
##
## - flask: application framework
## - gunicorn: webserver(s)
## - nginx: forward proxy
##
## @gunicorn:workers, the number of work processes should be between 2-4
## workers per core in the server.
##
## http://docs.gunicorn.org/en/latest/run.html#commonly-used-arguments
##
webserver:
root_dir: '/var/machine-learning'

flask:
log_path: '/log/webserver/flask.log'

gunicorn:
run: true
bind: 0.0.0.0
port: 5001
workers: 6
log_path: '/log/webserver/gunicorn.log'

0 comments on commit 0ea97a0

Please sign in to comment.