Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

Versions available for this page: CUBRID 8.4.0 |  CUBRID 8.4.1 |  CUBRID 8.4.3 |  CUBRID 9.0.0 | 


The cubrid_broker.conf file that has general information on configuring CUBRID broker is located in the $CUBRID/conf directory. This section explains the parameters of cubrid_broker.conf that are used by CUBRID HA.


ACCESS_MODE is a parameter used to configure the mode of a broker. The default is RW.

Its value can be one of the followings: RW (Read Write), RO (Read Only), SO (Slave Only), or PHRO (Preferred Host Read Only). For details, see Broker Mode.


PREFERRED_HOSTS is a parameter used only when the ACCESS_MODE parameter value is PHRO. The default value is NULL.

You can specify multiple nodes by using a colon (:). First, it tries to connect to host in the following order: host specified in the PREFERRED_HOSTS parameter first and then host specified in $CUBRID_DATABASES/databases.txt. For details, see Broker Mode.


The following example shows how to configure cubrid_broker.conf.


SERVICE                 =ON

BROKER_PORT             =33000



APPL_SERVER_SHM_ID      =33000

LOG_DIR                 =log/broker/sql_log

ERROR_LOG_DIR           =log/broker/error_log

SQL_LOG                 =ON

TIME_TO_KILL            =120

SESSION_TIMEOUT         =300




# Broker mode setting parameter

ACCESS_MODE             =PHRO

PREFERRED_HOSTS         =nodeA:nodeB:nodeC