##// END OF EJS Templates
docs: update instructions for shared exception store in cluster setup
marcink -
r3067:9b7d4cbb default
parent child Browse files
Show More
@@ -120,7 +120,8 b' b) On **rc-node-3** find the following s'
120
120
121
121
122 2) Configure `User Session` to use a shared database. Example config that should be
122 2) Configure `User Session` to use a shared database. Example config that should be
123 changed on both node 2 and 3. Edit :file:`/home/{user}/.rccontrol/{instance-id}/rhodecode.ini`
123 changed on both **rc-node-2** and **rc-node-3** .
124 Edit :file:`/home/{user}/.rccontrol/{instance-id}/rhodecode.ini`
124
125
125 .. code-block:: ini
126 .. code-block:: ini
126
127
@@ -160,7 +161,18 b' 3) Configure stored cached/archive cache'
160 #archive_cache_dir = /home/rcdev/storage/_tarball_cache_dir
161 #archive_cache_dir = /home/rcdev/storage/_tarball_cache_dir
161
162
162
163
163 4) Change cache backends to use `Redis`_ based caches. Below full example config
164 4) Use shared exception store. Example config that should be
165 changed on both **rc-node-2** and **rc-node-3**, and also for VCSServer.
166 Edit :file:`/home/{user}/.rccontrol/{instance-id}/rhodecode.ini` and
167 :file:`/home/{user}/.rccontrol/{vcsserver-instance-id}/vcsserver.ini`
168 and add/change following setting.
169
170 .. code-block:: ini
171
172 exception_tracker.store_path = /home/rcdev/storage/_exception_store_data
173
174
175 5) Change cache backends to use `Redis`_ based caches. Below full example config
164 that replaces default file-based cache to shared `Redis`_ with Distributed Lock.
176 that replaces default file-based cache to shared `Redis`_ with Distributed Lock.
165
177
166
178
@@ -216,7 +228,7 b' 4) Change cache backends to use `Redis`_'
216 rc_cache.cache_repo_longterm.max_size = 10000
228 rc_cache.cache_repo_longterm.max_size = 10000
217
229
218
230
219 4) Configure `Nginx`_ as reverse proxy on `rc-node-2/3`:
231 6) Configure `Nginx`_ as reverse proxy on `rc-node-2/3`:
220 Minimal `Nginx`_ config used:
232 Minimal `Nginx`_ config used:
221
233
222
234
@@ -281,7 +293,7 b' 4) Configure `Nginx`_ as reverse proxy o'
281 }
293 }
282
294
283
295
284 5) Optional: Full text search, in case you use `Whoosh` full text search we also need a
296 7) Optional: Full text search, in case you use `Whoosh` full text search we also need a
285 shared storage for the index. In our example our NFS is mounted at `/home/rcdev/storage`
297 shared storage for the index. In our example our NFS is mounted at `/home/rcdev/storage`
286 which represents out storage so we can use the following:
298 which represents out storage so we can use the following:
287
299
@@ -298,9 +310,9 b' 5) Optional: Full text search, in case y'
298 by default cluster compatible.
310 by default cluster compatible.
299
311
300
312
301 6) Optional: If you intend to use mailing all instances need to use either a shared
313 8) Optional: If you intend to use mailing all instances need to use either a shared
302 mailing node, or each will use individual local mailagent. Simply put node-1/2/3 needs
314 mailing node, or each will use individual local mail agent. Simply put node-1/2/3
303 to use same mailing configuration.
315 needs to use same mailing configuration.
304
316
305
317
306
318
General Comments 0
You need to be logged in to leave comments. Login now