Show More
@@ -12,7 +12,7 b' if there are lots of session files.' | |||
|
12 | 12 | |
|
13 | 13 | Therefore, in a large scale deployment, to give better performance, |
|
14 | 14 | scalability, and maintainability we recommend switching from file-based |
|
15 |
sessions to database-based user sessions or |
|
|
15 | sessions to database-based user sessions or Redis based sessions. | |
|
16 | 16 | |
|
17 | 17 | To switch to database-based user sessions uncomment the following section in |
|
18 | 18 | your :file:`/home/{user}/.rccontrol/{instance-id}/rhodecode.ini` file. |
@@ -41,14 +41,20 b' and make sure you comment out the file b' | |||
|
41 | 41 | #beaker.session.data_dir = %(here)s/data/sessions/data |
|
42 | 42 | |
|
43 | 43 | |
|
44 | To switch to memcached-based user sessions uncomment the following section in | |
|
44 | The `table_name` will be automatically created on specified database if it isn't yet existing. | |
|
45 | Database specified in the `beaker.session.sa.url` can be the same that RhodeCode | |
|
46 | uses, or if required it can be a different one. We recommend to use the same database. | |
|
47 | ||
|
48 | ||
|
49 | ||
|
50 | To switch to reds-based user sessions uncomment the following section in | |
|
45 | 51 | your :file:`/home/{user}/.rccontrol/{instance-id}/rhodecode.ini` file. |
|
46 | 52 | |
|
47 | 53 | .. code-block:: ini |
|
48 | 54 | |
|
49 |
## |
|
|
50 |
beaker.session.type = ext: |
|
|
51 |
beaker.session.url = localhost: |
|
|
55 | ## redis sessions | |
|
56 | beaker.session.type = ext:redis | |
|
57 | beaker.session.url = localhost:6379 | |
|
52 | 58 | |
|
53 | 59 | |
|
54 | 60 | and make sure you comment out the file based sessions. |
General Comments 0
You need to be logged in to leave comments.
Login now