Code Monkey home page Code Monkey logo

docker-images's Introduction

OceanBase Logo

English doc Chinese doc last commit stars building status license

Join Slack Stack Overflow

English | 中文版

OceanBase Database is a distributed relational database. It is developed entirely by Ant Group. The OceanBase Database is built on a common server cluster. Based on the Paxos protocol and its distributed structure, the OceanBase Database provides high availability and linear scalability. The OceanBase Database is not dependent on specific hardware architectures.

Key features

  • Transparent Scalability: 1,500 nodes, PB data and a trillion rows of records in one cluster.
  • Ultra-fast Performance: TPC-C 707 million tmpC and TPC-H 15.26 million QphH @30000GB.
  • Cost Efficiency: saves 70%–90% of storage costs.
  • Real-time Analytics: supports HTAP without additional cost.
  • Continuous Availability: RPO = 0(zero data loss) and RTO < 8s(recovery time)
  • MySQL Compatible: easily migrated from MySQL database.

See also key features for more details.

Quick start

See also Quick experience or Quick Start (Simplified Chinese) for more details.

🔥 Start with all-in-one

You can quickly deploy a stand-alone OceanBase Database to experience with the following commands:

Note: Linux Only

# download and install all-in-one package (internet connection is required)
bash -c "$(curl -s https://obbusiness-private.oss-cn-shanghai.aliyuncs.com/download-center/opensource/oceanbase-all-in-one/installer.sh)"
source ~/.oceanbase-all-in-one/bin/env.sh

# quickly deploy OceanBase database
obd demo

🐳 Start with docker

Note: We provide images on dockerhub, quay.io and ghcr.io. If you have problems pulling images from dockerhub, please try the other two registries.

  1. Start an OceanBase Database instance:

    # Deploy a mini standalone instance.
    docker run -p 2881:2881 --name oceanbase-ce -e MODE=mini -d oceanbase/oceanbase-ce
    
    # Deploy a mini standalone instance using image from quay.io.
    # docker run -p 2881:2881 --name oceanbase-ce -e MODE=mini -d quay.io/oceanbase/oceanbase-ce
    
    # Deploy a mini standalone instance using image from ghcr.io.
    # docker run -p 2881:2881 --name oceanbase-ce -e MODE=mini -d ghcr.io/oceanbase/oceanbase-ce
  2. Connect to the OceanBase Database instance:

    docker exec -it oceanbase-ce obclient -h127.0.0.1 -P2881 -uroot # Connect to the root user of the sys tenant.

See also Docker Readme for more details.

☸️ Start with Kubernetes

You can deploy and manage OceanBase Database instance in kubernetes cluster with ob-operator quickly. Refer to the document Quick Start for ob-operator to see details.

👨‍💻 Start developing

See OceanBase Developer Document to learn how to compile and deploy a manually compiled observer.

Roadmap

For future plans, see Product Iteration Progress. See also OceanBase Roadmap for more details.

Case study

OceanBase has been serving more than 1000 customers and upgraded their database from different industries, including Financial Services, Telecom, Retail, Internet, and more.

See also success stories and Who is using OceanBase for more details.

System architecture

Introduction to system architecture

Contributing

Contributions are highly appreciated. Read the development guide to get started.

License

OceanBase Database is licensed under the Mulan Public License, Version 2. See the LICENSE file for more info.

Community

Join the OceanBase community via:

docker-images's People

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

docker-images's Issues

[Bug]: Failed to start docker container

Environment

  • OS Version and CPU Arch(uname -a): Darwin 22.5.0 Darwin Kernel Version 22.5.0: Thu Jun 8 22:22:22 PDT 2023; root:xnu-8796.121.3~7/RELEASE_X86_64 x86_64

  • Docker Desktop Version 4.20.1 (110738)

Fast Reproduce Steps(Required)

Steps to reproduce the behavior:

  1. docker pull oceanbase/oceanbase-ce
  2. docker run -p 2881:2881 --name obstandalone -e MINI_MODE=1 -d oceanbase/oceanbase-ce

Expected behavior
Container obstandalone keep running

Actual Behavior
Container obstandalone exited with failure

Additional context
docker exec -it obstandalone obd display-trace a0cbb15e-1c7c-11ee-acab-0242ac110002

