tc-Server Instances are not created as specified in instances.directory property
search cancel

tc-Server Instances are not created as specified in instances.directory property

book

Article ID: 402469

calendar_today

Updated On:

Products

VMware Tanzu Spring Runtime VMware Tanzu tc Server

Issue/Introduction

Tc Server instances are created in the path specified by instances.directory property. By default it is set to the <tc-Server-Installation-directory>/instances

This document provides information to configure properties for tc-server-10.1 command tool.

 

Environment

 tc Server 10.1.x

Resolution

Following are the steps to configure instances.directory 

1. Export env variable

export TCS_HOME_101=<TC-SERVER-INSTALL-DIRECTORY-PATH> 

Where:

    $TCS_HOME_101 = Base location of the tc Server 10.1.x installation, such as /opt/tc-server/10.1

 

2. Create conf directory

mkdir -p $TCS_HOME_101/conf

 

3. Copy the file $TCS_HOME_101/dist/tc-server-<version>/conf/tcserver.default.properties to $TCS_HOME_101/conf/tc-server-10.1.properties

cp  $TCS_HOME_101/dist/tc-server-<version>/conf/tcserver.default.properties to $TCS_HOME_101/conf/tc-server-10.1.properties

 

4. Edit $TCS_HOME_101/conf/tc-server-10.1.properties file. Comment and set value for instances.directory

instances.directory=<DIRECTORY-PATH-OF-INSTANCES>

 

5. Save

 

6. Test by creating a new instance 

 

 

The instances.directory can also be set by

1. Using the command line option --tcs-property 

2. Using a property file in $HOME/.tc-server/tc-server-10.1.properties. Note that this affects ALL tc server installations manage by the USER.

Where:

$HOME = The home directory of the USER running the tc-server-10.1 command line tool

 

The tc-server-10.1 command will look in the following locations for property files. The files are read in order and keys defined in previous configuration files will override the former values.

  • $TCS_HOME_101/conf/tc-server-10.1.properties
  • $HOME/.tc-server/tc-server-10.1.properties

 

That said, the order of precedence is as follows:

  • Command line option --tcs-property
  • $HOME/.tc-server/tc-server-10.1.properties
  • $TCS_HOME_101/conf/tc-server-10.1.properties

  

 

Reference: