Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Lookup

설치

Coordinator 노드에서 lookup 노드를 추가한다.  여러 개의 lookup 노드 등록이 가능하다.

해당 서버에 deployer 노드가 미리 설치되어 있어야 한다.

Deployer 노드가 설치되면, 모든 작업은 coordinator 노드에서 수행하게 되며 해당 서버에 접속해서 설정하는 것은 없다

Installation


Add a lookup node in the Coordinator node. Multiple lookup nodes can be registered.

The deployer node must be pre-installed on the server.

When the deployer node is installed, all operations are performed on the coordinator node, and there is nothing to set up by connecting to the server.

Code Block
# Add lookup master 노드를 추가한다.                                 
node
$MACHBASE_COORDINATOR_HOME/bin/machcoordinatoradmin --add-node="192.168.0.84:5301"	\ 
		--node-type=lookup --lookup-type=master --deployer="192.168.0.84:5201" 	    \
		--home-path="/home/machbase/lookup1"


# Add lookup monitor 노드를 추가한다.                                 
$MACHBASEnode
$MACHBASE_COORDINATOR_HOME/bin/machcoordinatoradmin --add-node="192.168.0.84:5302"	\ 
		--node-type=lookup --lookup-type=monitor --deployer="192.168.0.84:5201" 	    \
		--home-path="/home/machbase/lookupm1"


# Add lookup slave 노드를 추가한다.                                 
$MACHBASE_COORDINATOR_HOME/bin/machcoordinatoradmin --add-node=node
$MACHBASE_COORDINATOR_HOME/bin/machcoordinatoradmin --add-node="192.168.0.84:5303"	\ 
		--node-type=lookup --lookup-type=slave --deployer="192.168.0.84:5201" 	    \
		--home-path="/home/machbase/lookup3"

 
# Run lookup 노드를node
실행한다.
$MACHBASE_COORDINATOR_HOME/bin/machcoordinatoradmin --startup-node="192.168.0.84:5301"

# You lookupcan 노드를run 일괄적으로lookup 실행할nodes in 있다.batches
$MACHBASE_COORDINATOR_HOME/bin/machcoordinatoradmin --startup-lookup


옵션 항목

Option Items

설명

Description

예시

Example

--add-node

추가할 노드명으로, “IP:PORT” 형식으로 지정한다

Specifies the node name to be added as "IP: PORT".

192.168.0.84:5301

--node-type

노드 종류를 지정한다

Specifies the node type.

There are five types: coordinator, deployer, lookup, broker,

lookup,

and warehouse

5종류가 있다

.

lookup

--deployer

설치할 서버의

Register the deployer node

정보를 등록한다

information of the server to be installed.

192.168.0.84:5201

--lookup-type

Specify the lookup

노드 종류를 지정한다

type.

master

There are three types: master, slave, monitor

3종류가 있다

.

master

--home-path

설치할 경로를 지정한다

Specifies the path to install.

machbase 계정에서

Specifies /home/

machabse/lookup1 로 지정한다

machbase/lookup in machbase account.

/home/machabse/lookup

설치 조건

Lookup 노드는

Installation Conditions

There are 3 types of Lookup node, Master, Slave, Monitor 3 종류가 존재하는데 아래 조건에 맞게 설치해야 한다and Monitor, and it must be installed according to the conditions below.

  1. Lookup Master 노드

    1. 반드시 1개가 존재해야 하는 Lookup 노드이다.

    2. Monitor, Slave 노드보다 먼저 설치되어야 한다.

  2. Lookup Monitor 노드

    1. 반드시 존재해야 하는 Lookup 노드이다.

    2. 안정적인 HA를 위해 각 서버에 1개씩 존재해야 한다.

  3. Lookup Slave 노드

    1. HA를 위해 1개 이상 존재하는 것을 권장한다. (없을경우 HA를 보장할 수 없다)

Lookup 삭제

Coordinator 노드에서 lookup 노드를 삭제한다.