[2023-07-07 04:13:29.429] [DEBUG] - mkdir /root/.obd/lock/
[2023-07-07 04:13:29.430] [DEBUG] - unknown lock mode 
[2023-07-07 04:13:29.430] [DEBUG] - try to get share lock /root/.obd/lock/global
[2023-07-07 04:13:29.430] [DEBUG] - share lock `/root/.obd/lock/global`, count 1
[2023-07-07 04:13:29.430] [DEBUG] - cmd: ['obcluster']
[2023-07-07 04:13:29.430] [DEBUG] - opts: {'servers': None, 'components': None, 'force_delete': None, 'strict_check': None, 'without_parameter': None}
[2023-07-07 04:13:29.430] [DEBUG] - Get Deploy by name
[2023-07-07 04:13:29.430] [DEBUG] - mkdir /root/.obd/cluster/
[2023-07-07 04:13:29.431] [DEBUG] - mkdir /root/.obd/config_parser/
[2023-07-07 04:13:29.431] [DEBUG] - try to get exclusive lock /root/.obd/lock/deploy_obcluster
[2023-07-07 04:13:29.431] [DEBUG] - exclusive lock `/root/.obd/lock/deploy_obcluster`, count 1
[2023-07-07 04:13:29.436] [DEBUG] - Deploy status judge
[2023-07-07 04:13:29.438] [INFO] Get local repositories
[2023-07-07 04:13:29.438] [DEBUG] - mkdir /root/.obd/repository
[2023-07-07 04:13:29.438] [DEBUG] - Get local repository oceanbase-ce-4.1.0.0-8439ecf8db5e0649bd49671b41ea9e8c85756b63
[2023-07-07 04:13:29.438] [DEBUG] - Search repository oceanbase-ce version: 4.1.0.0, tag: 8439ecf8db5e0649bd49671b41ea9e8c85756b63, release: None, package_hash: None
[2023-07-07 04:13:29.438] [DEBUG] - try to get share lock /root/.obd/lock/mirror_and_repo
[2023-07-07 04:13:29.438] [DEBUG] - share lock `/root/.obd/lock/mirror_and_repo`, count 1
[2023-07-07 04:13:29.438] [DEBUG] - mkdir /root/.obd/repository/oceanbase-ce
[2023-07-07 04:13:29.441] [DEBUG] - Found repository oceanbase-ce-4.1.0.0-100000192023032010.el7-8439ecf8db5e0649bd49671b41ea9e8c85756b63
[2023-07-07 04:13:29.441] [DEBUG] - Get local repository obagent-1.3.0-d57fbb4962b2fbecb6282358c59295fdfba4d6ac
[2023-07-07 04:13:29.441] [DEBUG] - Search repository obagent version: 1.3.0, tag: d57fbb4962b2fbecb6282358c59295fdfba4d6ac, release: None, package_hash: None
[2023-07-07 04:13:29.441] [DEBUG] - share lock `/root/.obd/lock/mirror_and_repo`, count 2
[2023-07-07 04:13:29.441] [DEBUG] - mkdir /root/.obd/repository/obagent
[2023-07-07 04:13:29.444] [DEBUG] - Found repository obagent-1.3.0-22.el7-d57fbb4962b2fbecb6282358c59295fdfba4d6ac
[2023-07-07 04:13:29.444] [DEBUG] - Get deploy config
[2023-07-07 04:13:29.465] [INFO] Search plugins
[2023-07-07 04:13:29.466] [DEBUG] - Searching start_check plugin for components ...
[2023-07-07 04:13:29.466] [DEBUG] - Searching start_check plugin for oceanbase-ce-4.1.0.0-100000192023032010.el7-8439ecf8db5e0649bd49671b41ea9e8c85756b63
[2023-07-07 04:13:29.466] [DEBUG] - mkdir /root/.obd/plugins
[2023-07-07 04:13:29.468] [DEBUG] - Found for oceanbase-ce-py_script_start_check-4.0.0.0 for oceanbase-ce-4.1.0.0
[2023-07-07 04:13:29.468] [DEBUG] - Searching start_check plugin for obagent-1.3.0-22.el7-d57fbb4962b2fbecb6282358c59295fdfba4d6ac
[2023-07-07 04:13:29.469] [DEBUG] - Found for obagent-py_script_start_check-1.3.0 for obagent-1.3.0
[2023-07-07 04:13:29.469] [DEBUG] - Searching create_tenant plugin for components ...
[2023-07-07 04:13:29.469] [DEBUG] - Searching create_tenant plugin for oceanbase-ce-4.1.0.0-100000192023032010.el7-8439ecf8db5e0649bd49671b41ea9e8c85756b63
[2023-07-07 04:13:29.470] [DEBUG] - Found for oceanbase-ce-py_script_create_tenant-4.0.0.0 for oceanbase-ce-4.1.0.0
[2023-07-07 04:13:29.470] [DEBUG] - Searching create_tenant plugin for obagent-1.3.0-22.el7-d57fbb4962b2fbecb6282358c59295fdfba4d6ac
[2023-07-07 04:13:29.470] [DEBUG] - No such create_tenant plugin for obagent-1.3.0
[2023-07-07 04:13:29.470] [DEBUG] - Searching start plugin for components ...
[2023-07-07 04:13:29.470] [DEBUG] - Searching start plugin for oceanbase-ce-4.1.0.0-100000192023032010.el7-8439ecf8db5e0649bd49671b41ea9e8c85756b63
[2023-07-07 04:13:29.470] [DEBUG] - Found for oceanbase-ce-py_script_start-4.0.0.0 for oceanbase-ce-4.1.0.0
[2023-07-07 04:13:29.470] [DEBUG] - Searching start plugin for obagent-1.3.0-22.el7-d57fbb4962b2fbecb6282358c59295fdfba4d6ac
[2023-07-07 04:13:29.471] [DEBUG] - Found for obagent-py_script_start-1.3.0 for obagent-1.3.0
[2023-07-07 04:13:29.471] [DEBUG] - Searching connect plugin for components ...
[2023-07-07 04:13:29.471] [DEBUG] - Searching connect plugin for oceanbase-ce-4.1.0.0-100000192023032010.el7-8439ecf8db5e0649bd49671b41ea9e8c85756b63
[2023-07-07 04:13:29.471] [DEBUG] - Found for oceanbase-ce-py_script_connect-3.1.0 for oceanbase-ce-4.1.0.0
[2023-07-07 04:13:29.471] [DEBUG] - Searching connect plugin for obagent-1.3.0-22.el7-d57fbb4962b2fbecb6282358c59295fdfba4d6ac
[2023-07-07 04:13:29.471] [DEBUG] - Found for obagent-py_script_connect-1.3.0 for obagent-1.3.0
[2023-07-07 04:13:29.471] [DEBUG] - Searching bootstrap plugin for components ...
[2023-07-07 04:13:29.471] [DEBUG] - Searching bootstrap plugin for oceanbase-ce-4.1.0.0-100000192023032010.el7-8439ecf8db5e0649bd49671b41ea9e8c85756b63
[2023-07-07 04:13:29.472] [DEBUG] - Found for oceanbase-ce-py_script_bootstrap-4.0.0.0 for oceanbase-ce-4.1.0.0
[2023-07-07 04:13:29.472] [DEBUG] - Searching bootstrap plugin for obagent-1.3.0-22.el7-d57fbb4962b2fbecb6282358c59295fdfba4d6ac
[2023-07-07 04:13:29.472] [DEBUG] - Found for obagent-py_script_bootstrap-0.1 for obagent-1.3.0
[2023-07-07 04:13:29.472] [DEBUG] - Searching display plugin for components ...
[2023-07-07 04:13:29.472] [DEBUG] - Searching display plugin for oceanbase-ce-4.1.0.0-100000192023032010.el7-8439ecf8db5e0649bd49671b41ea9e8c85756b63
[2023-07-07 04:13:29.472] [DEBUG] - Found for oceanbase-ce-py_script_display-3.1.0 for oceanbase-ce-4.1.0.0
[2023-07-07 04:13:29.473] [DEBUG] - Searching display plugin for obagent-1.3.0-22.el7-d57fbb4962b2fbecb6282358c59295fdfba4d6ac
[2023-07-07 04:13:29.473] [DEBUG] - Found for obagent-py_script_display-1.3.0 for obagent-1.3.0
[2023-07-07 04:13:29.473] [INFO] Open ssh connection
[2023-07-07 04:13:29.474] [INFO] Load cluster param plugin
[2023-07-07 04:13:29.474] [DEBUG] - Searching param plugin for components ...
[2023-07-07 04:13:29.474] [DEBUG] - Search param plugin for oceanbase-ce
[2023-07-07 04:13:29.474] [DEBUG] - Found for oceanbase-ce-param-4.0.0.0 for oceanbase-ce-4.1.0.0
[2023-07-07 04:13:29.474] [DEBUG] - Applying oceanbase-ce-param-4.0.0.0 for oceanbase-ce-4.1.0.0-100000192023032010.el7-8439ecf8db5e0649bd49671b41ea9e8c85756b63
[2023-07-07 04:13:30.001] [DEBUG] - Search param plugin for obagent
[2023-07-07 04:13:30.001] [DEBUG] - Found for obagent-param-1.3.0 for obagent-1.3.0
[2023-07-07 04:13:30.001] [DEBUG] - Applying obagent-param-1.3.0 for obagent-1.3.0-22.el7-d57fbb4962b2fbecb6282358c59295fdfba4d6ac
[2023-07-07 04:13:30.059] [DEBUG] - Call oceanbase-ce-py_script_start_check-4.0.0.0 for oceanbase-ce-4.1.0.0-100000192023032010.el7-8439ecf8db5e0649bd49671b41ea9e8c85756b63
[2023-07-07 04:13:30.059] [DEBUG] - import start_check
[2023-07-07 04:13:30.065] [DEBUG] - add start_check ref count to 1
[2023-07-07 04:13:30.066] [INFO] Check before start observer
[2023-07-07 04:13:30.066] [DEBUG] -- local execute: ls /root/ob/store/clog/tenant_1/ 
[2023-07-07 04:13:30.077] [DEBUG] -- exited code 2, error output:
[2023-07-07 04:13:30.077] [DEBUG] ls: cannot access /root/ob/store/clog/tenant_1/: No such file or directory
[2023-07-07 04:13:30.077] [DEBUG] 
[2023-07-07 04:13:30.077] [DEBUG] -- local execute: cat /root/ob/run/observer.pid 
[2023-07-07 04:13:30.081] [DEBUG] -- exited code 0
[2023-07-07 04:13:30.082] [DEBUG] -- local execute: ls /proc/221 
[2023-07-07 04:13:30.086] [DEBUG] -- exited code 2, error output:
[2023-07-07 04:13:30.086] [DEBUG] ls: cannot access /proc/221: No such file or directory
[2023-07-07 04:13:30.087] [DEBUG] 
[2023-07-07 04:13:30.087] [DEBUG] -- 127.0.0.1 port check
[2023-07-07 04:13:30.087] [DEBUG] -- local execute: bash -c 'cat /proc/net/{tcp*,udp*}' | awk -F' ' '{print $2,$10}' | grep '00000000:0B41' | awk -F' ' '{print $2}' | uniq 
[2023-07-07 04:13:30.093] [DEBUG] -- exited code 0
[2023-07-07 04:13:30.094] [DEBUG] -- local execute: bash -c 'cat /proc/net/{tcp*,udp*}' | awk -F' ' '{print $2,$10}' | grep '00000000:0B42' | awk -F' ' '{print $2}' | uniq 
[2023-07-07 04:13:30.101] [DEBUG] -- exited code 0
[2023-07-07 04:13:30.102] [DEBUG] -- local execute: ls /root/ob/store/sstable/block_file 
[2023-07-07 04:13:30.107] [DEBUG] -- exited code 2, error output:
[2023-07-07 04:13:30.107] [DEBUG] ls: cannot access /root/ob/store/sstable/block_file: No such file or directory
[2023-07-07 04:13:30.107] [DEBUG] 
[2023-07-07 04:13:30.107] [DEBUG] -- local execute: grep -e '^ *lo:' /proc/net/dev 
[2023-07-07 04:13:30.110] [DEBUG] -- exited code 0
[2023-07-07 04:13:30.110] [DEBUG] -- local execute: cat /proc/sys/fs/aio-max-nr /proc/sys/fs/aio-nr 
[2023-07-07 04:13:30.113] [DEBUG] -- exited code 0
[2023-07-07 04:13:30.114] [DEBUG] -- local execute: ulimit -a 
[2023-07-07 04:13:30.117] [DEBUG] -- exited code 0
[2023-07-07 04:13:30.118] [DEBUG] -- local execute: cat /proc/meminfo 
[2023-07-07 04:13:30.120] [DEBUG] -- exited code 0
[2023-07-07 04:13:30.121] [DEBUG] -- local execute: df --block-size=1024  
[2023-07-07 04:13:30.125] [DEBUG] -- exited code 0
[2023-07-07 04:13:30.126] [DEBUG] -- get disk info for path /, total: 251650445312 avail: 210873688064
[2023-07-07 04:13:30.126] [DEBUG] -- get disk info for path /dev, total: 67108864 avail: 67108864
[2023-07-07 04:13:30.126] [DEBUG] -- get disk info for path /dev/shm, total: 67108864 avail: 67108864
[2023-07-07 04:13:30.126] [DEBUG] -- get disk info for path /etc/hosts, total: 251650445312 avail: 210873688064
[2023-07-07 04:13:30.126] [DEBUG] -- get disk info for path /proc/acpi, total: 6280445952 avail: 6280445952
[2023-07-07 04:13:30.126] [DEBUG] -- get disk info for path /sys/firmware, total: 6280445952 avail: 6280445952
[2023-07-07 04:13:30.126] [DEBUG] -- local execute: df --block-size=1024 /root/ob/store/clog 
[2023-07-07 04:13:30.129] [DEBUG] -- exited code 0
[2023-07-07 04:13:30.129] [DEBUG] -- get disk info for path /, total: 251650445312 avail: 210873688064
[2023-07-07 04:13:30.129] [DEBUG] -- local execute: df --block-size=1024 /root/ob/store 
[2023-07-07 04:13:30.132] [DEBUG] -- exited code 0
[2023-07-07 04:13:30.132] [DEBUG] -- get disk info for path /, total: 251650445312 avail: 210873688064
[2023-07-07 04:13:30.132] [DEBUG] -- disk: {'/': {'total': 251650445312, 'avail': 210873688064, 'need': 0}, '/dev': {'total': 67108864, 'avail': 67108864, 'need': 0}, '/dev/shm': {'total': 67108864, 'avail': 67108864, 'need': 0}, '/etc/hosts': {'total': 251650445312, 'avail': 210873688064, 'need': 0}, '/proc/acpi': {'total': 6280445952, 'avail': 6280445952, 'need': 0}, '/sys/firmware': {'total': 6280445952, 'avail': 6280445952, 'need': 0}}
[2023-07-07 04:13:30.133] [WARNING] OBD-1012: (127.0.0.1) clog and data use the same disk (/)
[2023-07-07 04:13:30.133] [DEBUG] -- local execute: date +%s%N 
[2023-07-07 04:13:30.136] [DEBUG] -- exited code 0
[2023-07-07 04:13:30.136] [DEBUG] -- 127.0.0.1 time delta -0.441162109375
[2023-07-07 04:13:30.136] [INFO] [WARN] OBD-1012: (127.0.0.1) clog and data use the same disk (/)
[2023-07-07 04:13:30.136] [INFO] 
[2023-07-07 04:13:30.136] [DEBUG] - sub start_check ref count to 0
[2023-07-07 04:13:30.136] [DEBUG] - export start_check
[2023-07-07 04:13:30.137] [DEBUG] - Call obagent-py_script_start_check-1.3.0 for obagent-1.3.0-22.el7-d57fbb4962b2fbecb6282358c59295fdfba4d6ac
[2023-07-07 04:13:30.137] [DEBUG] - import start_check
[2023-07-07 04:13:30.139] [DEBUG] - add start_check ref count to 1
[2023-07-07 04:13:30.139] [INFO] Check before start obagent
[2023-07-07 04:13:30.141] [DEBUG] -- local execute: cat /root/obagent/run/ob_agentd.pid 
[2023-07-07 04:13:30.145] [DEBUG] -- exited code 1, error output:
[2023-07-07 04:13:30.145] [DEBUG] cat: /root/obagent/run/ob_agentd.pid: No such file or directory
[2023-07-07 04:13:30.145] [DEBUG] 
[2023-07-07 04:13:30.145] [DEBUG] -- 127.0.0.1 port check
[2023-07-07 04:13:30.145] [DEBUG] -- local execute: bash -c 'cat /proc/net/{tcp*,udp*}' | awk -F' ' '{print $2,$10}' | grep '00000000:1F99' | awk -F' ' '{print $2}' | uniq 
[2023-07-07 04:13:30.152] [DEBUG] -- exited code 0
[2023-07-07 04:13:30.152] [DEBUG] -- local execute: bash -c 'cat /proc/net/{tcp*,udp*}' | awk -F' ' '{print $2,$10}' | grep '00000000:1F98' | awk -F' ' '{print $2}' | uniq 
[2023-07-07 04:13:30.158] [DEBUG] -- exited code 0
[2023-07-07 04:13:30.159] [DEBUG] - sub start_check ref count to 0
[2023-07-07 04:13:30.159] [DEBUG] - export start_check
[2023-07-07 04:13:30.159] [DEBUG] - Call oceanbase-ce-py_script_start-4.0.0.0 for oceanbase-ce-4.1.0.0-100000192023032010.el7-8439ecf8db5e0649bd49671b41ea9e8c85756b63
[2023-07-07 04:13:30.159] [DEBUG] - import start
[2023-07-07 04:13:30.161] [DEBUG] - add start ref count to 1
[2023-07-07 04:13:30.162] [INFO] Start observer
[2023-07-07 04:13:30.162] [DEBUG] -- local execute: ls /root/ob/store/clog/tenant_1/ 
[2023-07-07 04:13:30.167] [DEBUG] -- exited code 2, error output:
[2023-07-07 04:13:30.167] [DEBUG] ls: cannot access /root/ob/store/clog/tenant_1/: No such file or directory
[2023-07-07 04:13:30.167] [DEBUG] 
[2023-07-07 04:13:30.167] [DEBUG] -- local execute: cat /root/ob/run/observer.pid 
[2023-07-07 04:13:30.171] [DEBUG] -- exited code 0
[2023-07-07 04:13:30.171] [DEBUG] -- local execute: ls /proc/221 
[2023-07-07 04:13:30.176] [DEBUG] -- exited code 2, error output:
[2023-07-07 04:13:30.176] [DEBUG] ls: cannot access /proc/221: No such file or directory
[2023-07-07 04:13:30.176] [DEBUG] 
[2023-07-07 04:13:30.176] [DEBUG] -- 127.0.0.1 start command construction
[2023-07-07 04:13:30.176] [DEBUG] -- starting 127.0.0.1 observer
[2023-07-07 04:13:30.177] [DEBUG] -- [email protected] set env LD_LIBRARY_PATH to '/root/ob/lib:'
[2023-07-07 04:13:30.177] [DEBUG] -- local execute: cd /root/ob; /root/ob/bin/observer -r '127.0.0.1:2882:2881' -p 2881 -P 2882 -z 'zone1' -n 'obcluster' -c 1 -d '/root/ob/store' -i 'lo' -l 'INFO' -o __min_full_resource_pool_memory=2147483648,memory_limit='6G',system_memory='1G',datafile_size='5G',log_disk_size='15G',cpu_count=16,enable_syslog_wf=False,enable_syslog_recycle=True,max_syslog_file_count=4 
[2023-07-07 04:13:30.588] [DEBUG] -- exited code 0
[2023-07-07 04:13:30.589] [DEBUG] -- [email protected] set env LD_LIBRARY_PATH to '/tmp/_MEIFrdMcB'
[2023-07-07 04:13:30.589] [INFO] observer program health check
[2023-07-07 04:13:33.592] [DEBUG] -- 127.0.0.1 program health check
[2023-07-07 04:13:33.592] [DEBUG] -- local execute: cat /root/ob/run/observer.pid 
[2023-07-07 04:13:33.596] [DEBUG] -- exited code 0
[2023-07-07 04:13:33.596] [DEBUG] -- local execute: ls /proc/56 
[2023-07-07 04:13:33.600] [DEBUG] -- exited code 2, error output:
[2023-07-07 04:13:33.600] [DEBUG] ls: cannot access /proc/56: No such file or directory
[2023-07-07 04:13:33.601] [DEBUG] 
[2023-07-07 04:13:33.601] [WARNING] OBD-2002: Failed to start 127.0.0.1 observer
[2023-07-07 04:13:33.601] [DEBUG] - sub start ref count to 0
[2023-07-07 04:13:33.601] [DEBUG] - export start
[2023-07-07 04:13:33.601] [ERROR] oceanbase-ce start failed
[2023-07-07 04:13:33.601] [INFO] See https://www.oceanbase.com/product/ob-deployer/error-codes .
[2023-07-07 04:13:33.601] [INFO] Trace ID: a0cbb15e-1c7c-11ee-acab-0242ac110002
[2023-07-07 04:13:33.602] [INFO] If you want to view detailed obd logs, please run: obd display-trace a0cbb15e-1c7c-11ee-acab-0242ac110002
[2023-07-07 04:13:33.602] [DEBUG] - share lock /root/.obd/lock/mirror_and_repo release, count 1
[2023-07-07 04:13:33.602] [DEBUG] - share lock /root/.obd/lock/mirror_and_repo release, count 0
[2023-07-07 04:13:33.602] [DEBUG] - unlock /root/.obd/lock/mirror_and_repo
[2023-07-07 04:13:33.602] [DEBUG] - exclusive lock /root/.obd/lock/deploy_obcluster release, count 0
[2023-07-07 04:13:33.602] [DEBUG] - unlock /root/.obd/lock/deploy_obcluster
[2023-07-07 04:13:33.602] [DEBUG] - share lock /root/.obd/lock/global release, count 0
[2023-07-07 04:13:33.602] [DEBUG] - unlock /root/.obd/lock/global

