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 | 1 | .. _index: |
|
2 | 2 | |
|
3 | 3 | .. include:: ./../README.rst |
|
4 | 4 | |
|
5 | 5 | Users Guide |
|
6 | 6 | ----------- |
|
7 | 7 | |
|
8 | 8 | **Installation:** |
|
9 | 9 | |
|
10 | 10 | .. toctree:: |
|
11 | 11 | :maxdepth: 1 |
|
12 | 12 | |
|
13 | 13 | installation |
|
14 | 14 | setup |
|
15 | 15 | upgrade |
|
16 | 16 | |
|
17 | 17 | **Usage** |
|
18 | 18 | |
|
19 | 19 | .. toctree:: |
|
20 | 20 | :maxdepth: 1 |
|
21 | 21 | |
|
22 | 22 | usage/general |
|
23 | 23 | usage/git_support |
|
24 | usage/performance | |
|
24 | 25 | usage/statistics |
|
25 | 26 | usage/backup |
|
26 | 27 | usage/debugging |
|
27 | 28 | |
|
28 | 29 | **Develop** |
|
29 | 30 | |
|
30 | 31 | .. toctree:: |
|
31 | 32 | :maxdepth: 1 |
|
32 | 33 | |
|
33 | 34 | contributing |
|
34 | 35 | changelog |
|
35 | 36 | |
|
36 | 37 | **API** |
|
37 | 38 | |
|
38 | 39 | .. toctree:: |
|
39 | 40 | :maxdepth: 1 |
|
40 | 41 | |
|
41 | 42 | api/api |
|
42 | 43 | api/models |
|
43 | 44 | |
|
44 | 45 | |
|
45 | 46 | Other topics |
|
46 | 47 | ------------ |
|
47 | 48 | |
|
48 | 49 | * :ref:`genindex` |
|
49 | 50 | * :ref:`search` |
|
50 | 51 | |
|
51 | 52 | .. _virtualenv: http://pypi.python.org/pypi/virtualenv |
|
52 | 53 | .. _python: http://www.python.org/ |
|
53 | 54 | .. _django: http://www.djangoproject.com/ |
|
54 | 55 | .. _mercurial: http://mercurial.selenic.com/ |
|
55 | 56 | .. _bitbucket: http://bitbucket.org/ |
|
56 | 57 | .. _subversion: http://subversion.tigris.org/ |
|
57 | 58 | .. _git: http://git-scm.com/ |
|
58 | 59 | .. _celery: http://celeryproject.org/ |
|
59 | 60 | .. _Sphinx: http://sphinx.pocoo.org/ |
|
60 | 61 | .. _vcs: http://pypi.python.org/pypi/vcs No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now