After you deploy OceanBase Migration Service (OMS) on the server, access Docker and check the service status to determine whether OMS is properly operating on the server.
Procedure
Go to the Docker container.
docker exec -it ${CONTAINER_NAME} bashNotice
CONTAINER_NAMEspecifies the name of the container.Run the
supervisorctl statuscommand to obtain the output information. Make sure that the status of each service is RUNNING.In this case, OMS is properly operating in the environment.
# supervisorctl status nginx RUNNING pid 905, uptime 3 days, 5:40:09 oms_console RUNNING pid 907, uptime 3 days, 5:39:59 oms_drc_cm RUNNING pid 971, uptime 3 days, 5:39:49 oms_drc_supervisor RUNNING pid 1223, uptime 3 days, 5:39:38 sshd RUNNING pid 1419, uptime 3 days, 5:39:27OMS consists of control components and data migration components. The control components are the OMS console, cluster management (CM) service, and supervisor. If a control component fails to start, memory issues may have occurred. You can modify the startup configuration of the control component by performing the following operations:
Check whether the control component is started based on the output information of the startup operation.
Enter the
/etc/supervisor/conf.d/directory and execute thellcommand to view the names of initialization files of control components.# cd /etc/supervisor/conf.d/ # ll total 20 -rw-r--r-- 1 root root 285 Jan 13 15:37 base.ini -rw-r--r-- 1 root root 338 Jan 13 15:37 drc_cm.ini -rw-r--r-- 1 root root 397 Jan 13 15:37 drc_supervisor.ini -rw-r--r-- 1 root root 351 Jan 13 15:37 oms_console.ini -rw-r--r-- 1 root root 316 Jan 13 15:37 oms_nginx.iniRun one of the following
catcommands as needed to view the startup script of the component. In the returned information of the command, the startup script is displayed after bash.Run the
cat oms_console.inicommand to view the startup script for the OMS console. Sample script:/home/admin/conf/command/start_oms_console.sh.Run the
cat drc_cm.inicommand to view the startup script for the CM service. Sample script:/home/admin/conf/command/start_oms_cm.sh.Run the
cat drc_supervisor.inicommand to view the startup script for the supervisor. Sample script:/home/ds/supervisor/service.sh.
Find the startup script for the corresponding control component, and modify the JVM memory settings.
Run the
supervisorctl restartcommand to restart the control component.If the execution of the
docker_init.shscript fails, you can modify the configuration and execute the script again.
Log on to the OMS console and go to the Servers page to check whether the number of servers is as expected.
For more information, see the topics Log on to the OMS console and View server information in OMS User Guide.