[Bug]: docker run with errors ERROR 2002 (HY000): Can't connect to OceanBase server on '127.1' (115)

Describe the bug

There is a docker run error such as:

2023-10-09 22:18:32 Check before start obagent ok
2023-10-09 22:18:32 Start observer ok
2023-10-09 22:18:35 observer program health check x
2023-10-09 22:18:35 [WARN] OBD-2002: Failed to start 127.0.0.1 observer
2023-10-09 22:18:35 [ERROR] oceanbase-ce start failed
2023-10-09 22:18:35 See https://www.oceanbase.com/product/ob-deployer/error-codes .
2023-10-09 22:18:35 Trace ID: 95948eb8-66d8-11ee-887b-0242ac110002
2023-10-09 22:18:35 If you want to view detailed obd logs, please run: obd display-trace 95948eb8-66d8-11ee-887b-0242ac110002
Deploy "obcluster" is deployed
2023-10-09 22:18:36 See https://www.oceanbase.com/product/ob-deployer/error-codes .
2023-10-09 22:18:36 Trace ID: a4f4bbe4-66d8-11ee-8469-0242ac110002
2023-10-09 22:18:36 If you want to view detailed obd logs, please run: obd display-trace a4f4bbe4-66d8-11ee-8469-0242ac110002
2023-10-09 22:18:36 ERROR 2002 (HY000): Can't connect to OceanBase server on '127.1' (115)
2023-10-09 22:18:36 deploy success!
2023-10-09 22:18:36 boot success!