Code Block# lookup 노드를 삭제한다.
  1. Node

    1. It is a Lookup node that must have only one.

    2. It must be installed before Monitor and Slave nodes.

  2. Lookup Monitor Node

    1. It is a Lookup node that must exist at least one.

    2. For stable HA, there should be one in each server.

  3. Lookup Slave Node

    1. It is recommended that there be more than one for HA. (If not, HA cannot be guaranteed)

Delete Lookup


Remove the broker node from the Coordinator node.

Code Block
# Delete lookup node
$MACHBASE_COORDINATOR_HOME/bin/machcoordinatoradmin --remove-node="192.168.0.84:5301"

Lookup 종료/중단

Coordinator 노드에서 lookup 노드를 종료/중단하는 방법이 있다

Shut Down / Stop Lookup


Shut down / kill the lookup node on the Coordinator node.

Code Block
# Terminate lookup 노드를 종료한다.node
$MACHBASE_COORDINATOR_HOME/bin/machcoordinatoradmin --shutdown-node="192.168.0.84:5301"

# You lookupcan 노드를terminate 일괄적으로lookup 종료할nodes in 있다.batches
$MACHBASE_COORDINATOR_HOME/bin/machcoordinatoradmin --shutdown-lookup

Change Lookup Master

변경

Coordinator 노드에서 lookup master 노드를 변경하는 방법이 있다.

lookup slave에 한해서 lookup master로 변경 가능하며, 기존에 lookup master는 lookup slave가 된다


You can change the lookup master node in the coordinator node.

Only lookup slaves can be changed to lookup masters, and the existing lookup masters become lookup slaves.

Code Block
# Change lookup master를 변경한다.master
$MACHBASE_COORDINATOR_HOME/bin/machcoordinatoradmin --set-lookup-master="192.168.0.84:5301"


Broker

설치

Installation

Coordinator 노드에서 broker 노드를 추가한다.  여러 개의 broker 노드 등록이 가능하다.

해당 서버에 deployer 노드가 미리 설치되어 있어야 한다.

Deployer 노드가 설치되면, 모든 작업은 coordinator 노드에서 수행하게 되며 해당 서버에 접속해서 설정하는 것은 없다.


최초에 등록되는 노드가 leader broker가 되고 이후에 추가적으로 등록되는 노드는 follower broker가 된다Add a broker node to the coordinator node. Multi-broker node registration is possible.

The deployer node must be installed on the server in advance.
Once the deployer node is installed, there is no setting by connecting to the server as  all work can be done on the coordinator node.
The first registered node becomes the leader broker, and the additional registered node becomes the follower broker.

Code Block
languagebash
# Add broker 노드를 추가한다node.                                 
$MACHBASE_COORDINATOR_HOME/bin/machcoordinatoradmin --add-node="192.168.0.84:5301"	\ 
		--node-type=broker --deployer="192.168.0.84:5201" --port-no="5656" 			\
		--home-path="/home/machbase/broker" --package-name=machbase
 
# Run broker 노드를 실행한다node.
$MACHBASE_COORDINATOR_HOME/bin/machcoordinatoradmin --startup-node="192.168.0.84:5301"
옵션 항목

Option Items

설명

Description

예시PORT 값은

Example

--add-node

추가할 노드명으로, “IP:PORT” 형식으로 지정한다.

Specifies the node name to be added as "IP: PORT".

The PORT value is set to the CLUSTER_LINK_PORT_NO

값으로 설정된다

value.

192.168.0.84:5301

--node-type

노드 종류를 지정한다

Specifies the node type.

coordinator

There are five types: coordinator, deployer, lookup, broker,

lookup,

and warehouse

5종류가 있다

.

broker

--deployer

설치할 서버의

Register the deployer node

정보를 등록한다

information of the server to be installed.

192.168.0.84:5201

--port-no

machbased 구동 포트를 지정한다.

Broker는 디폴트값인 5656을 지정한다.

client와 machsql이 접속할 때 이 포트를 이용한다

Specifies 'machbased' port.

The Broker specifies a default value of 5656.
This port is used when connecting to client and machsql.

5656

--home-path

설치할 경로를 지정한다

Specifies the path to install.

machbase 계정에서

Specifies /home/

machabse

machbase/broker

로 지정한다

in machbase account

/home/

machabse

machbase/broker

--package-name

패키지 추가할 때 지정한 package 명을 설정한다

Sets the package name specified when package was added.

machbase



목차

Index


Table of Contents
maxLevel3
indent20px
exclude목차
classtoc

Delete Broker

삭제


Coordinator 노드에서 broker 노드를 삭제한다Remove the broker node from the Coordinator node.

Code Block
languagebash
# Delete broker 노드를 삭제한다node.
$MACHBASE_COORDINATOR_HOME/bin/machcoordinatoradmin --remove-node="192.168.0.84:5301"

Broker 종료/중단

Coordinator 노드에서 broker 노드를 종료/중단하는 방법이 있다

Shut Down / Stop Broker


There is a way to shut down / kill the broker node on the Coordinator node.

Code Block
languagebash
# Terminate broker 노드를 종료한다node.
$MACHBASE_COORDINATOR_HOME/bin/machcoordinatoradmin --shutdown-node="192.168.0.84:5301"
 
# Stop broker 노드를 중단한다node.
$MACHBASE_COORDINATOR_HOME/bin/machcoordinatoradmin --kill-node="192.168.0.84:5301"

또는, broker가 설치된 서버에서 직접 그 프로세스를 종료/중단하는 방법도 있다Alternatively, you can shut down / kill the process directly from the server where the broker is installed.

Code Block
# Terminate broker 노드를 종료한다node.
$MACHBASE_HOME/bin/machadmin -s
 
# Stop broker 노드를 종료한다node.
$MACHBASE_HOME/bin/machadmin -k


Warehouse

설치

Installation

Coordinator 노드에서 active 노드와 standby 노드를 설치한다.

사전에 설치된 deployer 를 통해서 설치된다.

Group1 설치


첫번째 Warehouse 그룹인 Group1 노드를 설치한다Install the active node and the standby node from the Coordinator node.

They will be installed through a pre-installed deployer.

Group 1 Installation

Install the first Warehouse Group1 node.

Code Block
languagebash
# Install group1 warehouse를 설치한다warehouse.                          
$MACHBASE_COORDINATOR_HOME/bin/machcoordinatoradmin --add-node="192.168.0.83:5401"	\
		--node-type=warehouse --deployer="192.168.0.83:5201" --port-no="5400" 		\
		--home-path="/home/machbase/warehouse_g1" --package-name=machbase 			\
		--replication="192.168.0.83:5402"  --group="group1" --no-replicate
 
# 설치된Run 노드를installed 구동한다node.
$MACHBASE_COORDINATOR_HOME/bin/machcoordinatoradmin --startup-node="192.168.0.84:5401"


옵션 항목

Option Items

설명

Description

예시PORT값은

Example

--add-node

추가할 노드명으로 “IP:PORT” 형식으로 지정한다.

Specifies the node name to be added as "IP: PORT".

The PORT value is set to the CLUSTER_LINK_PORT_NO

값으로 설정된다

value.

192.168.0.84:5401

--node-type

노드 종류를 지정한다

Specifies the node type.

There are five types: coordinator, deployer, lookup, broker, and warehouse

,lookup 5종류가 있다

.

warehouse

--deployer

설치할 서버의

Registers the deployer node

정보를 등록한다client와 machsql 접속할 때 이 포트를 이용한다

information of the server to be installed.

192.168.0.84:5201

--port-no

machbased 구동 포트를 지정한다.

Broker에서 5656값을 설정하였으므로 동일 서버에 설치되는 경우 다른 포트를 지정해야 한다. 따라서 warehouse 사용 포트 대역인 5400 을 지정한다.

Specifies the working port of 'machbased'.

Since the value was set to 5656 on the Broker, a different port must be specified if it is installed on the same server. The warehouse port number is set as 5400.
This port is used when connecting to client and machsql.

5400

