How do I configure Talend Administration Center (TAC) to not check out tags/branches? 

Problem Description

Within the temp folder of a Tomcat installation path, folders get created for the TAC project repository. These include the branch and tag folders of the repository as well. Over time, the space consumed increases, and requires frequent clean up.

 

For example, on the TAC file system, you can see that all tags and branches are checked out on the file system:

tac/apache-tomcat/temp/Talend_Administrator_Checkout_tacdev_RCENT

 

Root Cause

By default, when Git/SVN is configured on the TAC > Configuration page, TAC caches the projects, branches, and tags accordingly, creating the folders in the tomcat/temp directory. When you have more projects or branches, or the content of the repository is increasing, TAC starts checking out the projects accordingly.

 

Over time, this consumes more disk space and you will run out of space on the machine.

 

Solution

TAC allows you to filter the project on defined Git/SVN branches or tags in order to reduce the use of disk resources and improve performances.

 

Prerequisites

  1. While configuring Git/SVN in TAC > Configuration, enable the Branches whitelist option on the Configuration page. For details, see Setting up SVN or Git parameters in the Talend Administration Center User Guide.

  2. Create a project with related branches. For details, see Adding a project and To create a Git or SVN branch in the Talend Administration Center User Guide.

    This results in the creation of a whitelist configuration file named active_svn_branches.csv (for SVN projects) or active_git_branches.csv (for Git projects). Generally the CSV file is created in the Talend_Installation_Directory\tac\apache-tomcat\webapps\org.talend.administrator\WEB-INF\classes directory.

 

Steps

  1. Open the whitelist configuration file to edit it (active_svn_branches.csv for SVN projects or active_git_branches.csv for Git projects). You can see the list of all branches of your projects.

  2. Remove the lines corresponding to the branches on which you do not want to work (keep only the necessary ones) and save the changes. The project is now filtered on the branches you have chosen to keep.

Version history
Revision #:
4 of 4
Last update:
‎09-29-2018 12:20 AM
Updated by: