You can start an OBServer by running a command.
Start an observer process by running a command
Log on to the host of the OBServer and access the /home/admin/oceanbase/bin directory from the command-line interface (CLI). Run the following command to start the observer process:
cd /home/admin/oceanbase/
./bin/observer [startup parameters]
You can also run ./bin/observer --help to view the details of the observer startup parameters.
The following is an example command for starting an observer process:
cd /home/admin/oceanbase/bin
./observer -p 2881 -P 2882 -z 'zone_1' -d '/data/1/prod_data/' -r 'xx.xx.xx.1:2882:2881;xx.xx.xx.2:2882:2881;xx.xx.xx.3:2882:2881' -l WARN -d '/data/1/prod_data' -o 'memory_limit=100GB,datafile_disk_percentage=85'
In the command:
2881is the access port of the MySQL client.2882is the remote access port.zone_1is the zone name./data/1/prod_datais the data disk directory.datafile_disk_percentage=85indicates that the utilization of the data disk is 85%.xx.xx.xx.1,xx.xx.xx.2, andxx.xx.xx.3are RootServers.memory_limit=100GBindicates that the maximum memory available for starting the process is 100 GB.WARNindicates that the logging level is set toWARNING.When the
-oparameter is used, note that:The parameter is case-insensitive. However, we recommend that you set it in accordance with the variable name in
observer.config.bin.The parameter cannot contain the following special characters:
Space
\r
\n
\t
An equal sign (=) must be used between the parameter name and the parameter value.
Parameters must be separated with commas (,).