caching mechanism in TC

Gyus,

How does the caching mechanism work in TC? I'd like to know about VCS caching and web-interface caching
I haven't found any detail info about it in the official documentation. I have to restart master a lot, so every time after restart it is taking too much time to get TC back to work - about 20 minutes.
After each restart when I open project pages, it is also taking too much time to show all project configurations statuses and info.
According to VCS caches, I have problem with Updating sources stage on each build, sometimes it transfer sources fast (about 200Mb per 2 minute, according to build log), sometimes it is really slow (about 10Mb per 2 minute).
What is exactly happening on master and agent while build shows me this message "Updating sources"? I have all my builds with VCS checkout mode: Automatically on server option.

Regards
Bulat

3 comments
Comment actions Permalink

Hi Bulat,

TeamCity loads some data into memory on server start and some information is calculated on first request to the page which shows it. The main contributor to the startup time is amount of changes TeamCity detected. We made some speed-ups in this area in TeamCity 9.0, so hopefully it will be faster in your case.

TeamCity caches server-side patches and they survives server restart, so restart should not affect updating sources process. What exactly happens depends on version control. To investigate slow updating sources we need teamcity-vcs.log(s) from the server covering the slow process and details about VCS root settings.

Why do you need to restart TeamCity server so often?

0
Comment actions Permalink

The main contributor to the startup time is amount of changes TeamCity detected.

Does it mean less VCS roots you have less time is taken for a start? Sometimes I have VCS roots duplicating alert

Why do you need to restart TeamCity server so often?

Because of https://youtrack.jetbrains.com/issue/TW-38201

0
Comment actions Permalink

Getting rid of VCS root duplicates is usually a good thing to do, but I don't think it will make server start faster, because TeamCity already detected changes in these roots. Please find my comment in the TW-38201 issue.

0

Please sign in to leave a comment.