Environment
Docker on Mac OS

  • OS Version and CPU Arch(23.0.0 Darwin Kernel Version 23.0.0: Fri Sep 15 14:42:42 PDT 2023; root:xnu-10002.1.13~1/RELEASE_X86_64 x86_64):

  • OB Version(LD_LIBRARY_PATH=../lib:$LD_LIBRARY_PATH ./observer -V):

Fast Reproduce Steps(Required)

docker run -p 2881:2881 --name oceanbase-ce -e MINI_MODE=1 -d oceanbase/oceanbase-ce
docker exec -it oceanbase-ce ob-mysql sys # Connect to the root user of the sys tenant.

Steps to reproduce the behavior:

Expected behavior
Docker run successfully
Second docker command run interactively without this error:
docker exec -it oceanbase-ce ob-mysql sys login as root@sys Command is: obclient -h127.1 -uroot@sys -A -Doceanbase -P2881 ERROR 2002 (HY000): Can't connect to OceanBase server on '127.1' (115)

Actual Behavior
Снимок экрана 2023-10-09 в 22 24 08

Additional context
just tried fresh run in docker

关于OceanBase Docker部署方式指定初始用户名和密码的问题

Description

docker run -p 2881:2881 --name obstandalone -e MINI_MODE=1 -v /init:/root/boot/init.d -e OB_ROOT_PASSWORD="root" -d oceanbase/oceanbase-ce
我使用此命令安装部署oceanbase,想要实现2个功能,第一个初始化加载sql脚本,另外一个指定初始化的root用户名,但是失败了,

