Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
1283ea29
Commit
1283ea29
authored
Mar 10, 2014
by
Carson Gee
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #863 from edx/cg/forum_tcp_listener
Addition of production tcp socket configuration
parents
38df2fa4
d907f4a5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
9 deletions
+8
-9
playbooks/roles/forum/defaults/main.yml
+5
-9
playbooks/roles/forum/templates/forum-supervisor.sh.j2
+2
-0
playbooks/roles/forum/templates/forum.conf.j2
+1
-0
No files found.
playbooks/roles/forum/defaults/main.yml
View file @
1283ea29
...
...
@@ -29,6 +29,9 @@ FORUM_ELASTICSEARCH_URL: "http://{{ FORUM_ELASTICSEARCH_HOST }}:{{ FORUM_ELASTIC
FORUM_NEW_RELIC_LICENSE_KEY
:
"
new-relic-license-key"
FORUM_NEW_RELIC_APP_NAME
:
"
forum-newrelic-app"
FORUM_WORKER_PROCESSES
:
"
4"
FORUM_LISTEN_HOST
:
"
0.0.0.0"
FORUM_LISTEN_PORT
:
"
4567"
FORUM_USE_TCP
:
false
forum_environment
:
RBENV_ROOT
:
"
{{
forum_rbenv_root
}}"
...
...
@@ -45,20 +48,13 @@ forum_environment:
NEW_RELIC_LICENSE_KEY
:
"
{{
FORUM_NEW_RELIC_LICENSE_KEY
}}"
WORKER_PROCESSES
:
"
{{
FORUM_WORKER_PROCESSES
}}"
DATA_DIR
:
"
{{
forum_data_dir
}}"
FORUM_LISTEN_HOST
:
"
{{
FORUM_LISTEN_HOST
}}"
FORUM_LISTEN_PORT
:
"
{{
FORUM_LISTEN_PORT
}}"
forum_user
:
"
forum"
forum_ruby_version
:
"
1.9.3-p448"
forum_source_repo
:
"
https://github.com/edx/cs_comments_service.git"
# Currently we are installing a branch of the comments service
# that configures unicorn to listen on a unix socket and get the
# worker count configuration from the environment. We are not
# merging to master of the comments service yet as this will have
# some incompatibilities with our Heroku deployments.
#
# https://github.com/edx/cs_comments_service/pull/83
#
forum_version
:
"
master"
forum_unicorn_port
:
"
4567"
#
# test config
...
...
playbooks/roles/forum/templates/forum-supervisor.sh.j2
View file @
1283ea29
...
...
@@ -5,6 +5,8 @@ cd {{ forum_code_dir }}
{
%
if
devstack %
}
{{
forum_rbenv_shims
}}
/ruby app.rb
{
%
elif
FORUM_USE_TCP %
}
{{
forum_gem_bin
}}
/unicorn
-c
config/unicorn_tcp.rb
{
%
else
%
}
{{
forum_gem_bin
}}
/unicorn
-c
config/unicorn.rb
{
% endif %
}
playbooks/roles/forum/templates/forum.conf.j2
View file @
1283ea29
...
...
@@ -6,3 +6,4 @@ stdout_logfile={{ supervisor_log_dir }}/%(program_name)-stdout.log
stderr_logfile={{ supervisor_log_dir }}/%(program_name)-stderr.log
killasgroup=true
stopasgroup=true
stopsignal=QUIT
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment