##// END OF EJS Templates
i18n: create Slovak translation based on modified Czech
i18n: create Slovak translation based on modified Czech

File last commit:

r4192:e73a69cb kallithea-2.2.5-r...
r4903:f9011c40 default
Show More
performance.rst
62 lines | 2.8 KiB | text/x-rst | RstLexer
Added simple docs for optimizing RhodeCode performance
r2517 .. _performance:
================================
Bradley M. Kuhn
Rename some strings examples and commands in documentation
r4192 Optimizing Kallithea Performance
Added simple docs for optimizing RhodeCode performance
r2517 ================================
Bradley M. Kuhn
Rename some strings examples and commands in documentation
r4192 When serving large amount of big repositories Kallithea can start
docs improvements
r2775 performing slower than expected. Because of demanding nature of handling large
amount of data from version control systems here are some tips how to get
the best performance.
Bradley M. Kuhn
Rename some strings examples and commands in documentation
r4192 * Kallithea will perform better on machines with faster disks (SSD/SAN). It's
docs improvements
r2775 more important to have faster disk than faster CPU.
* Slowness on initial page can be easily fixed by grouping repositories, and/or
performance section docs update
r3390 increasing cache size (see below), that includes using lightweight dashboard
option and vcs_full_cache setting in .ini file
docs improvements
r2775
Added simple docs for optimizing RhodeCode performance
r2517
Bradley M. Kuhn
Rename some strings examples and commands in documentation
r4192 Follow these few steps to improve performance of Kallithea system.
Added simple docs for optimizing RhodeCode performance
r2517
doc fixes
r2680 1. Increase cache
Added simple docs for optimizing RhodeCode performance
r2517
doc fixes
r2680 in the .ini file::
whitespace cleanup
r3224
doc fixes
r2680 beaker.cache.sql_cache_long.expire=3600 <-- set this to higher number
Added simple docs for optimizing RhodeCode performance
r2517
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
Bradley M. Kuhn
Rename some strings examples and commands in documentation
r4192 times for the main page. Kallithea has an intelligent cache expiration
docs improvements
r2775 system and it will expire cache for repositories that had been changed.
Added simple docs for optimizing RhodeCode performance
r2517
2. Switch from sqlite to postgres or mysql
whitespace cleanup
r3224
Added simple docs for optimizing RhodeCode performance
r2517 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.
whitespace cleanup
r3224
Bradley M. Kuhn
Rename some strings examples and commands in documentation
r4192 3. Scale Kallithea horizontally
Added simple docs for optimizing RhodeCode performance
r2517
performance section docs update
r3390 Scaling horizontally can give huge performance increase when dealing with
Bradley M. Kuhn
Rename some strings examples and commands in documentation
r4192 large traffic (large amount of users, CI servers etc). Kallithea can be
performance section docs update
r3390 scaled horizontally on one (recommended) or multiple machines. In order
to scale horizontally you need to do the following:
whitespace cleanup
r3413
performance section docs update
r3390 - each instance needs it's own .ini file and unique `instance_id` set in them
whitespace cleanup
r3413 - each instance `data` storage needs to be configured to be stored on a
performance section docs update
r3390 shared disk storage, preferably together with repositories. This `data`
dir contains template caches, sessions, whoosh index and it's used for
tasks locking (so it's safe across multiple instances). Set the
`cache_dir`, `index_dir`, `beaker.cache.data_dir`, `beaker.cache.lock_dir`
Bradley M. Kuhn
Rename some strings examples and commands in documentation
r4192 variables in each .ini file to shared location across Kallithea instances
performance section docs update
r3390 - if celery is used each instance should run separate celery instance, but
the message broken should be common to all of them (ex one rabbitmq
whitespace cleanup
r3413 shared server)
performance section docs update
r3390 - load balance using round robin or ip hash, recommended is writing LB rules
that will separate regular user traffic from automated processes like CI
servers or build bots.