[Bug]: Init sql executed failure when starting docker container on slim mode

Describe the bug

Init sql executed failure when starting docker container on slim mode.

Environment

Docker tag : 4.2.1_bp3 and 4.2.2

Fast Reproduce Steps(Required)

Copy init sql to /root/boot/init.d/ and start docker container on slim mode. The log output:

STDOUT: Executing user defined scripts...
STDOUT: running /root/boot/init.d/init.sql ...
STDERR: ERROR 8001 (08004): Server is initializing

[Bug]: can't run with official docker image

Describe the bug

Run with official docker image, but get failed.

Environment

docker image
oceanbase/oceanbase-ce:4.3.0

Fast Reproduce Steps(Required)

Steps to reproduce the behavior:

docker pull oceanbase/oceanbase-ce:4.3.0
docker run -p 2881:2881 --name oceanbase-ce -e MODE=mini -d oceanbase/oceanbase-ce:4.3.0

Actual Behavior

run docker logs --tail 20 -f oceanbase-ce, and got

+--------------+---------+------------------------+------------------------------------------+
Repository integrity check ok
Parameter check ok
Cluster status check ok
Initializes observer work home x
[ERROR] OBD-1002: Fail to init 127.0.0.1 home path: /root/ob is not empty.

Initializes obagent work home x
[ERROR] OBD-1002: Fail to init 127.0.0.1 home path: /root/obagent is not empty.