--home-path

설치할 경로를 지정한다. 그룹을 구분하기 위해서

Specifies the path to install. To distinguish the groups, set them in order of warehouse_g1, g2, g3

순으로 설정한다

.

/home/machbase/warehouse_g1

--package-name

패키지 추가할 때 지정한 package 명을 설정한다PORT값은 해당 warehouse 사용 포트대역인 5402로 지정한다

Sets the package name specified when adding the package.

machbase

--replication

Replication을 담당할 노드를 “IP:PORT” 형식으로 지정한다.

Specifies the node in charge of replication as "IP: PORT".

The port value is set to the warehouse port number 5402.

192.168.0.84:5402

--group

Group명을 지정한다

Specifies the Group name.

group1

--no-replicate

Group내의 warehouse데이터가 있는 경우, 노드추가 시, 데이터를 복제할 것 인지 지정한다.

Group1 에 노드 추가 설치

Warehouse Group1에 노드를 한 개 더 추가 설치한다

Specifies whether to replicate data when adding a node if there is warehouse data in the group.


--set-group-state

Specifies the state of the group as normal and readonly.

Normal is read, write / readonly is read only


Add Node to Group 1

Add another node to Warehouse Group1.

Code Block
languagebash
# group1에Add warehouse node를node 추가to 설치한다group1.               
$MACHBASE_COORDINATOR_HOME/bin/machcoordinatoradmin --add-node="192.168.0.84:5401"	\
		--node-type=warehouse --deployer="192.168.0.84:5201" --port-no="5400" 		\
		--home-path="/home/machbase/warehouse_g1" --package-name=machbase 			\
		--replication="192.168.0.84:5402" --group="group1" --no-replicate
 
# 설치된Run 노드를installed 구동한다node.
$MACHBASE_COORDINATOR_HOME/bin/machcoordinatoradmin --startup-node="192.168.0.84:5401"


옵션 항목

Option Items

설명

Description

예시PORT값은

Example

--add-node

추가할 노드명으로 “IP:PORT” 형식으로 지정한다.

Specifies the node name to be added as "IP: PORT".

The PORT value is set to the CLUSTER_LINK_PORT_NO

값으로 설정된다

value.

192.168.0.84:5401

--node-type

노드 종류를 지정한다

Specifies the node type.

There are five types: coordinator, deployer, lookup, broker,

warehouse,lookup 5종류가 있다.

and warehouse.

warehouse

--deployer

설치할 서버의

Registers the deployer node

정보를 등록한다client와 machsql 접속할 때 이 포트를 이용한다

information of the server to be installed.

192.168.0.84:5201

--port-no

machbased 구동 포트를 지정한다.

Broker에서 5656값을 설정하였으므로 동일 서버에 설치되는 경우 다른 포트를 지정해야 한다. 따라서 warehouse 사용 포트 대역인 5400 을 지정한다.

Specifies the working port  of 'machbased'.

Since the value was set to 5656 on the Broker, a different port must be specified if it is installed on the same server. The warehouse port number is set as 5400.
This port is used when connecting to client and machsql.

5400

--home-path

설치할 경로를 지정한다. 그룹을 구분하기 위해서

Specifies the path to install. To distinguish the groups, set them in order of warehouse_g1, g2, g3

순으로 설정한다

.

/home/machabse/warehouse_g1

--package-name

패키지 추가할 때 지정한 package 명을 설정한다PORT값은 해당 warehouse 사용 포트대역인 5402로 지정한다

Sets the package name specified when adding the package.

machbase

--replication

Replication 을 담당할 노드를 “IP:PORT” 형식으로 지정한다.

Specify the node in charge of replication as "IP: PORT".

The port value is set to the warehouse port number 5402.

192.168.0.84:5402

--group

Group명을 지정한다

Specifies the Group name.

group1

--no-replicate

Group내의 warehouse데이터가 있는 경우, 노드추가 시, 데이터를 복제할 것 인지 지정한다

Specifies whether to replicate data when adding a node if there is warehouse data in the group.


