Files
@ f0851f37d6be
Branch filter:
Location: kallithea/docs/usage/performance.rst - annotation
f0851f37d6be
1.4 KiB
text/prs.fallenstein.rst
Implementes #509 require SSL flag now works for both git and mercurial.
- check is done at earlies possible stage
- if detected protocol is not https and flag require is there RhodeCode will
return HTTP Error 406: Not Acceptable, before even checking credentials
- removed push_ssl flag from mercurial UI objects since that would duplicate logic
- check is done at earlies possible stage
- if detected protocol is not https and flag require is there RhodeCode will
return HTTP Error 406: Not Acceptable, before even checking credentials
- removed push_ssl flag from mercurial UI objects since that would duplicate logic
fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 fa88997aa421 | .. _performance:
================================
Optimizing RhodeCode Performance
================================
Follow these few steps to improve performance of RhodeCode system.
1. Increase cache::
in the .ini file
beaker.cache.sql_cache_long.expire=3600 <-- set this to higher number
This option affects the cache expiration time for main page. Having
few hundreds of repositories on main page can sometimes make the system
to behave slow when cache expires for all of them. Increasing `expire`
option to day (86400) or a week (604800) will improve general response
times for the main page
2. Switch from sqlite to postgres or mysql
sqlite is a good option when having small load on the system. But due to
locking issues with sqlite, it's not recommended to use it for larger
setup. Switching to mysql or postgres will result in a immediate
performance increase.
3. Scale RhodeCode horizontally
- running two or more instances on the same server can speed up things a lot
- load balance using round robin or ip hash
- you need to handle consistent user session storage by switching to
db sessions, client side sessions or sharing session data folder across
instances. See http://beaker.readthedocs.org/ docs for details.
- remember that each instance needs it's own .ini file and unique
`instance_id` set in them
|