See https://www.oceanbase.com/product/ob-deployer/error-codes .
Trace ID: 33b36f50-1d87-11ef-a58a-0242ac110003
If you want to view detailed obd logs, please run: obd display-trace 33b36f50-1d87-11ef-a58a-0242ac110003
/////////////////////// phase end: 44.454 s ///////////////////////
///////////////////////         STEP 5: Ob-deploy Create Tenant         ///////////////////////
Deploy "obcluster" is configured
See https://www.oceanbase.com/product/ob-deployer/error-codes .
Trace ID: 4d9a4aba-1d87-11ef-9e63-0242ac110003
If you want to view detailed obd logs, please run: obd display-trace 4d9a4aba-1d87-11ef-9e63-0242ac110003
deploy failed!

Additional context

try docker image oceanbase/oceanbase-ce:4.2.2, same thing happen

[Bug]: Docker 4.2.0.0 restart failed.

When i try to start docker container with version 4.2.0.0, it failed.

2023-11-28 22:03:14 [WARN] failed to start 127.0.0.1 obagent
2023-11-28 22:03:14 [ERROR] obagent start failed
2023-11-28 22:03:14 Wait for observer init ok
2023-11-28 22:03:14 +---------------------------------------------+
2023-11-28 22:03:14 |                   observer                  |
2023-11-28 22:03:14 +-----------+---------+------+-------+--------+
2023-11-28 22:03:14 | ip        | version | port | zone  | status |
2023-11-28 22:03:14 +-----------+---------+------+-------+--------+
2023-11-28 22:03:14 | 127.0.0.1 | 4.2.0.0 | 2881 | zone1 | ACTIVE |
2023-11-28 22:03:14 +-----------+---------+------+-------+--------+
2023-11-28 22:03:14 obclient -h127.0.0.1 -P2881 -uroot -Doceanbase -A
2023-11-28 22:03:14 
2023-11-28 22:03:14 See https://www.oceanbase.com/product/ob-deployer/error-codes .
2023-11-28 22:03:14 Trace ID: d137ee02-8df6-11ee-a930-0242ac110002
2023-11-28 22:03:14 If you want to view detailed obd logs, please run: obd display-trace d137ee02-8df6-11ee-a930-0242ac110002
boot failed!2:03:14 

