##// END OF EJS Templates
sessions: update session tunning instructions.
marcink -
r2851:55dc8f3a default
parent child Browse files
Show More
@@ -12,7 +12,7 b' if there are lots of session files.'
12
12
13 Therefore, in a large scale deployment, to give better performance,
13 Therefore, in a large scale deployment, to give better performance,
14 scalability, and maintainability we recommend switching from file-based
14 scalability, and maintainability we recommend switching from file-based
15 sessions to database-based user sessions or memcached sessions.
15 sessions to database-based user sessions or Redis based sessions.
16
16
17 To switch to database-based user sessions uncomment the following section in
17 To switch to database-based user sessions uncomment the following section in
18 your :file:`/home/{user}/.rccontrol/{instance-id}/rhodecode.ini` file.
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 #beaker.session.data_dir = %(here)s/data/sessions/data
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 your :file:`/home/{user}/.rccontrol/{instance-id}/rhodecode.ini` file.
51 your :file:`/home/{user}/.rccontrol/{instance-id}/rhodecode.ini` file.
46
52
47 .. code-block:: ini
53 .. code-block:: ini
48
54
49 ## memcached sessions
55 ## redis sessions
50 beaker.session.type = ext:memcached
56 beaker.session.type = ext:redis
51 beaker.session.url = localhost:11211
57 beaker.session.url = localhost:6379
52
58
53
59
54 and make sure you comment out the file based sessions.
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