##// END OF EJS Templates
Added simple docs for optimizing RhodeCode performance
marcink -
r2517:fa88997a beta
parent child Browse files
Show More
@@ -0,0 +1,38 b''
1 .. _performance:
2
3 ================================
4 Optimizing RhodeCode Performance
5 ================================
6
7
8 Follow these few steps to improve performance of RhodeCode system.
9
10
11 1. Increase cache::
12
13 in the .ini file
14 beaker.cache.sql_cache_long.expire=3600 <-- set this to higher number
15
16 This option affects the cache expiration time for main page. Having
17 few hundreds of repositories on main page can sometimes make the system
18 to behave slow when cache expires for all of them. Increasing `expire`
19 option to day (86400) or a week (604800) will improve general response
20 times for the main page
21
22 2. Switch from sqlite to postgres or mysql
23
24 sqlite is a good option when having small load on the system. But due to
25 locking issues with sqlite, it's not recommended to use it for larger
26 setup. Switching to mysql or postgres will result in a immediate
27 performance increase.
28
29 3. Scale RhodeCode horizontally
30
31
32 - running two or more instances on the same server can speed up things a lot
33 - load balance using round robin or ip hash
34 - you need to handle consistent user session storage by switching to
35 db sessions, client side sessions or sharing session data folder across
36 instances. See http://beaker.readthedocs.org/ docs for details.
37 - remember that each instance needs it's own .ini file and unique
38 `instance_id` set in them No newline at end of file
@@ -1,60 +1,61 b''
1 .. _index:
1 .. _index:
2
2
3 .. include:: ./../README.rst
3 .. include:: ./../README.rst
4
4
5 Users Guide
5 Users Guide
6 -----------
6 -----------
7
7
8 **Installation:**
8 **Installation:**
9
9
10 .. toctree::
10 .. toctree::
11 :maxdepth: 1
11 :maxdepth: 1
12
12
13 installation
13 installation
14 setup
14 setup
15 upgrade
15 upgrade
16
16
17 **Usage**
17 **Usage**
18
18
19 .. toctree::
19 .. toctree::
20 :maxdepth: 1
20 :maxdepth: 1
21
21
22 usage/general
22 usage/general
23 usage/git_support
23 usage/git_support
24 usage/performance
24 usage/statistics
25 usage/statistics
25 usage/backup
26 usage/backup
26 usage/debugging
27 usage/debugging
27
28
28 **Develop**
29 **Develop**
29
30
30 .. toctree::
31 .. toctree::
31 :maxdepth: 1
32 :maxdepth: 1
32
33
33 contributing
34 contributing
34 changelog
35 changelog
35
36
36 **API**
37 **API**
37
38
38 .. toctree::
39 .. toctree::
39 :maxdepth: 1
40 :maxdepth: 1
40
41
41 api/api
42 api/api
42 api/models
43 api/models
43
44
44
45
45 Other topics
46 Other topics
46 ------------
47 ------------
47
48
48 * :ref:`genindex`
49 * :ref:`genindex`
49 * :ref:`search`
50 * :ref:`search`
50
51
51 .. _virtualenv: http://pypi.python.org/pypi/virtualenv
52 .. _virtualenv: http://pypi.python.org/pypi/virtualenv
52 .. _python: http://www.python.org/
53 .. _python: http://www.python.org/
53 .. _django: http://www.djangoproject.com/
54 .. _django: http://www.djangoproject.com/
54 .. _mercurial: http://mercurial.selenic.com/
55 .. _mercurial: http://mercurial.selenic.com/
55 .. _bitbucket: http://bitbucket.org/
56 .. _bitbucket: http://bitbucket.org/
56 .. _subversion: http://subversion.tigris.org/
57 .. _subversion: http://subversion.tigris.org/
57 .. _git: http://git-scm.com/
58 .. _git: http://git-scm.com/
58 .. _celery: http://celeryproject.org/
59 .. _celery: http://celeryproject.org/
59 .. _Sphinx: http://sphinx.pocoo.org/
60 .. _Sphinx: http://sphinx.pocoo.org/
60 .. _vcs: http://pypi.python.org/pypi/vcs No newline at end of file
61 .. _vcs: http://pypi.python.org/pypi/vcs
General Comments 0
You need to be logged in to leave comments. Login now