--set-group-state

그룹의 상태를 normal과 readonly 두가지로 지정한다.

Normal은 읽기,쓰기 / Readonly 읽기만 가능

Group2 설치

두 번째 Warehouse 그룹인 Group2 노드를 설치한다

Specifies the state of the group as normal and readonly.

Normal is read, write / readonly is read only


Group 2 Installation

Install the second Warehouse Group2 node.

Code Block
languagebash
# Install group1 warehouse를 설치한다warehouse.                          
$MACHBASE_COORDINATOR_HOME/bin/machcoordinatoradmin --add-node="192.168.0.84:5411"	\
		--node-type=warehouse --deployer="192.168.0.84:5201" --port-no="5410" 		\
		--home-path="/home/machbase/warehouse_g2" --package-name=machbase 			\
		--replication="192.168.0.84:5412"  --group="group2" --no-replicate
 
# 설치된Run 노드를installed 구동한다node.
$MACHBASE_COORDINATOR_HOME/bin/machcoordinatoradmin --startup-node="192.168.0.84:5411"


옵션 항목

Option Items

설명

Description

예시PORT값은

Example

--add-node

추가할 노드명으로 “IP:PORT” 형식으로 지정한다.

Specifies the node name to be added as "IP: PORT".

The PORT value is set to the CLUSTER_LINK_PORT_NO

값으로 설정된다

value.

192.168.0.84:5411

--node-type

노드 종류를 지정한다

Specifies the node type.

There are five types: coordinator, deployer, lookup, broker, and warehouse

,lookup 5종류가 있다

.

warehouse

--deployer

설치할 서버의

Registers the deployer node

정보를 등록한다client와 machsql 접속할 때 이 포트를 이용한다

information of the server to be installed.

192.168.0.84:5201

--port-no

machbased 구동 포트를 지정한다.

Broker에서 5656값을 설정하였으므로 동일 서버에 설치되는 경우 다른 포트를 지정해야 한다. 따라서 warehouse 사용 포트 대역인 5410 을 지정한다.

Specifies the working port  of 'machbased'.

Since the value was set to 5656 on the Broker, a different port must be specified if it is installed on the same server. The warehouse port number is set as 5410.
This port is used when connecting to client and machsql.

5410

--home-path

설치할 경로를 지정한다. 그룹을 구분하기 위해서

Specifies the path to install. To distinguish the groups, set them in order of warehouse_g1, g2, g3

순으로 설정한다

.

/home/machbase/warehouse_g2

--package-name

패키지 추가할 때 지정한 package 명을 설정한다PORT값은 해당 warehouse 사용 포트대역인 5412로 지정한다

Sets the package name specified when adding the package.

machbase

--replication

Replication을 담당할 노드를 “IP:PORT” 형식으로 지정한다.

Specifies the node in charge of replication as "IP: PORT".

The port value is set to the warehouse port number 5412.

192.168.0.84:5412

--group

Group명을 지정한다

Specifies the Group name.

group2

--no-replicate

Group내의 warehouse데이터가 있는 경우, 노드추가 시, 데이터를 복제할 것 인지 지정한다

Specifies whether to replicate data when adding a node if there is warehouse data in the group.


--set-group-state

그룹의 상태를 normal과 readonly 두가지로 지정한다.

Normal은 읽기,쓰기 / Readonly 읽기만 가능

Group2에 노드 추가 설치Warehouse Group2에 노드를 한 개 더 추가 설치한다

Specifies the state of the group as normal and readonly.

Normal is read, write / readonly is read only


Add Node to Group 2

Add another node to Warehouse Group2.

Code Block
languagebash
# group1에Add warehouse node를node 추가to 설치한다group1.               
$MACHBASE_COORDINATOR_HOME/bin/machcoordinatoradmin --add-node="192.168.0.83:5411"	\
		--node-type=warehouse --deployer="192.168.0.83:5201" --port-no="5410" 		\
		--home-path="/home/machbase/warehouse_g2" --package-name=machbase 			\
		--replication="192.168.0.83:5412" --group="group2" --no-replicate
 
