Loading...
MySQL 9.5 Reference Manual 9.5의 25.5.7 ndb_config — Extract NDB Cluster Configuration Information의 한국어 번역본입니다.
아래의 경우에 피드백에서 신고해주신다면 반영하겠습니다.
감사합니다 :)
이 도구는 data node, SQL node, 그리고 API node에 대한 현재 설정 정보를 여러 소스 중 하나(하나의 NDB Cluster management node, 또는 그 management node의 config.ini 또는 my.cnf 파일)에서 추출합니다. 기본적으로 설정 데이터의 소스는 management node입니다. 기본값을 재정의하려면 --config-file 또는 --mycnf 옵션을 사용하여 ndb_config를 실행합니다. 또한 --config_from_node=node_id 옵션으로 해당 node ID를 지정하여 data node를 소스로 사용할 수도 있습니다.
ndb_config는 또한 오프라인 덤프를 제공할 수 있는데, 여기에는 모든 설정 파라미터와 그 기본값, 최대값, 최소값 및 기타 정보가 포함되며, 이를 사용할 수 있습니다. 덤프는 텍스트 또는 XML 형식으로 생성할 수 있습니다. 자세한 내용은 이 섹션 뒤에서 다루는 --configinfo 및 --xml 옵션에 대한 설명을 참조하십시오.
DB, SYSTEM, 또는 CONNECTIONS 섹션별로 결과를 필터링하려면 --nodes, --system, 또는 --connections 옵션 중 하나를 사용합니다.
ndb_config와 함께 사용할 수 있는 모든 옵션은 다음 표에 나와 있습니다. 추가 설명은 표 뒤에 나옵니다.
| Property | Value |
|---|---|
| Command-Line Format | --character-sets-dir=path |
문자 집합이 들어 있는 디렉터리입니다.
| Property | Value |
|---|---|
| Command-Line Format | --cluster-config-suffix=name |
| Type | String |
| Default Value | [none] |
my.cnf에서 클러스터 설정 섹션을 읽을 때 기본 그룹 접미사를 재정의합니다. 테스트에 사용됩니다.
--configinfo 옵션은 ndb_config가 자신이 속한 NDB Cluster 배포판에서 지원하는 각 NDB Cluster 설정 파라미터의 목록을 덤프하게 하며, 여기에는 다음과 같은 정보가 포함됩니다:
config.ini 파일의 섹션기본적으로 이 출력은 텍스트 형식입니다. 이 출력의 일부는 다음과 같습니다:
1$> ndb_config --configinfo 2 3****** SYSTEM ****** 4 5Name (String) 6Name of system (NDB Cluster) 7MANDATORY 8 9PrimaryMGMNode (Non-negative Integer) 10Node id of Primary ndb_mgmd(MGM) node 11Default: 0 (Min: 0, Max: 4294967039) 12 13ConfigGenerationNumber (Non-negative Integer) 14Configuration generation number 15Default: 0 (Min: 0, Max: 4294967039) 16 17****** DB ****** 18 19MaxNoOfSubscriptions (Non-negative Integer) 20Max no of subscriptions (default 0 == MaxNoOfTables) 21Default: 0 (Min: 0, Max: 4294967039) 22 23MaxNoOfSubscribers (Non-negative Integer) 24Max no of subscribers (default 0 == 2 * MaxNoOfTables) 25Default: 0 (Min: 0, Max: 4294967039) 26 27…
XML 형식의 출력을 얻으려면 이 옵션을 --xml 옵션과 함께 사용합니다.
| Property | Value |
|---|---|
| Command-Line Format | --config-binary-file=path/to/file |
| Type | File name |
| Default Value | `` |
management 서버의 캐시된 바이너리 설정 파일(ndb_nodeID_config.bin.seqno) 경로를 지정합니다. 상대 경로 또는 절대 경로 모두 사용할 수 있습니다. management 서버와 사용 중인 ndb_config 바이너리가 서로 다른 호스트에 있는 경우, 절대 경로를 사용해야 합니다.
다음 예제는 --config-binary-file을 다른 ndb_config 옵션과 결합하여 유용한 출력을 얻는 방법을 보여 줍니다:
1$> ndb_config --config-binary-file=../mysql-cluster/ndb_50_config.bin.1 --diff-default --type=ndbd 2config of [DB] node id 5 that is different from default 3CONFIG_PARAMETER,ACTUAL_VALUE,DEFAULT_VALUE 4NodeId,5,(mandatory) 5BackupDataDir,/local/data/9.5,(null) 6DataDir,/local/data/9.5,. 7DataMemory,2G,98M 8FileSystemPath,/local/data/9.5,(null) 9HostName,127.0.0.1,localhost 10Nodegroup,0,(null) 11ThreadConfig,,(null) 12 13config of [DB] node id 6 that is different from default 14CONFIG_PARAMETER,ACTUAL_VALUE,DEFAULT_VALUE 15NodeId,6,(mandatory) 16BackupDataDir,/local/data/9.5,(null) 17DataDir,/local/data/9.5. 18DataMemory,2G,98M 19FileSystemPath,/local/data/9.5,(null) 20HostName,127.0.0.1,localhost 21Nodegroup,0,(null) 22ThreadConfig,,(null) 23 24$> ndb_config --config-binary-file=../mysql-cluster/ndb_50_config.bin.1 --diff-default --system 25config of [SYSTEM] system 26CONFIG_PARAMETER,ACTUAL_VALUE,DEFAULT_VALUE 27Name,MC_20220906060042,(mandatory) 28ConfigGenerationNumber,1,0 29PrimaryMGMNode,50,0
관련된 config.ini 파일의 부분은 다음과 같습니다:
1[ndbd default] 2DataMemory= 2G 3NoOfReplicas= 2 4 5[ndb_mgmd] 6NodeId= 50 7HostName= 127.0.0.1 8 9[ndbd] 10NodeId= 5 11HostName= 127.0.0.1 12DataDir= /local/data/9.5 13 14[ndbd] 15NodeId= 6 16HostName= 127.0.0.1 17DataDir= /local/data/9.5
출력과 설정 파일을 비교해 보면, 파일의 모든 설정이 management 서버에 의해 바이너리 캐시에 기록되었고, 따라서 클러스터에 적용되었음을 확인할 수 있습니다.
| Property | Value |
|---|---|
| Command-Line Format | --config-file=file_name |
| Type | File name |
| Default Value | `` |
클러스터 설정 파일(config.ini)의 경로를 지정합니다. 상대 경로 또는 절대 경로 모두 사용할 수 있습니다. management 서버와 사용 중인 ndb_config 바이너리가 서로 다른 호스트에 있는 경우, 절대 경로를 사용해야 합니다.
| Property | Value |
|---|---|
| Command-Line Format | --config-from-node=# |
| Type | Numeric |
| Default Value | none |
| Minimum Value | 1 |
| Maximum Value | 48 |
이 ID를 가진 data node에서 클러스터의 설정 데이터를 가져옵니다.
해당 ID를 가진 node가 data node가 아닌 경우 ndb_config는 오류와 함께 실패합니다. (대신 management node에서 설정 데이터를 얻으려면 이 옵션을 생략하면 됩니다.)
| Property | Value |
|---|---|
| Command-Line Format | --connect-retries=# |
| Type | Integer |
| Default Value | 12 |
| Minimum Value | 0 |
| Maximum Value | 12 |
포기하기 전에 연결을 재시도하는 횟수입니다.
| Property | Value |
|---|---|
| Command-Line Format | --connect-retry-delay=# |
| Type | Integer |
| Default Value | 5 |
| Minimum Value | 0 |
| Maximum Value | 5 |
management 서버에 접속을 시도하는 사이에 기다리는 시간(초)입니다.
| Property | Value |
|---|---|
| Command-Line Format | --connect-string=connection_string |
| Type | String |
| Default Value | [none] |
--ndb-connectstring과 동일합니다.
| Property | Value |
|---|---|
| Command-Line Format | --connections |
ndb_config가 CONNECTIONS 정보만—즉, 클러스터 설정 파일의 [tcp], [tcp default], [shm], 또는 [shm default] 섹션에 있는 파라미터 정보만—출력하도록 합니다(자세한 내용은 Section 25.4.3.10, “NDB Cluster TCP/IP Connections” 및 Section 25.4.3.12, “NDB Cluster Shared-Memory Connections”을 참조하십시오).
이 옵션은 --nodes 및 --system과 상호 배타적이며, 이 세 가지 옵션 중 하나만 사용할 수 있습니다.
| Property | Value |
|---|---|
| Command-Line Format | --core-file |
오류 발생 시 코어 파일을 작성합니다. 디버깅에 사용됩니다.
| Property | Value |
|---|---|
| Command-Line Format | --defaults-extra-file=path |
| Type | String |
| Default Value | [none] |
글로벌 파일을 읽은 후 지정된 파일을 읽습니다.
| Property | Value |
|---|---|
| Command-Line Format | --defaults-file=path |
| Type | String |
| Default Value | [none] |
지정된 파일에서만 기본 옵션을 읽습니다.
| Property | Value |
|---|---|
| Command-Line Format | --defaults-group-suffix=string |
| Type | String |
| Default Value | [none] |
concat(group, suffix)로 된 그룹도 읽습니다.
| Property | Value |
|---|---|
| Command-Line Format | --diff-default |
기본값이 아닌 설정 파라미터만 출력합니다.
--fields=delimiter,-f delimiter| Property | Value |
|---|---|
| Command-Line Format | --fields=string |
| Type | String |
| Default Value | `` |
결과에서 필드를 구분하는 데 사용되는 delimiter 문자열을 지정합니다. 기본값은 ,(콤마 문자)입니다.
참고
_delimiter_에 공백이나 이스케이프(\n 같은 줄바꿈 문자용)가 포함되어 있으면, 반드시 따옴표로 감싸야 합니다.
| Property | Value |
|---|---|
| Command-Line Format | --help |
도움말 텍스트를 표시하고 종료합니다.
| Property | Value |
|---|---|
| Command-Line Format | --host=name |
| Type | String |
| Default Value | `` |
설정 정보를 얻으려는 node의 호스트 이름을 지정합니다.
참고
호스트 이름 localhost는 일반적으로 IP 주소 127.0.0.1로 변환되지만, 이는 모든 운영 플랫폼과 설정에 대해 반드시 참은 아닙니다. 이는 config.ini에서 localhost를 사용한 경우, ndb_config --host=localhost가 localhost가 다른 주소로 변환되는 다른 호스트(예를 들어, 일부 SUSE Linux 버전에서는 127.0.0.2)에서 실행될 경우 실패할 수 있음을 의미합니다. 일반적으로 최상의 결과를 얻으려면 호스트와 관련된 모든 NDB Cluster 설정 값에 숫자 IP 주소를 사용하거나, 모든 NDB Cluster 호스트가 localhost를 동일한 방식으로 처리하는지 확인해야 합니다.
| Property | Value |
|---|---|
| Command-Line Format | --login-path=path |
| Type | String |
| Default Value | [none] |
로그인 파일에서 지정된 경로를 읽습니다.
| Property | Value |
|---|---|
| Command-Line Format | --mycnf |
my.cnf 파일에서 설정 데이터를 읽습니다.
--ndb-connectstring=connection_string,-c connection_string| Property | Value |
|---|---|
| Command-Line Format | --ndb-connectstring=connection_string |
| Type | String |
| Default Value | [none] |
management 서버에 연결할 때 사용할 연결 문자열을 지정합니다. 연결 문자열 형식은 Section 25.4.3.3, “NDB Cluster Connection Strings”에 설명된 것과 동일하며, 기본값은 localhost:1186입니다.
| Property | Value |
|---|---|
| Command-Line Format | --ndb-mgm-tls=level |
| Type | Enumeration |
| Default Value | relaxed |
| Valid Values | relaxed<br>strict |
management 서버에 연결할 때 요구되는 TLS 지원 수준을 설정합니다. relaxed 또는 strict 중 하나입니다. relaxed(기본값)는 TLS 연결을 시도하지만 성공이 필수는 아님을 의미하고, strict는 연결에 TLS가 필수임을 의미합니다.
| Property | Value |
|---|---|
| Command-Line Format | --ndb-mgmd-host=connection_string |
| Type | String |
| Default Value | [none] |
--ndb-connectstring과 동일합니다.
| Property | Value |
|---|---|
| Command-Line Format | --ndb-nodeid=# |
| Type | Integer |
| Default Value | [none] |
--ndb-connectstring에 의해 설정된 ID를 재정의하여, 이 node에 대한 node ID를 설정합니다.
| Property | Value |
|---|---|
| Command-Line Format | --ndb-optimized-node-selection |
트랜잭션을 위한 node 선택에 대한 최적화를 활성화합니다. 기본적으로 활성화되어 있으며, 비활성화하려면 --skip-ndb-optimized-node-selection을 사용합니다.
| Property | Value |
|---|---|
| Command-Line Format | --ndb-tls-search-path=list |
| Type | Path name |
| Default Value (Unix) | $HOME/ndb-tls |
| Default Value (Windows) | $HOMEDIR/ndb-tls |
CA 파일을 검색할 디렉터리 목록을 지정합니다. Unix 플랫폼에서는 디렉터리 이름을 콜론(:)으로 구분하고, Windows 시스템에서는 세미콜론 문자(;)를 구분자로 사용합니다. 디렉터리 참조는 상대 경로나 절대 경로일 수 있습니다. 하나 이상의 환경 변수를 포함할 수 있으며, 각각 달러 기호($) 접두사로 표시되고 사용 전에 확장됩니다.
검색은 가장 왼쪽에 있는 디렉터리부터 시작해 파일을 찾을 때까지 왼쪽에서 오른쪽으로 진행됩니다. 빈 문자열은 빈 검색 경로를 나타내며, 이 경우 모든 검색이 실패합니다. 점 하나(.)로 이루어진 문자열은 검색 경로가 현재 작업 디렉터리로 제한됨을 나타냅니다.
검색 경로를 제공하지 않으면, 컴파일 시 내장된 기본값이 사용됩니다. 이 값은 사용하는 플랫폼에 따라 달라집니다. Windows에서는 \ndb-tls이고, 그 외 플랫폼(Linux 포함)에서는 $HOME/ndb-tls입니다. 이는 -DWITH_NDB_TLS_SEARCH_PATH를 사용해 NDB Cluster를 컴파일함으로써 재정의할 수 있습니다.
| Property | Value |
|---|---|
| Command-Line Format | --no-defaults |
로그인 파일 이외의 옵션 파일에서 기본 옵션을 읽지 않습니다.
| Property | Value |
|---|---|
| Command-Line Format | --no-login-paths |
로그인 경로 파일에서 옵션을 읽는 것을 건너뜁니다.
| Property | Value |
|---|---|
| Command-Line Format | --ndb-nodeid=# |
| Type | Integer |
| Default Value | [none] |
설정 정보를 얻으려는 node의 node ID를 지정합니다.
| Property | Value |
|---|---|
| Command-Line Format | --nodes |
ndb_config가 클러스터 설정 파일의 [ndbd] 또는 [ndbd default] 섹션에 정의된 파라미터와 관련된 정보만 출력하도록 합니다(자세한 내용은 Section 25.4.3.6, “Defining NDB Cluster Data Nodes”를 참조하십시오).
이 옵션은 --connections 및 --system과 상호 배타적이며, 이 세 가지 옵션 중 하나만 사용할 수 있습니다.
| Property | Value |
|---|---|
| Command-Line Format | --print-defaults |
프로그램 인자 목록을 출력하고 종료합니다.
--query=query-options,-q query-options| Property | Value |
|---|---|
| Command-Line Format | --query=string |
| Type | String |
| Default Value | `` |
이 값은 쿼리 옵션—즉, 반환할 하나 이상의 node 속성 목록—의 콤마로 구분된 리스트입니다. 여기에는 nodeid(node ID), type(node 타입—즉 ndbd, mysqld, 또는 ndb_mgmd), 그리고 값을 가져올 설정 파라미터가 포함됩니다.
예를 들어, --query=nodeid,type,datamemory,datadir은 각 node에 대해 node ID, node 타입, DataMemory, DataDir를 반환합니다.
참고
특정 파라미터가 특정 유형의 node에 적용되지 않는 경우, 해당 값에는 빈 문자열이 반환됩니다. 자세한 내용은 이 섹션 뒤에 나오는 예제를 참조하십시오.
--query-all,-a| Property | Value |
|---|---|
| Command-Line Format | --query-all |
| Type | String |
| Default Value | `` |
모든 쿼리 옵션(node 속성)에 대한 콤마로 구분된 리스트를 반환합니다. 이 리스트는 단일 문자열입니다.
--rows=separator,-r separator| Property | Value |
|---|---|
| Command-Line Format | --rows=string |
| Type | String |
| Default Value | `` |
결과에서 행을 구분하는 데 사용되는 separator 문자열을 지정합니다. 기본값은 공백 문자입니다.
참고
_separator_에 공백이나 이스케이프(\n 같은 줄바꿈 문자용)가 포함되어 있으면, 반드시 따옴표로 감싸야 합니다.
| Property | Value |
|---|---|
| Command-Line Format | --system |
ndb_config가 SYSTEM 정보만 출력하도록 합니다. 이는 런타임에 변경할 수 없는 시스템 변수로 구성됩니다. 따라서 이에 해당하는 클러스터 설정 파일 섹션은 없습니다. 이 값들은 ndb_config --configinfo 출력에서(****** SYSTEM ****** 접두사로) 확인할 수 있습니다.
이 옵션은 --nodes 및 --connections과 상호 배타적이며, 이 세 가지 옵션 중 하나만 사용할 수 있습니다.
| Property | Value |
|---|---|
| Command-Line Format | --type=name |
| Type | Enumeration |
| Default Value | [none] |
| Valid Values | ndbd<br>mysqld<br>ndb_mgmd |
결과를 필터링하여 지정된 node_type(ndbd, mysqld, 또는 ndb_mgmd) node에만 적용되는 설정 값을 반환합니다.
--usage,--help, or -?| Property | Value |
|---|---|
| Command-Line Format | --help |
ndb_config가 사용 가능한 옵션 목록을 출력한 다음 종료하도록 합니다.
--version,-V| Property | Value |
|---|---|
| Command-Line Format | --version |
ndb_config가 버전 정보 문자열을 출력한 다음 종료하도록 합니다.
--configinfo --xml| Property | Value |
|---|---|
| Command-Line Format | --configinfo --xml |
이 옵션을 추가하면 ndb_config --configinfo가 XML로 출력을 제공하게 합니다. 이러한 출력의 일부는 다음 예에서 볼 수 있습니다:
1$> ndb_config --configinfo --xml 2 3<configvariables protocolversion="1" ndbversionstring="5.7.44-ndb-7.5.36" 4 ndbversion="460032" ndbversionmajor="7" ndbversionminor="5" 5 ndbversionbuild="0"> 6 <section name="SYSTEM"> 7 <param name="Name" comment="Name of system (NDB Cluster)" type="string" 8 mandatory="true"/> 9 <param name="PrimaryMGMNode" comment="Node id of Primary ndb_mgmd(MGM) node" 10 type="unsigned" default="0" min="0" max="4294967039"/> 11 <param name="ConfigGenerationNumber" comment="Configuration generation number" 12 type="unsigned" default="0" min="0" max="4294967039"/> 13 </section> 14 <section name="MYSQLD" primarykeys="NodeId"> 15 <param name="wan" comment="Use WAN TCP setting as default" type="bool" 16 default="false"/> 17 <param name="HostName" comment="Name of computer for this node" 18 type="string" default=""/> 19 <param name="Id" comment="NodeId" type="unsigned" mandatory="true" 20 min="1" max="255" deprecated="true"/> 21 <param name="NodeId" comment="Number identifying application node (mysqld(API))" 22 type="unsigned" mandatory="true" min="1" max="255"/> 23 <param name="ExecuteOnComputer" comment="HostName" type="string" 24 deprecated="true"/> 25 26 … 27 28 </section> 29 30 … 31 32</configvariables>
참고
일반적으로 ndb_config --configinfo --xml가 생성하는 XML 출력은 element 하나당 한 줄 형식으로 정렬됩니다. 이전 예와 다음 예에서는 가독성을 위해 여분의 공백을 추가했습니다. 대부분의 XML 프로세서는 비필수 공백을 기본적으로 무시하거나 무시하도록 설정할 수 있으므로, 이는 이 출력을 사용하는 애플리케이션에 아무런 영향을 주지 않아야 합니다.
XML 출력은 또한 특정 파라미터의 값 변경 시 data node를 --initial 옵션을 사용해 재시작해야 하는지도 나타냅니다. 이는 해당 <param> element에 initial="true" 속성이 존재하는 것으로 표시됩니다. 추가로, 재시작 타입(system 또는 node)도 표시됩니다. 특정 파라미터에 대해 시스템 재시작이 필요하면, 해당 <param> element에 restart="system" 속성이 존재하는 것으로 표시됩니다. 예를 들어, Diskless 파라미터에 설정된 값을 변경하려면 시스템 초기 재시작이 필요하며, 이는 다음과 같이 표시됩니다(가독성을 위해 restart 및 initial 속성을 강조 표시):
1<param name="Diskless" comment="Run wo/ disk" type="bool" default="false" 2 restart="system" initial="true"/>
현재, 초기 재시작이 필요하지 않은 파라미터에 해당하는 <param> element에는 initial 속성이 포함되지 않습니다. 다시 말해, initial="false"가 기본값이며, 속성이 없으면 값이 false라고 가정해야 합니다. 마찬가지로 기본 재시작 타입은 node(즉, 클러스터의 온라인 또는 “rolling” 재시작)이지만, 재시작 타입이 system인 경우에만 restart 속성이 포함됩니다(이 경우 모든 클러스터 node를 동시에 종료한 다음 다시 시작해야 합니다).
사용 중단(deprecated)된 파라미터는 XML 출력에서 deprecated 속성으로 표시되며, 다음과 같습니다:
1<param name="NoOfDiskPagesToDiskAfterRestartACC" comment="DiskCheckpointSpeed" 2 type="unsigned" default="20" min="1" max="4294967039" deprecated="true"/>
이 경우 comment는 사용 중단된 파라미터를 대체하는 하나 이상의 파라미터를 참조합니다. initial과 마찬가지로, deprecated 속성은 파라미터가 사용 중단된 경우에만 deprecated="true"로 표시되며, 사용 중단되지 않은 파라미터에는 전혀 나타나지 않습니다.(Bug #21127135)
필수 파라미터는 다음과 같이 mandatory="true"로 표시됩니다:
1<param name="NodeId" 2 comment="Number identifying application node (mysqld(API))" 3 type="unsigned" mandatory="true" min="1" max="255"/>
initial 또는 deprecated 속성이 초기 재시작이 필요한 파라미터 또는 사용 중단된 파라미터에 대해서만 표시되는 것과 거의 같은 방식으로, mandatory 속성은 해당 파라미터가 실제로 필수인 경우에만 포함됩니다.
주의
--xml 옵션은 --configinfo 옵션과 함께만 사용할 수 있습니다. --configinfo 없이 --xml을 사용하면 오류로 실패합니다.
현재 설정 데이터를 얻기 위해 이 프로그램에서 사용하는 옵션과 달리, --configinfo와 --xml은 ndb_config가 컴파일될 때 NDB Cluster 소스에서 얻은 정보를 사용합니다. 이 때문에 이 두 옵션에는 실행 중인 NDB Cluster에 대한 연결이나 config.ini 또는 my.cnf 파일에 대한 접근이 필요하지 않습니다.
--query 또는 --type과 같은 다른 ndb_config 옵션을 --configinfo(및/또는 --xml)와 함께 사용하는 것은 지원되지 않습니다. 현재, 이와 같이 시도할 경우 일반적으로 --configinfo 또는 --xml 이외의 모든 옵션이 단순히 무시되는 결과가 발생합니다. 그러나 이 동작은 보장되지 않으며 언제든지 변경될 수 있습니다. 추가로, ndb_config는 --configinfo 옵션과 함께 사용할 때 NDB Cluster에 접근하거나 파일을 읽지 않기 때문에, --ndb-connectstring 또는 --config-file 같은 추가 옵션을 --configinfo와 함께 지정하는 것은 아무런 의미가 없습니다.
1$> ./ndb_config --query=nodeid,type --fields=':' --rows='\n' 21:ndbd 32:ndbd 43:ndbd 54:ndbd 65:ndb_mgmd 76:mysqld 87:mysqld 98:mysqld 109:mysqld
이 예에서는 --fields 옵션을 사용하여 각 node의 ID와 타입을 콜론 문자(:)로 구분했고, --rows 옵션을 사용하여 각 node에 대한 값을 출력에서 새 줄에 배치했습니다.
1$> ./ndb_config --config-file=usr/local/mysql/cluster-data/config.ini \ 2 --query=hostname,portnumber --fields=: --rows=, --type=ndb_mgmd 3198.51.100.179:1186
--type 옵션을 사용하여 data node만 확인하며, 각 node의 ID 및 호스트 이름, 그리고 DataMemory 및 DataDir 파라미터에 대해 설정된 값을 보여 줍니다:1$> ./ndb_config --type=ndbd --query=nodeid,host,datamemory,datadir -f ' : ' -r '\n' 21 : 198.51.100.193 : 83886080 : /usr/local/mysql/cluster-data 32 : 198.51.100.112 : 83886080 : /usr/local/mysql/cluster-data 43 : 198.51.100.176 : 83886080 : /usr/local/mysql/cluster-data 54 : 198.51.100.119 : 83886080 : /usr/local/mysql/cluster-data
이 예에서는 필드 구분자와 행 구분자를 설정하기 위해 각각 쇼트 옵션인 -f와 -r을 사용했으며, 가져올 파라미터 목록을 전달하기 위해 쇼트 옵션 -q도 사용했습니다.
--host 옵션을 사용합니다:1$> ./ndb_config --host=198.51.100.176 -f : -r '\n' -q id,type 23:ndbd 35:ndb_mgmd
이 예에서는 조회할 속성을 결정하기 위해 쇼트 형식 -q도 사용했습니다.
마찬가지로, --nodeid 옵션을 사용하여 특정 ID를 가진 node로 결과를 제한할 수 있습니다.
25.5.6 ndb_blob_tool — Check and Repair BLOB and TEXT columns of NDB Cluster Tables
25.5.8 ndb_delete_all — Delete All Rows from an NDB Table