[LNT] r311686 - Some docs on setting up a production grade LNT server

Chris Matthews via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 24 12:01:08 PDT 2017


Author: cmatthews
Date: Thu Aug 24 12:01:08 2017
New Revision: 311686

URL: http://llvm.org/viewvc/llvm-project?rev=311686&view=rev
Log:
Some docs on setting up a production grade LNT server

Modified:
    lnt/trunk/docs/intro.rst

Modified: lnt/trunk/docs/intro.rst
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/docs/intro.rst?rev=311686&r1=311685&r2=311686&view=diff
==============================================================================
--- lnt/trunk/docs/intro.rst (original)
+++ lnt/trunk/docs/intro.rst Thu Aug 24 12:01:08 2017
@@ -91,3 +91,23 @@ databases should be trivial. My plan is
 the possibility of developers easily running their own LNT installation for
 viewing nightly test results, and to run with whatever DB makes the most sense
 on the server.
+
+Running a LNT Server Locally
+----------------------------
+
+LNT can accommodate many more users in the production config.  In production:
+- Postgres or MySQL should be used as the database.
+- A proper wsgi server should be used, in front of a proxy like Nginx or Apache.
+
+To install the extra packages for the server config::
+
+    virtualenv venv
+    . ./venv/bin/activate
+    pip install -r requirements.server.txt
+    python setup.py install --server
+    lnt create path/to/data_dir --db-dir postgresql://user@host  # data_dir path will be where lnt data will go.
+    cd deployment
+    # Now edit app_wrapper.py to have your path/to/data_dir path and the log-file below.
+    gunicorn app_wrapper:app --bind 0.0.0.0:8000 --workers 8 --timeout 300 --name lnt_server --log-file /var/log/lnt/lnt.log --access-logfile /var/log/lnt/gunicorn_access.log --access-logfile /var/log/lnt/gunicorn_access.log --max-requests 250000
+
+




More information about the llvm-commits mailing list