##// END OF EJS Templates
docs: deprecate beaker.cache in docs
marcink -
r3058:b5d3f00d default
parent child Browse files
Show More
@@ -47,7 +47,7 b' the ``debug`` level.'
47 47 ### LOGGING CONFIGURATION ####
48 48 ################################
49 49 [loggers]
50 keys = root, sqlalchemy, beaker, rhodecode, ssh_wrapper
50 keys = root, sqlalchemy, rhodecode, ssh_wrapper
51 51
52 52 [handlers]
53 53 keys = console, console_sql, file, file_rotating
@@ -69,12 +69,6 b' the ``debug`` level.'
69 69 ## "level = DEBUG" logs the route matched and routing variables.
70 70 propagate = 1
71 71
72 [logger_beaker]
73 level = DEBUG
74 handlers =
75 qualname = beaker.container
76 propagate = 1
77
78 72 [logger_rhodecode]
79 73 level = DEBUG
80 74 handlers =
@@ -113,33 +113,33 b' match, for example:'
113 113 VCS Server Memory Optimization
114 114 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
115 115
116 To configure the VCS server to manage the cache efficiently, you need to
116 To optimize the VCS server to manage the cache and memory usage efficiently, you need to
117 117 configure the following options in the
118 118 :file:`/home/{user}/.rccontrol/{vcsserver-id}/vcsserver.ini` file. Once
119 configured, restart the VCS Server.
119 configured, restart the VCS Server. By default we use an optimal settings, but in certain
120 conditions tunning expiration_time and max_size can affect memory usage and performance
120 121
121 .. rst-class:: dl-horizontal
122 .. code-block:: ini
122 123
123 \beaker.cache.repo_object.type = memorylru
124 Configures the cache to discard the least recently used items.
125 This setting takes the following valid options:
124 ## cache region for storing repo_objects cache
125 rc_cache.repo_object.backend = dogpile.cache.rc.memory_lru
126
127 ## cache auto-expires after N seconds, setting this to 0 disabled cache
128 rc_cache.repo_object.expiration_time = 300
126 129
127 * ``memorylru``: The default setting, which removes the least recently
128 used items from the cache.
129 * ``memory``: Runs the VCS Server without clearing the cache.
130 * ``nocache``: Runs the VCS Server without a cache. This will
131 dramatically reduce the VCS Server performance.
130 ## max size of LRU, old values will be discarded if the size of cache reaches max_size
131 ## Sets the maximum number of items stored in the cache, before the cache
132 ## starts to be cleared.
132 133
133 \beaker.cache.repo_object.max_items = 100
134 Sets the maximum number of items stored in the cache, before the cache
135 starts to be cleared.
134 ## As a general rule of thumb, running this value at 120 resulted in a
135 ## 5GB cache. Running it at 240 resulted in a 9GB cache. Your results
136 ## will differ based on usage patterns and |repo| sizes.
136 137
137 As a general rule of thumb, running this value at 120 resulted in a
138 5GB cache. Running it at 240 resulted in a 9GB cache. Your results
139 will differ based on usage patterns and |repo| sizes.
138 ## Tweaking this value to run at a fairly constant memory load on your
139 ## server will help performance.
140 140
141 Tweaking this value to run at a fairly constant memory load on your
142 server will help performance.
141 rc_cache.repo_object.max_size = 120
142
143 143
144 144 To clear the cache completely, you can restart the VCS Server.
145 145
General Comments 0
You need to be logged in to leave comments. Login now