[Question]: Oceanbase docker cpu utilization is high in macos.

Please check the issue list for the same question

  • Please try full text in English and attach precise description.

Describe your question

image

docker run -p 2881:2881 --name obstandalone -e MINI_MODE=1 -d oceanbase/oceanbase-ce

Server version: OceanBase_CE 4.0.0.0 (r100000272022110114-6af7f9ae79cd0ecbafd4b1b88e2886ccdba0c3be) (Built Nov 1 2022 14:53:48)

Software:

System Software Overview:

  System Version: macOS 12.4 (21F2081)
  Kernel Version: Darwin 21.5.0
  Boot Volume: Macintosh HD
  Boot Mode: Normal
  Secure Virtual Memory: Enabled
  System Integrity Protection: Enabled
  Time since boot: 49 days 3 minutes

Hardware:

Hardware Overview:

  Model Name: MacBook Air
  Model Identifier: Mac14,2
  Chip: Apple M2
  Total Number of Cores: 8 (4 performance and 4 efficiency)
  Memory: 16 GB
  System Firmware Version: 7459.121.3
  OS Loader Version: 7459.121.3

[Feature]: Set oceanbase root service list to oceanbase container ip

Use Case

I have deployed two containers, oceanbase-ce and centos, on one physical machine at the same time, they are under the same network and can communicate with each other by name.

  • create a docker network:
    docker network create test-net
  • run the oceanbase-ce container and connect it to the custom network:
    docker run -itd --name oceanbase-ce --network test-net oceanbase/oceanbase-ce
  • run the centos container and connect it to the custom network:
    docker run -itd --name centos --network test-net centos:7

Now, both containers, oceanbase-ce and centos, are connected to the "test-net" network. I will ping the oceanbase-ce container from the centos container.

  • exec centos container:
    docker exec -it centos bash
  • ping oceanbase-ce container:
ping oceanbase-ce
PING oceanbase-ce (172.31.0.2) 56(84) bytes of data.
64 bytes from oceanbase-ce.test-net (172.31.0.2): icmp_seq=1 ttl=64 time=0.085 ms
64 bytes from oceanbase-ce.test-net (172.31.0.2): icmp_seq=2 ttl=64 time=0.076 ms
64 bytes from oceanbase-ce.test-net (172.31.0.2): icmp_seq=3 ttl=64 time=0.092 ms
64 bytes from oceanbase-ce.test-net (172.31.0.2): icmp_seq=4 ttl=64 time=0.090 ms
64 bytes from oceanbase-ce.test-net (172.31.0.2): icmp_seq=5 ttl=64 time=0.064 ms

172.31.0.2 is the ip of the container where oceanbase-ce is located, connect to oceanbase via mysql command.

  • exec mysql command:
mysql -uroot -hoceanbase-ce -P2881
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MySQL connection id is 3221488329
Server version: 5.7.25 OceanBase_CE 4.1.0.0 (r100000192023032010-0265dfc6d00ff4f0ff4ad2710504a18962abaef6) (Built Mar 20 2023 10:12:57)

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MySQL [(none)]>

It's okay up to here, but get the rootservice list.

MySQL [(none)]> show parameters like 'rootservice_list';
+-------+----------+-----------+----------+------------------+-----------+---------------------+------------------------------------------------------------------------------+----------+---------+---------+-------------------+
| zone  | svr_type | svr_ip    | svr_port | name             | data_type | value               | info                                                                         | section  | scope   | source  | edit_level        |
+-------+----------+-----------+----------+------------------+-----------+---------------------+------------------------------------------------------------------------------+----------+---------+---------+-------------------+
| zone1 | observer | 127.0.0.1 |     2882 | rootservice_list | NULL      | 127.0.0.1:2882:2881 | a list of servers against which election candidate is checked for validation | OBSERVER | CLUSTER | DEFAULT | DYNAMIC_EFFECTIVE |
+-------+----------+-----------+----------+------------------+-----------+---------------------+------------------------------------------------------------------------------+----------+---------+---------+-------------------+
1 row in set (0.02 sec)

MySQL [(none)]>

127.0.0.1 is the rootservice ip address, but I was expecting 172.31.0.2, because I need to get 172.31.0.2 to access the rootservice.

The IP address here (172.31.0.2) is unknown until the oceanbase-ce container is started, so I can't get the actual address of oceanbase-ce, and I would imagine that any program that wants to access the rootservice would have a similar problem present.

Describe the solution you'd like

Set oceanbase root service list to oceanbase container ip.

Describe alternatives you've considered

Additional context

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.