2.4.5. 클러스터 구성 파라미터 개요
2.4.5.1. 데이터 노드 구성 파라미터
2.4.5.2. 관리 노드 구성 파라미터
2.4.5.3. SQL 노드 및 API 노드 구성 파라미터
다음에 나오는 섹션에서는 클러스터의 기능을 관장하기 위해서 config.ini 파일에서 사용하는 MySQL 클러스터 구성 파라미터를 설명한다. 각각의 테이블에는 클러스터 노드 프로세스 타입 (ndbd, ndb_mgmd, 그리고 mysqld) 별로 사용 가능한 파라미터들이 디폴트 값, 최소 값, 그리고 최대 사용 가능 값 등으로 구분해서 나와 있다.
또한, 주어진 구성 파라미터 값을 변경하기 위해서는 어떤 타입의 재 시작 (노드 재 시작 또는 시스템 재 시작) – 그리고 재 시작을 반드시 --initial과 함께 해야 하는지 — 이 필요한지도 나와 있다. 이에 대한 정보는 각 테이블의 Restart Type 컬럼에 나와 있으며, 각각의 값은 다음과 같은 의미를 갖게 된다:
- N: 노드 재 시작
- IN: 초기 노드 재 시작
- S: 시스템 재 시작
- IS: 초기 시스템 재 시작
노드 재 시작 또는 초기 노드 재 시작을 실행는 경우에는, 클러스터의 모든 데이터 노드를 순차적으로 재 시작해야 한다. (롤링 재 시작이라고도 함). 온라인으로 클러스터 구성 파라미터를 N 또는 IN으로 업데이트 할 수 있다 — 즉, 클러스터를 셧다운 시키지 않은 채로 —. 초기 노드 재 시작을 하기 위해서는 각 ndbd 프로세스를 --initial 옵션과 함께 사용해야 한다.
시스템을 재 시작하기 위해서는 시스템 전체를 셧다운 시킨 후에 클러스터 전체를 재 시작해야 한다. 초기 시스템 재 시작을 진행하기 위해서는 클러스터를 백업한 후에, 셧다운 후에 클러스터 파일 시스템을 와이핑 (wiping)하고, 재 시작 후에는 백업을 복구해야 한다.
클러스터의 모든 재 시작의 경우, 갱신된 파라미터 값을 정확히 읽어오기 위해서 클러스터의 모든 관리 서버도 반드시 재 시작을 해야 한다.
2.4.5.1. 데이터 노드 구성 파라미터
아래에 나오는 테이블은 클러스터의 데이터 노드를 구성하기 위해서 config.ini 파일의 [NDBD] 또는 [NDB_DEFAULT] 섹션에서 사용하는 파라미터에 대한 내용이다.
재 시작 타입 컬럼 값
- N: 노드 재 시작
- IN: 초기 노드 재 시작
- S: 시스템 재 시작
- IS: 초기 시스템 재 시작
|
Parameter Name |
Type/Units |
Default Value |
Minimum Value |
Maximum Value |
Restart Type |
|
ArbitrationTimeout |
milliseconds |
3000 |
10 |
4294967039 |
N |
|
BackupDataBufferSize |
bytes |
2M |
0 |
4294967039 |
N |
|
BackupDataDir |
string |
FileSystemPath/BACKUP |
N/A |
N/A |
IN |
|
BackupLogBufferSize |
bytes |
2M |
0 |
4294967039 |
N |
|
BackupMemory |
bytes |
4M |
0 |
4294967039 |
N |
|
BackupReportFrequency (Added in MySQL |
seconds |
0 |
0 |
4294967039 |
N |
|
BackupWriteSize |
bytes |
32K |
2K |
4294967039 |
N |
|
BackupMaxWriteSize |
bytes |
256K |
2K |
4294967039 |
N |
|
BatchSizePerLocalScan |
integer |
64 |
1 |
992 |
N |
|
DataDir |
string |
/var/lib/mysql-cluster |
N/A |
N/A |
IN |
|
DataMemory |
bytes |
80M |
1M |
1024G (subject to available system RAM and size of IndexMemory) |
N |
|
DiskCheckpointSpeed (added in |
integer (number of bytes per second) |
10M |
1M |
4294967039 |
N |
|
DiskCheckpointSpeedInRestart |
integer (number of bytes per second) |
100M |
1M |
4294967039 |
N |
|
Diskless |
true|false (1|0) |
0 |
0 |
1 |
IS |
|
DiskPageBufferMemory |
bytes |
64M |
4M |
1024G |
IS |
|
DiskSyncSize |
integer (number of bytes) |
4M |
32K |
4294967039 |
N |
|
ExecuteOnComputer |
integer |
|
|
|
|
|
FileSystemPath |
string |
value specified for DataDir |
N/A |
N/A |
IN |
|
FragmentLogFileSize |
integer |
16M |
4M |
1G |
N |
|
HeartbeatIntervalDbApi |
milliseconds |
1500 |
100 |
4294967039 |
N |
|
HeartbeatIntervalDbDb |
milliseconds |
1500 |
10 |
4294967039 |
N |
|
HostName |
string |
localhost |
N/A |
N/A |
S |
|
Id |
integer |
None |
1 |
63 |
N |
|
IndexMemory |
bytes |
18M |
1M |
1024G (subject to available system RAM and size of DataMemory) |
N |
|
InitialNoOfOpenFiles |
integer |
27 |
20 |
4294967039 |
N |
|
LockPagesInMainMemory |
As of MySQL 5.1.15 (MySQL Cluster 5.1 Carrier Grade Edition: MySQL 5.1.15-ndb-6.1.1): integer; previously: true|false (1|0) |
0 |
0 |
1 |
N |
|
LogLevelCheckpoint |
Integer |
0 |
0 |
15 |
IN |
|
LogLevelCongestion |
Integer |
0 |
0 |
15 |
N |
|
LogLevelConnection |
Integer |
0 |
0 |
15 |
N |
|
LogLevelError |
Integer |
0 |
0 |
15 |
N |
|
LogLevelInfo |
Integer |
0 |
0 |
15 |
N |
|
LogLevelNodeRestart |
Integer |
0 |
0 |
15 |
N |
|
LogLevelShutdown |
Integer |
0 |
0 |
15 |
N |
|
LogLevelStartup |
Integer |
1 |
0 |
15 |
N |
|
LogLevelStatistic |
Integer |
0 |
0 |
15 |
N |
|
LongMessageBuffer |
Bytes |
1M |
512K |
4294967039 |
N |
|
MaxAllocate (Added in MySQL 5.1.15-ndb-6.1.12 and MySQL 5.1.19-ndb-6.2.3) |
Integer |
32M |
1M |
1G |
N |
|
MaxNoOfAttributes |
Integer |
1000 |
32 |
4294967039 |
N |
|
MaxNoOfConcurrentIndexOperations |
Integer |
8K |
0 |
4294967039 |
N |
|
MaxNoOfConcurrentOperations |
Integer |
32768 |
32 |
4294967039 |
N |
|
MaxNoOfConcurrentScans |
Integer |
256 |
2 |
500 |
N |
|
MaxNoOfConcurrentTransactions |
Integer |
4096 |
32 |
4294967039 |
N |
|
MaxNoOfFiredTriggers |
Integer |
4000 |
0 |
4294967039 |
N |
|
MaxNoOfIndexes (DEPRECATED — use MaxNoOfOrderedIndexes or MaxNoOfUniqueHashIndexes instead) |
Integer |
128 |
0 |
4294967039 |
N |
|
MaxNoOfLocalOperations |
Integer |
UNDEFINED |
32 |
4294967039 |
N |
|
MaxNoOfLocalScans |
Integer |
UNDEFINED (see description) |
32 |
4294967039 |
N |
|
MaxNoOfOpenFiles |
Integer |
40 |
20 |
4294967039 |
N |
|
MaxNoOfOrderedIndexes |
Integer |
128 |
0 |
4294967039 |
N |
|
MaxNoOfSavedMessages |
Integer |
25 |
0 |
4294967039 |
N |
|
MaxNoOfTables |
Integer |
128 |
8 |
4294967039 |
N |
|
MaxNoOfTriggers |
Integer |
768 |
0 |
4294967039 |
N |
|
MaxNoOfUniqueHashIndexes |
Integer |
64 |
0 |
4294967039 |
N |
|
MemReportFrequency (added in |
Integer |
0 |
0 |
4294967039 |
N |
|
NoOfDiskPagesToDiskAfterRestartACC (DEPRECATED as |
Integer (number of 8KB pages per 100 milliseconds) |
20 (= 20 * 80KB = 1.6MB/second) |
1 |
4294967039 |
N |
|
NoOfDiskPagesToDiskAfterRestartTUP (DEPRECATED as |
integer (number of |
40 (= 40 * 80KB = 3.2MB/second) |
1 |
4294967039 |
N |
|
NoOfDiskPagesToDiskDuringRestartACC (DEPRECATED as of MySQL 5.1.6) |
integer (number of 8KB pages per 100 milliseconds) |
20 (= 20 * 80KB = 1.6MB/second) |
1 |
4294967039 |
N |
|
NoOfDiskPagesToDiskDuringRestartTUP (DEPRECATED as of MySQL 5.1.6) |
integer (number of 8KB pages per 100 milliseconds) |
40 (= 40 * 80KB = 3.2MB/second) |
1 |
4294967039 |
N |
|
NoOfFragmentLogFiles |
integer |
16 |
3 |
4294967039 |
IN |
|
NoOfReplicas |
integer |
None |
1 |
4 |
IS |
|
ODirect |
boolean |
0 |
0 |
1 |
NR |
|
RedoBuffer |
bytes |
8M |
1M |
4294967039 |
N |
|
RestartOnErrorInsert (DEBUG BUILDS ONLY) |
true|false (1|0) |
0 |
0 |
1 |
N |
|
ServerPort (OBSOLETE) |
integer |
1186 |
0 |
4294967039 |
N |
|
SharedGlobalmemory |
bytes |
20M |
0 |
65536G |
N |
|
StartFailureTimeout |
milliseconds |
0 |
0 |
4294967039 |
N |
|
StartPartialTimeout |
milliseconds |
30000 |
0 |
4294967039 |
N |
|
StartPartitionedTimeout |
milliseconds |
60000 |
0 |
4294967039 |
N |
|
StopOnError |
true|false (1|0) |
1 |
0 |
1 |
N |
|
StringMemory |
integer or percentage (see description for details) |
0 |
0 |
4294967039 |
S |
|
TcpBind_INADDR_ANY (MySQL Cluster 5.1 Carrier Grade Edition only: added in MySQL 5.1.16-ndb-6.2.0) |
true|false (1|0) |
1 |
0 |
0 |
N |
|
TimeBetweenGlobalCheckpoints |
milliseconds |
2000 |
10 |
32000 |
N |
|
TimeBetweenInactiveTransactionAbortCheck |
milliseconds |
1000 |
1000 |
4294967039 |
N |
|
TimeBetweenLocalCheckpoints |
integer (number of 4-byte words as a base-2 logarithm) |
20 (= 4 * 220 = 4MB write operations) |
0 |
31 |
N |
|
TimeBetweenWatchDogCheck |
milliseconds |
6000 |
70 |
4294967039 |
N |
|
TimeBetweenWatchDogCheckInitial (added in MySQL 5.1.20) |
milliseconds |
6000 |
70 |
4294967039 |
N |
|
TransactionBufferMemory |
bytes |
1M |
1K |
4294967039 |
N |
|
TransactionDeadlockDetectionTimeout |
milliseconds |
1200 |
50 |
4294967039 |
N |
|
TransactionInactiveTimeout |
milliseconds |
0 |
0 |
4294967039 |
N |
|
UndoDataBuffer (OBSOLETE) |
bytes |
2M |
1M |
4294967039 |
N |
|
UndoDataBuffer (OBSOLETE) |
bytes |
2M |
1M |
4294967039 |
N |
2.4.5.2. 관리 노드 구성 파라미터
아래에 나오는 테이블은 클러스터의 관리 노드를 구성하기 위해서 config.ini 파일의 [NDB_MGMD] 또는 [MGM] 섹션에서 사용하는 파라미터에 대한 내용이다.
재 시작 타입 컬럼 값
- N: 노드 재 시작
- IN: 초기 노드 재 시작
- S: 시스템 재 시작
- IS: 초기 시스템 재 시작
|
Parameter Name |
Type/Units |
Default Value |
Minimum Value |
Maximum Value |
Restart Type |
|
ArbitrationDelay |
milliseconds |
0 |
0 |
4294967039 |
N |
|
ArbitrationRank |
Integer |
1 |
0 |
2 |
N |
|
DataDir |
String |
./ (ndb_mgmd directory) |
N/A |
N/A |
IN |
|
ExecuteOnComputer |
Integer |
|
|
|
|
|
HostName |
String |
localhost |
N/A |
N/A |
IN |
|
Id |
Integer |
None |
1 |
63 |
IN |
|
LogDestination |
CONSOLE, SYSLOG, or FILE |
FILE |
N/A |
N/A |
N |
2.4.5.3. SQL 노드 및 API 노드 구성 파라미터
아래에 나오는 테이블은 클러스터의 SQL 노드 및 API를 구성하기 위해서 config.ini 파일의 [SQL] 및 [API] 섹션에서 사용하는 파라미터에 대한 내용이다.
재 시작 타입 컬럼 값
- N: 노드 재 시작
- IN: 초기 노드 재 시작
- S: 시스템 재 시작
- IS: 초기 시스템 재 시작
|
Parameter Name |
Type/Units |
Default Value |
Minimum Value |
Maximum Value |
Restart Type |
|
ArbitrationDelay |
milliseconds |
0 |
0 |
4294967039 |
N |
|
ArbitrationRank |
integer |
1 |
0 |
2 |
N |
|
BatchByteSize |
bytes |
32K |
1K |
1M |
N |
|
BatchSize |
integer |
64 |
1 |
992 |
N |
|
ExecuteOnComputer |
integer |
|
|
|
|
|
HostName |
string |
localhost |
N/A |
N/A |
IN |
|
Id |
integer |
None |
1 |
63 |
IN |
|
MaxScanBatchSize |
bytes |
256K |
32K |
16M |
N |