##// END OF EJS Templates
mails: Fixed vertical alignment for email template action button
mails: Fixed vertical alignment for email template action button

File last commit:

r5843:61954577 default
r6115:246ac058 default
Show More
performance.rst
81 lines | 3.7 KiB | text/x-rst | RstLexer
Added simple docs for optimizing RhodeCode performance
r2517 .. _performance:
================================
Mads Kiilerich
docs: cleanup of casing, markup and spacing of headings...
r5413 Optimizing Kallithea performance
Added simple docs for optimizing RhodeCode performance
r2517 ================================
Michael V. DePalatis
docs: English and consistency corrections
r4955 When serving a large amount of big repositories, Kallithea can start
performing slower than expected. Because of the demanding nature of handling large
amounts of data from version control systems, here are some tips on how to get
docs improvements
r2775 the best performance.
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
Mads Kiilerich
db: get rid of vcs_full_cache - it should always be used...
r5739 1. Kallithea is often I/O bound, and hence a fast disk (SSD/SAN) is
usually more important than a fast CPU.
2. Increase cache
Added simple docs for optimizing RhodeCode performance
r2517
Mads Kiilerich
docs: improve documentation of beaker session configuration...
r5400 Tweak beaker cache settings in the ini file. The actual effect of that
Mads Kiilerich
cleanup: kill unused beaker cache regions
r5399 is questionable.
Added simple docs for optimizing RhodeCode performance
r2517
Mads Kiilerich
db: get rid of vcs_full_cache - it should always be used...
r5739 3. Switch from SQLite to PostgreSQL or MySQL
whitespace cleanup
r3224
Søren Løvborg
docs: spelling, grammar, content and typography
r5425 SQLite is a good option when having a small load on the system. But due to
locking issues with SQLite, it is not recommended to use it for larger
deployments. Switching to MySQL or PostgreSQL will result in an immediate
Anatoly Bubenkov
docs: add a reference to https://github.com/shazow/sqlalchemygrate for migration from sqlite to other dbs
r5060 performance increase. A tool like SQLAlchemyGrate_ can be used for
migrating to another database platform.
whitespace cleanup
r3224
Mads Kiilerich
db: get rid of vcs_full_cache - it should always be used...
r5739 4. Scale Kallithea horizontally
Added simple docs for optimizing RhodeCode performance
r2517
Søren Løvborg
docs: spelling, grammar, content and typography
r5425 Scaling horizontally can give huge performance benefits when dealing with
large amounts of traffic (many 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
Michael V. DePalatis
docs: English and consistency corrections
r4955 - Each instance's ``data`` storage needs to be configured to be stored on a
shared disk storage, preferably together with repositories. This ``data``
dir contains template caches, sessions, whoosh index and is used for
task locking (so it is safe across multiple instances). Set the
``cache_dir``, ``index_dir``, ``beaker.cache.data_dir``, ``beaker.cache.lock_dir``
variables in each .ini file to a shared location across Kallithea instances
- If celery is used each instance should run a separate Celery instance, but
the message broker should be common to all of them (e.g., one
shared RabbitMQ server)
- Load balance using round robin or IP hash, recommended is writing LB rules
performance section docs update
r3390 that will separate regular user traffic from automated processes like CI
servers or build bots.
Anatoly Bubenkov
docs: add a reference to https://github.com/shazow/sqlalchemygrate for migration from sqlite to other dbs
r5060
Mads Kiilerich
docs: mention use of static_files, it's setup and implications
r5843 5. Serve static files directly from the web server
With the default ``static_files`` ini setting, the Kallithea WSGI application
will take care of serving the static files found in ``kallithea/public`` from
the root of the application URL. While doing that, it will currently also
apply buffering and compression of all the responses it is serving.
The actual serving of the static files is unlikely to be a problem in a
Kallithea setup. The buffering of responses is more likely to be a problem;
large responses (clones or pulls) will have to be fully processed and spooled
to disk or memory before the client will see any response.
To serve static files from the web server, use something like this Apache config
snippet::
Alias /images/ /srv/kallithea/kallithea/kallithea/public/images/
Alias /css/ /srv/kallithea/kallithea/kallithea/public/css/
Alias /js/ /srv/kallithea/kallithea/kallithea/public/js/
Alias /codemirror/ /srv/kallithea/kallithea/kallithea/public/codemirror/
Alias /fontello/ /srv/kallithea/kallithea/kallithea/public/fontello/
Then disable serving of static files in the ``.ini`` ``app:main`` section::
static_files = false
If using Kallithea installed as a package, you should be able to find the files
under site-packages/kallithea, either in your Python installation or in your
virtualenv. When upgrading, make sure to update the web server configuration
too if necessary.
Mads Kiilerich
docs: consistent spacing around headings...
r5433
Anatoly Bubenkov
docs: add a reference to https://github.com/shazow/sqlalchemygrate for migration from sqlite to other dbs
r5060 .. _SQLAlchemyGrate: https://github.com/shazow/sqlalchemygrate