# 설치된Run 노드를installed 구동한다node.
$MACHBASE_COORDINATOR_HOME/bin/machcoordinatoradmin --startup-node="192.168.0.83:5411"


옵션 항목

Option Items

설명

Description

예시PORT값은

Example

--add-node

추가할 노드명으로 “IP:PORT” 형식으로 지정한다.

Specifies the node name to be added as "IP: PORT".

The PORT value is set to the CLUSTER_LINK_PORT_NO

값으로 설정된다

value.

192.168.0.83:5411

--node-type

노드 종류를 지정한다

Specifies the node type.

There are five types: coordinator, deployer, lookup, broker, and warehouse

, lookup 5종류가 있다

.

warehouse

--deployer

설치할 서버의

Registers the deployer node

정보를 등록한다client와 machsql 접속할 때 이 포트를 이용한다

information of the server to be installed.

192.168.0.83:5201

--port-no

machbased 구동 포트를 지정한다.

Broker에서 5656값을 설정하였으므로 동일 서버에 설치되는 경우 다른 포트를 지정해야 한다. 따라서 warehouse 사용 포트 대역인 5410 을 지정한다.

Specifies the working port of 'machbased'.

Since the value was set to 5656 on the Broker, a different port must be specified if it is installed on the same server. The warehouse port number is set as 5400.
This port is used when connecting to client and machsql.

5410

--home-path

설치할 경로를 지정한다. 그룹을 구분하기 위해서

Specifies the path to install. To distinguish the groups, set them in order of warehouse_g1, g2, g3

순으로 설정한다

.

/home/machbase/warehouse_g2

--package-name

패키지 추가할 때 지정한 package 명을 설정한다PORT값은 해당 warehouse 사용 포트대역인 5412로 지정한다

Sets the package name specified when adding the package.

machbase

--replication

Replication 을 담당할 노드를 “IP:PORT” 형식으로 지정한다.

Specifies the node in charge of replication as "IP: PORT".

The port value is set to the warehouse port number 5412.

192.168.0.83:5412

--group

Group명을 지정한다

Specifies the Group name.

group2

--no-replicate

Group내의 warehouse데이터가 있는 경우, 노드추가 시, 데이터를 복제할 것 인지 지정한다

Specifies whether to replicate data when adding a node if there is warehouse data in the group.


--set-group-state

그룹의 상태를 normal과 readonly 두가지로 지정한다.

Normal은 읽기,쓰기 / Readonly 읽기만 가능

Warehouse 삭제

Coordinator 노드에서 warehouse 노드를 삭제한다

Specifies the state of the group as normal and readonly.

Normal is read, write / readonly is read only


Delete Warehouse


Delete the warehouse node from the Coordinator node.

Code Block
languagebash
# Delete warehouse 노드를 삭제한다node.
$MACHBASE_COORDINATOR_HOME/bin/machcoordinatoradmin --remove-node="192.168.0.83:5401"

Warehouse 종료/중단

Coordinator 노드에서 warehouse 노드를 종료/중단하는 방법이 있다

Shut Down / Stop Warehouse


There is a way to shut down / kill the warehouse node at the Coordinator node.

Code Block
languagebash
# Terminate warehouse 노드를 종료한다node.
$MACHBASE_COORDINATOR_HOME/bin/machcoordinatoradmin --shutdown-node="192.168.0.83:5401"
 
# Stop warehouse 노드를 중단한다node.
$MACHBASE_COORDINATOR_HOME/bin/machcoordinatoradmin --kill-node="192.168.0.83:5401"

또는 warehouse가 설치된 서버에서 직접 그 프로세스를 종료/중단하는 방법이 있다Otherwise, the process can be shut down / killed directly from the server where the warehouse is installed.

Code Block
# Terminate warehouse 노드를 종료한다node.
$MACHBASE_HOME/bin/machadmin -s
 
# Stop warehouse 노드를 종료한다node.
$MACHBASE_HOME/bin/machadmin -k